aboutsummaryrefslogtreecommitdiff
path: root/bh20simplewebuploader/templates/home.html
diff options
context:
space:
mode:
authorPjotr Prins2020-11-10 14:06:21 +0000
committerGitHub2020-11-10 14:06:21 +0000
commitd213801678926e16135299a2e3ca0392a821507b (patch)
tree0c9919dec5153284f7c89d4054e36685aea0b493 /bh20simplewebuploader/templates/home.html
parentd53120b6106e301c7f5b58bdb4dc89f85dbe2ad0 (diff)
parent203293363640e7f45ceaff09fb1a83f8c0f1496a (diff)
downloadbh20-seq-resource-d213801678926e16135299a2e3ca0392a821507b.tar.gz
bh20-seq-resource-d213801678926e16135299a2e3ca0392a821507b.tar.lz
bh20-seq-resource-d213801678926e16135299a2e3ca0392a821507b.zip
Merge pull request #114 from BonfaceKilz/feature/add-twitter-feed
Feature/add twitter feed
Diffstat (limited to 'bh20simplewebuploader/templates/home.html')
-rw-r--r--bh20simplewebuploader/templates/home.html27
1 files changed, 23 insertions, 4 deletions
diff --git a/bh20simplewebuploader/templates/home.html b/bh20simplewebuploader/templates/home.html
index 5986d72..be948f6 100644
--- a/bh20simplewebuploader/templates/home.html
+++ b/bh20simplewebuploader/templates/home.html
@@ -22,9 +22,27 @@
or <a href="/apidoc">REST API</a>. For more
information see the <a href="/about">FAQ!</a>.
</p>
- <section id="map_view" class="map">
- <div id="mapid"></div>
- </section>
+
+ <section class="flex-container">
+ <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")%}
+ <li>
+ <p class="tweet">
+ {{ tweet.tweet|urlize(40, target="_blank") }} <br/>
+ by {{ tweet.author }}
+ </p>
+ <small class="timeposted">
+ {{ tweet.timeposted }}
+ </small>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ </section>
<a href="https://projectredcap.org/"><img class="img-right" src="static/image/REDCap.png" /></a>
<p>
@@ -76,7 +94,8 @@
use, see the <a href="/blog">docs</a>.
</p>
</div>
- </section>
+ </section>
+
{% include 'footer.html' %}