diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-28 13:16:03 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2012-11-28 13:16:03 +0100 |
commit | 96850d88c3febef5107aea6f87fa40cd1b19c31b (patch) | |
tree | b1fbfbb65767a6a0e12b8d40c0858cd4c537709e /source/templates/base.html | |
parent | Little performance optimization. (diff) | |
download | newspipe-96850d88c3febef5107aea6f87fa40cd1b19c31b.tar.gz newspipe-96850d88c3febef5107aea6f87fa40cd1b19c31b.tar.bz2 newspipe-96850d88c3febef5107aea6f87fa40cd1b19c31b.zip |
Display the number of unread articles in the browser tab (with templates).
Diffstat (limited to 'source/templates/base.html')
-rw-r--r-- | source/templates/base.html | 12 |
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> |