summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Granberg <zorry@gentoo.org>2021-09-24 03:54:59 +0200
committerMagnus Granberg <zorry@gentoo.org>2021-09-24 04:22:49 +0200
commit3fb5065d4b67af1df11cec4e7a3e888c9598b9d1 (patch)
tree7caa17a3a9b6e6f5afd6e8ed9ae034d051e07d4f /python/bb_dashboard/www/templates/www/news.html
parentRestart (diff)
downloadtinderbox-cluster-www-3fb5065d4b67af1df11cec4e7a3e888c9598b9d1.tar.gz
tinderbox-cluster-www-3fb5065d4b67af1df11cec4e7a3e888c9598b9d1.tar.bz2
tinderbox-cluster-www-3fb5065d4b67af1df11cec4e7a3e888c9598b9d1.zip
Add Buildbot Dashboard for Gentoo Ci
Signed-off-by: Magnus Granberg <zorry@gentoo.org>
Diffstat (limited to 'python/bb_dashboard/www/templates/www/news.html')
-rw-r--r--python/bb_dashboard/www/templates/www/news.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/python/bb_dashboard/www/templates/www/news.html b/python/bb_dashboard/www/templates/www/news.html
new file mode 100644
index 0000000..b722f51
--- /dev/null
+++ b/python/bb_dashboard/www/templates/www/news.html
@@ -0,0 +1,20 @@
+<section id="news">
+{% for post in posts %}
+<article class="newsitem">
+<h2 class="stick-top newsitem-bullet">
+ <span class="fa fa-fw fa-chevron-circle-right" title="News item"> </span>
+ </h2>
+ <h2 class="stick-top newsitem-headline">
+ <a href="{{ post.url }}">{{ post.title }}</a> <small>{{ post.created_at }}</small>
+ </h2>
+ <div class="newsitem-content">
+ <p>{{ post.text|safe|escape }}</p>
+ </div>
+</article>
+{% endfor %}
+</section>
+
+<div class="news-more">
+ <a href="/news" class="btn btn-xs">All news items <span class="fa fa-fw fa-chevron-right"></span></a>
+<hr>
+</div>