aboutsummaryrefslogtreecommitdiff
path: root/source/templates
diff options
context:
space:
mode:
Diffstat (limited to 'source/templates')
-rw-r--r--source/templates/base.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/source/templates/base.html b/source/templates/base.html
index 6b60703e..75776128 100644
--- a/source/templates/base.html
+++ b/source/templates/base.html
@@ -2,7 +2,13 @@
<!DOCTYPE html>
<html>
<head>
- <title>pyAggr3g470r - News aggregator</title>
+ %if nb_unread_articles is UNDEFINED:
+ <title>pyAggr3g470r</title>
+ %elif nb_unread_articles == 0:
+ <title>pyAggr3g470r</title>
+ %else:
+ <title>${nb_unread_articles} - pyAggr3g470r</title>
+ %endif
<link rel="stylesheet" type="text/css" href="/css/style.css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
@@ -11,7 +17,7 @@
<div class="right innerlogo">
<a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
</div>
- <a name="top"><a href="/"><h1>pyAggr3g470r - News aggregator</h1></a></a>
+ <a name="top"><a href="/"><h1>pyAggr3g470r</h1></a></a>
${self.body()}
@@ -21,4 +27,4 @@
<a href="https://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">Source code</a> of pyAggr3g470r.</p>
</div>
</body>
-</html> \ No newline at end of file
+</html>
bgstack15