diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/bigcards.html | 34 | ||||
| -rw-r--r-- | templates/default.html | 1 | ||||
| -rw-r--r-- | templates/footer.html | 39 | ||||
| -rw-r--r-- | templates/head.html | 23 | ||||
| -rw-r--r-- | templates/header.html | 41 | ||||
| -rw-r--r-- | templates/index.html | 21 | ||||
| -rw-r--r-- | templates/list.html | 7 | ||||
| -rw-r--r-- | templates/search.html | 1 | ||||
| -rw-r--r-- | templates/searchform.html | 11 | ||||
| -rw-r--r-- | templates/sidebox.html | 37 | ||||
| -rw-r--r-- | templates/tag.html | 7 |
11 files changed, 28 insertions, 194 deletions
diff --git a/templates/bigcards.html b/templates/bigcards.html deleted file mode 100644 index 93aa6a7..0000000 --- a/templates/bigcards.html +++ /dev/null @@ -1,34 +0,0 @@ -<div class="index-cards"> - <div class="index-card"> - <a href="{{root}}tag/admin"> - <div class="index-card-icon index-icon-admin"></div> - <div class="index-card-title"> - Administrative processes, Staff and Campus - </div> - </a> - </div> - <div class="index-card"> - <a href="{{root}}tag/it"> - <div class="index-card-icon index-icon-it"></div> - <div class="index-card-title"> - Bioinformatics, Computational methods and IT - </div> - </a> - </div> - <div class="index-card"> - <a href="{{root}}tag/lab"> - <div class="index-card-icon index-icon-lab"></div> - <div class="index-card-title"> - Wetlab equipment and processes - </div> - </a> - </div> - <div class="index-card"> - <a href="{{root}}tag/publication"> - <div class="index-card-icon index-icon-pub"></div> - <div class="index-card-title"> - Publications and Responsible Reproducible Research - </div> - </a> - </div> -</div> diff --git a/templates/default.html b/templates/default.html index 2bb48e5..8acbc2b 100644 --- a/templates/default.html +++ b/templates/default.html @@ -3,6 +3,5 @@ <body> {{> header.html}} {{{body}}} -{{> footer.html}} </body> </html> diff --git a/templates/footer.html b/templates/footer.html deleted file mode 100644 index ececa94..0000000 --- a/templates/footer.html +++ /dev/null @@ -1,39 +0,0 @@ - <div class="content-footer"> - <div class="flex-fill"></div> - <div class="footer-r3"></div> - <div class="footer-lcsb"></div> - <div class="footer-text"> - <div> - The contents are available under the <a href="{{root}}license">Creative Commons Attribution-ShareAlike License (CC-BY-SA 4.0)</a>. - </div> - <div> - <a href="{{root}}privacy-policy">Privacy Policy</a> - (<span id="gdpr-result-text"></span> - <a href="javascript:%20showBanner();">change</a>) - </div> - </div> - <div class="flex-fill"></div> - </div> - </div> - <div class="width-sidebox-counterweight"></div> - </div> - <div class="flex-sidefill-r"></div> -</main> - -<!-- cookie banner kindly provided by analytics.uni.lu --> -<div id="lap-cookies-banner"> - <div class="banner-intro"> - <div class="close-button"> - <a class="lap-refuse">×</a> - </div> - <div class="banner-img"> - <img src="https://analytics.lcsb.uni.lu/lap/static/logos/r3-logo.svg" type="image/svg+xml"> - </div> - <div class="banner-title">This website needs some cookies and similar means to function.</div> - <div class="banner-text">If you permit us, we will use those means to collect data on your visits for aggregated statistics to improve our service.</div> - </div> - <div class="banner-buttons"> - <a class="btn lap-accept">Accept cookies for aggregated statistics</a> - <a class="btn lap-refuse">No thanks, only technically necessary cookies</a> - <a class="btn lap-cookies-more" href="/privacy-policy">More information</a> - </div> -</div> diff --git a/templates/head.html b/templates/head.html index 2a634a2..59bbfa0 100644 --- a/templates/head.html +++ b/templates/head.html @@ -1,32 +1,13 @@ <head> <meta charset="UTF-8" /> - <meta name="viewport" content="width=device-width, initial-scale=1"> <title> - {{?title}}How-To Cards: {{title}}{{/title}} + {{?title}}Page: {{title}}{{/title}} {{?htag}} Category: {{#htag}} {{?tag}} » {{tag}}{{/tag}} - {{^tag}}All cards{{/tag}} + {{^tag}}All pages{{/tag}} {{/htag}} {{/htag}} </title> - <link rel="stylesheet" href="{{root}}style.css" /> - <link rel="stylesheet" href="{{root}}fonts.css" /> - <script> - // settings for the provided by analytics.uni.lu (that drives the cookie banner) - const settings = { - expires: "180", - matomoURL: "https://analytics.lcsb.uni.lu/hub/", - siteID: "3", - accept_all_text: "Aggregate statistics cookies accepted", - only_necessary_text: "Only necessary cookies accepted", - cookieName: "lap", - bots: /bot|crawler|spider|crawling/i, - timeout_hidebanner: "500", - cookieDomain: window.location.hostname, - } - </script> - <script src="https://analytics.lcsb.uni.lu/lap/static/js/lap.js"></script> - <link rel="stylesheet" type="text/css" href="https://analytics.lcsb.uni.lu/lap/static/css/lap.css"> </head> diff --git a/templates/header.html b/templates/header.html index 9b6a0ea..8640fc6 100644 --- a/templates/header.html +++ b/templates/header.html @@ -1,26 +1,19 @@ <header> - <div class="flex-sidefill-l topbar-borderbottom"></div> - <div class="width-sidebox-counterweight topbar-borderbottom"></div> - <div class="width-content same-height"> - <div class="topbar-padding topbar-borderbottom"></div> - <div class="topbar-unilu topbar-borderbottom"> - <a href="{{root}}"><div class="logo-unilu"></div></a> - </div> - <div class="topbar-text topbar-borderbottom"> - <div class="header-title">LCSB How-To Cards</div> - <div class="header-subtitle">The practical and handy reference</div> - </div> - <div class="flex-fill topbar-borderbottom"></div> - <div class="topbar-lcsb topbar-borderbottom"> - <div class="logo-lcsb"></div> - </div> - <div class="topbar-padding topbar-borderbottom"></div> - </div> - <div class="width-sidebox-placeholder topbar-borderbottom"></div> - <div class="flex-sidefill-r topbar-borderbottom"></div> + {{?htags}} + Categories: + <ul> + {{#htags}} + <li class="sidebox-tag">{{#.}}<a href="{{href}}">{{^tag}}all{{/tag}}{{?tag}} » {{tag}}{{/tag}}{{/.}}</a></li> + {{/htags}} + </ul> + {{/htags}} + + {{?toc}} + Card outline: + {{{toc}}} + {{/toc}} + + {{?timestamp}} + Last modification: {{timestamp}} + {{/timestamp}} </header> -<main> - <div class="flex-sidefill-l"></div> - <div class="content-holder"> - {{> sidebox.html}} - <div class="content width-content"> diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 815e65a..0000000 --- a/templates/index.html +++ /dev/null @@ -1,21 +0,0 @@ -<html> -{{> head.html}} -<body> -<script> -// legacy querystring-based shortcut redirection (if you use this anywhere, -// please try to avoid it; just removing the ? from the URL is a good way to -// migrate.) -var shortcut_link = window.location.search -if(shortcut_link.length > 0 && shortcut_link[0]==='?') { - setTimeout(function() { - window.location.replace("{{root}}"+shortcut_link.substring(1)) - }, 1); -} -</script> -{{> header.html}} -{{> searchform.html}} -{{> bigcards.html}} -{{{body}}} -{{> footer.html}} -</body> -</html> diff --git a/templates/list.html b/templates/list.html index df04ffe..5ae7db0 100644 --- a/templates/list.html +++ b/templates/list.html @@ -7,7 +7,7 @@ {{?htag}} Category listing: {{#htag}} - <a class="cards-tagpiece" href="{{href}}"> + <a href="{{href}}"> {{^tag}}all{{/tag}} {{?tag}}» {{tag}}{{/tag}} </a> @@ -16,7 +16,7 @@ </h1> <p>See the <a href="{{taghref}}">hierarchical view of this category</a>.</p> {{?subtags}}<h3>Sub-categories</h3> - <ul class="cards-subcategories"> + <ul> {{#subtags}} <li><a href="{{href}}">{{#tags}} » {{.}} {{/tags}}</a></li> {{/subtags}} @@ -24,12 +24,11 @@ {{/subtags}} {{?pages}} <h3>Cards</h3> - <ul class="cards-list"> + <ul> {{#pages}} <li><a href="{{href}}">{{meta.title}}</a></li> {{/pages}} </ul> {{/pages}} -{{> footer.html}} </body> </html> diff --git a/templates/search.html b/templates/search.html index eae555c..9608e29 100644 --- a/templates/search.html +++ b/templates/search.html @@ -4,6 +4,5 @@ {{> header.html}} {{> searchform.html}} {{> searchresults.html}} -{{> footer.html}} </body> </html> diff --git a/templates/searchform.html b/templates/searchform.html index b462948..2b4da9d 100644 --- a/templates/searchform.html +++ b/templates/searchform.html @@ -1,8 +1,3 @@ -<div class="search-form-wrap"> - <form action="{{root}}search/"> - <div class="search"> - <i></i> - <input class="search" placeholder="What are you looking for?" name="search_query" id="search_query" /> - </div> - </form> -</div> +<form action="{{root}}search/"> + <input name="search_query" id="search_query" /> +</form> diff --git a/templates/sidebox.html b/templates/sidebox.html deleted file mode 100644 index d7fefcd..0000000 --- a/templates/sidebox.html +++ /dev/null @@ -1,37 +0,0 @@ -<div class="sidebox"> - <div class="sidebox-right"> - <a href="{{root}}">Home</a> - | - <a href="{{root}}tag">Categories</a> - | - <a href="{{root}}search">Search</a> - </div> - {{?htags}} - <div class="sidebox-header"> - Card categories - </div> - <div class="sidebox-values"> - <ul> - {{#htags}} - <li class="sidebox-tag">{{#.}}<a href="{{href}}">{{^tag}}all{{/tag}}{{?tag}} » {{tag}}{{/tag}}{{/.}}</a></li> - {{/htags}} - </ul> - </div> - {{/htags}} - {{?toc}} - <div class="sidebox-header"> - Card outline - </div> - <div class="sidebox-values sidebox-toc"> - {{{toc}}} - </div> - {{/toc}} - {{?timestamp}} - <div class="sidebox-header"> - Last modification - </div> - <div class="sidebox-values"> - {{timestamp}} - </div> - {{/timestamp}} -</div> diff --git a/templates/tag.html b/templates/tag.html index f17e669..cb79591 100644 --- a/templates/tag.html +++ b/templates/tag.html @@ -4,16 +4,16 @@ <body> {{> header.html}} <h1> -Cards in category: +Pages in category: {{#htag}} -<a class="cards-tagpiece" href="{{href}}"> +<a href="{{href}}"> {{^tag}}all{{/tag}} {{?tag}}» {{tag}}{{/tag}} </a> {{/htag}} </h1> <p>See the <a href="{{listhref}}">complete listing of all pages in this category</a>.</p> -<ul class="cards-list"> +<ul> {{?pages}} {{#pages}} <li><a href="{{href}}">{{meta.title}}</a></li> @@ -53,6 +53,5 @@ Cards in category: {{/subtags}} {{/subtags}} </ul> -{{> footer.html}} </body> </html> |
