[planet-web] gnome-br: Add feed and sidebar templates



commit 42d048bb981736f6667945938258b2defb64fd28
Author: Rafael Fontenelle <rafaelff gnome org>
Date:   Sun Apr 5 14:28:14 2020 -0300

    gnome-br: Add feed and sidebar templates

 themes/gnome-br/feeds.html.tmpl   |  1 +
 themes/gnome-br/sidebar.html.tmpl | 17 +++++++++++++++++
 2 files changed, 18 insertions(+)
---
diff --git a/themes/gnome-br/feeds.html.tmpl b/themes/gnome-br/feeds.html.tmpl
new file mode 100644
index 0000000..16409a3
--- /dev/null
+++ b/themes/gnome-br/feeds.html.tmpl
@@ -0,0 +1 @@
+<ul><TMPL_LOOP Channels><li<TMPL_IF nick> class="<TMPL_VAR nick>"</TMPL_IF>><TMPL_IF url><a href="<TMPL_VAR 
url ESCAPE="HTML">" title="Subscribe"><img src="https://planet.gnome.org/img/feed-icon-10x10.png"; 
alt="(feed)"></a><TMPL_ELSE><img src="https://planet.gnome.org/img/feed-icon-10x10.png"; 
alt="(feed)"></TMPL_IF> <TMPL_IF link><a href="<TMPL_VAR link ESCAPE="HTML">" <TMPL_IF 
message>class="message" title="<TMPL_VAR message ESCAPE="HTML">"</TMPL_IF><TMPL_UNLESS 
message>title="<TMPL_VAR title_plain ESCAPE="HTML">"</TMPL_UNLESS>><TMPL_VAR name></a><TMPL_ELSE><span 
<TMPL_IF message>class="message" title="<TMPL_VAR message ESCAPE="HTML">"</TMPL_IF><TMPL_UNLESS 
message>title="<TMPL_VAR title_plain ESCAPE="HTML">"</TMPL_UNLESS>><TMPL_VAR 
name></span></TMPL_IF></li></TMPL_LOOP></ul>
diff --git a/themes/gnome-br/sidebar.html.tmpl b/themes/gnome-br/sidebar.html.tmpl
new file mode 100644
index 0000000..61b0463
--- /dev/null
+++ b/themes/gnome-br/sidebar.html.tmpl
@@ -0,0 +1,17 @@
+<ul>
+<TMPL_LOOP Items>
+### we can only show items that have titles in this feed
+<TMPL_IF title>
+<li>
+<a href="<TMPL_VAR link ESCAPE="HTML">">
+<TMPL_IF channel_face>
+<img src="<TMPL_VAR channel_face ESCAPE="HTML">" height="24" alt="">
+<TMPL_ELSE>
+<img src="https://planet.gnome.org/heads/nobody.png"; height="24" alt="">
+</TMPL_IF>
+<TMPL_VAR title></a>
+</li>
+</TMPL_IF>
+
+</TMPL_LOOP>
+</ul>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]