aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates
diff options
context:
space:
mode:
authorPjotr Prins2020-12-24 09:14:40 +0000
committerGitHub2020-12-24 09:14:40 +0000
commit00ba74b163f723bb7283624171f0c7c203dc99e5 (patch)
tree3dd7fdf569ecbc2caf317d6712f215f2aa5235f7 /bh20simplewebuploader/templates
parent73e0e802dd254bf2d167f6633c479e90b9bc4649 (diff)
parent6a2dbbc003e5adcf885b41674d9ca80fba7fd55b (diff)
downloadbh20-seq-resource-00ba74b163f723bb7283624171f0c7c203dc99e5.tar.gz
bh20-seq-resource-00ba74b163f723bb7283624171f0c7c203dc99e5.tar.lz
bh20-seq-resource-00ba74b163f723bb7283624171f0c7c203dc99e5.zip
Merge pull request #119 from BonfaceKilz/feature/add-commits-and-pubmed-articles-to-feed
Feature/add commits and pubmed articles to feed
Diffstat (limited to 'bh20simplewebuploader/templates')
-rw-r--r--bh20simplewebuploader/templates/home.html57
1 files changed, 54 insertions, 3 deletions
diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html
index be948f6..7d5d89f 100644
--- a/bh20simplewebuploader/templates/home.html
+++ b/bh20simplewebuploader/templates/home.html
@@ -27,9 +27,34 @@
<div id="map_view" class="map">
<div id="mapid"></div>
</div>
- <div id="twitter-feed">
- <ul>
- {% for tweet in tweets|sort(reverse=true, attribute="timeposted")%}
+
+ <div id="feed">
+ <input name="feed-tabs" type="radio" id="tab-pubmed-articles" checked/>
+ <label for="tab-pubmed-articles">Pubmed Articles</label>
+ <input name="feed-tabs" type="radio" id="tab-tweets"/>
+ <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-pubmed-articles">
+ {% if pubmed_articles %}
+ {% for article in pubmed_articles|sort(reverse=true, attribute="score")%}
+ <li>
+ <p><a href="https://pubmed.ncbi.nlm.nih.gov/{{article['docsum-pmid']}}"><b>Summary:</b> {{ article['summary'] }}</a></p>
+ <p><b>Full Authors:</b> {{ article['full-authors'] }}</p>
+ <p><b>Short Authors:</b> {{ article['short-authors'] }}</p>
+ <p><b>Citation:</b> {{ article['citation'] }}</p>
+ <p><b>Short Journal Citation:</b> {{ article['short-journal-citation'] }}</p>
+ </li>
+ {% endfor %}
+ {% else %}
+
+ There are no articles to display :(
+
+ {% endif %}
+ </ul>
+ <ul class="tab content-tweets">
+ {% if tweets %}
+ {% for tweet in tweets|sort(reverse=true, attribute="score")%}
<li>
<p class="tweet">
{{ tweet.tweet|urlize(40, target="_blank") }} <br/>
@@ -40,6 +65,32 @@
</small>
</li>
{% endfor %}
+
+ {% else %}
+
+ There are no tweets to display :(
+
+ {% endif %}
+ </ul>
+ <ul class="tab content-commits">
+ {% if commits %}
+ {% for commit in commits|sort(reverse=true, attribute="score")%}
+ <li>
+ <p class="commit">
+ <a href="{{commit.url}}" target="_blank">
+ {{ commit.hash.split(":")[-1][:7] }}:{{ commit.content}}
+ </a>
+
+ </p>
+ <small class="timeposted">
+ <a href="{{ commit['repository-url']}}" target="_blank">{{ commit.author }}/{{ commit.repository }}</a>
+ on {{ commit.timeposted}}
+ </small>
+ </li>
+ {% endfor %}
+ {% else %}
+ There are no commits to be displayed.
+ {% endif %}
</ul>
</div>
</section>