diff options
author | AndreaGuarracino | 2021-01-07 23:50:01 +0100 |
---|---|---|
committer | AndreaGuarracino | 2021-01-07 23:50:01 +0100 |
commit | 4d841d279b2bf73da2ba815d53863c7f2861c956 (patch) | |
tree | 83b9ad136dabacbf7ed54e19b2db6df348bef904 /bh20simplewebuploader/templates | |
parent | 141e619929cee17018417d71111063015e73c366 (diff) | |
parent | c080c3cffedcc0cc99496b5e70fcfdf998978f16 (diff) | |
download | bh20-seq-resource-4d841d279b2bf73da2ba815d53863c7f2861c956.tar.gz bh20-seq-resource-4d841d279b2bf73da2ba815d53863c7f2861c956.tar.lz bh20-seq-resource-4d841d279b2bf73da2ba815d53863c7f2861c956.zip |
Merge branch 'master' into yamlfa2ttl
Diffstat (limited to 'bh20simplewebuploader/templates')
-rw-r--r-- | bh20simplewebuploader/templates/home.html | 71 |
1 files changed, 70 insertions, 1 deletions
diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html index a880f81..23f48bf 100644 --- a/bh20simplewebuploader/templates/home.html +++ b/bh20simplewebuploader/templates/home.html @@ -29,7 +29,9 @@ </div> <div id="feed"> - <input name="feed-tabs" type="radio" id="tab-arxiv-articles" checked/> + <input name="feed-tabs" type="radio" id="tab-all-items" checked/> + <label for="tab-all-items">All Items</label> + <input name="feed-tabs" type="radio" id="tab-arxiv-articles"/> <label for="tab-arxiv-articles">Arxiv</label> <input name="feed-tabs" type="radio" id="tab-pubmed-articles"/> <label for="tab-pubmed-articles">Pubmed</label> @@ -37,6 +39,73 @@ <label for="tab-tweets">Tweets</label> <input name="feed-tabs" type="radio" id="tab-commits"/> <label for="tab-commits">Commits</label> + <ul class="tab content-all-items"> + <!-- Begin News --> + {% if all_items %} + {% for item in all_items|sort(reverse=true, attribute="score")%} + <li> + {% if item['authors'] %} + <!-- Arxiv article --> + <p> + <b>[arxiv]</b> + <a href="{{ item['url'] }}" target="_blank"> + {{item['title']}} + </a> + <br/> + <b>Authors:</b> {{ item['authors'] }} + <br/> + <b>Abstract:</b> {{ item['abstract']}}... + <br/> + <b>Submitted:</b> {{ item['submission']}} + </p> + + {% elif item['full-authors'] %} + <!-- Pubmed Article --> + <p><b>[Pubmed]:</b> + <a href="https://pubmed.ncbi.nlm.nih.gov/{{ item['docsum-pmid'] }}" target="_blank"><b>Summary:</b> + {{ item['summary'] }} + </a> <br/> + <b>Full Authors:</b> {{ item['full-authors'] }} <br/> + <b>Short Authors:</b> {{ item['short-authors'] }} <br/> + <b>Citation:</b> {{ item['citation'] }} <br/> + <b>Short Journal Citation:</b> {{ item['short-journal-citation'] }} <br/> + </p> + + {% elif item['tweet'] %} + <!-- Tweets --> + <p> + <b>[Tweet]:</b> + {{ item['tweet']|urlize(40, target="_blank")}} + <small> + <a href="{{ item['url'] }}" target="_blank">source</a></small> + <br/> + by {{ item['author'] }} + <br/> + <small>{{ item['timeposted'] }}</small> + </p> + + {% elif item['repository-url'] %} + <!-- Commits --> + <p> + <b>[Commit]:</b> + <a href="{{ item.url }}" target="_blank"> + {{ item.hash.split(":")[-1][:7] }}: {{ item.content }} + </a> + <br/> + <small> + <a href="{{ item['repository-url'] }}" target="_blank"> {{ item.author }}/{{ item.repository }}</a> + on {{ item.timeposted }} + </small> + </p> + {% endif %} + </li> + {%endfor%} + + {% else %} + There are no items to display :( + {% endif %} + <!-- End News --> + </ul> <ul class="tab content-arxiv-articles"> {% if arxiv_articles %} {% for article in arxiv_articles|sort(reverse=true, attribute="score")%} |