From 7f549879d0a29313c75e96a623c1b4606dce5a06 Mon Sep 17 00:00:00 2001 From: jwansek <eddie.atten.ea29@gmail.com> Date: Sat, 6 Mar 2021 15:56:32 +0000 Subject: added caching tweets, added git commits --- templates/index.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index d79743b..fd0bae1 100644 --- a/templates/index.html +++ b/templates/index.html @@ -15,7 +15,7 @@ <section id="recent_tweets"> <h1>recent tweets</h1> <ul> - {% for url, text in tweets %} + {% for text, url in tweets %} {% if text == None %} <li><a href={{url}}>[image only]</a></li> {% else %} @@ -25,4 +25,12 @@ </ul> </section> {% endif %} + <section id="recent commits"> + <h1>recent git commits:</h4> + <ul> + {% for commit in commits %} + <li><a href={{commit["url"]}}>{{"[%s] %s {+%i;-%i}" % (commit["repo"], commit["message"], commit["stats"]["additions"], commit["stats"]["deletions"])}}</a></li> + {% endfor %} + </ul> + </section> {% endblock %} \ No newline at end of file -- cgit v1.2.3