aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2012-11-26 08:13:33 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2012-11-26 08:13:33 +0100
commit8c27b2adc8060680aff32b40b98f9792256f6c87 (patch)
tree84900956b12d9e325dbfe20844458a0d5c0efa95 /source
parentMinor changes. (diff)
downloadnewspipe-8c27b2adc8060680aff32b40b98f9792256f6c87.tar.gz
newspipe-8c27b2adc8060680aff32b40b98f9792256f6c87.tar.bz2
newspipe-8c27b2adc8060680aff32b40b98f9792256f6c87.zip
Refactoring codes in templates.
Diffstat (limited to 'source')
-rw-r--r--source/templates/article.html3
-rw-r--r--source/templates/articles.html4
-rw-r--r--source/templates/base.html17
-rw-r--r--source/templates/error.html3
-rw-r--r--source/templates/favorites.html3
-rw-r--r--source/templates/management.html3
-rw-r--r--source/templates/notifications.html3
-rw-r--r--source/templates/statistics.html3
8 files changed, 11 insertions, 28 deletions
diff --git a/source/templates/article.html b/source/templates/article.html
index 110442f6..bd459c4e 100644
--- a/source/templates/article.html
+++ b/source/templates/article.html
@@ -1,8 +1,5 @@
## article.html
<%inherit file="base.html"/>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
<div>
<div style="width: 50%; overflow:hidden; text-align: justify; margin:0 auto">
<h1><i>${article["article_title"]}</i> from <a href="/feed/${feed['feed_id']}">${feed["feed_title"]}</a></h1>
diff --git a/source/templates/articles.html b/source/templates/articles.html
index 1c425c7e..cbba2508 100644
--- a/source/templates/articles.html
+++ b/source/templates/articles.html
@@ -3,10 +3,6 @@
<%
import utils
%>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
-
<div class="right inner">
<a href="/mark_as_read/Feed:${feed['feed_id']}">Mark all articles from this feed as read</a>
<br />
diff --git a/source/templates/base.html b/source/templates/base.html
index 899bbce3..6380bf37 100644
--- a/source/templates/base.html
+++ b/source/templates/base.html
@@ -8,13 +8,18 @@
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
</head>
<body>
+ <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 href="https://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
-${self.body()}
+ ${self.body()}
-<hr />
-<p>This software is under GPLv3 license. You are welcome to copy, modify or
-redistribute the source code according to the
-<a href="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> license.</p>
-</div>
+ <hr />
+ <p>This software is under GPLv3 license. You are welcome to copy, modify or
+ redistribute the source code according to the
+ <a href="http://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a> license.</p>
+ </div>
</body>
</html> \ No newline at end of file
diff --git a/source/templates/error.html b/source/templates/error.html
index 5bce304b..dbdf66db 100644
--- a/source/templates/error.html
+++ b/source/templates/error.html
@@ -1,7 +1,4 @@
## error.html
<%inherit file="base.html"/>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
<div class="left inner">
${message} \ No newline at end of file
diff --git a/source/templates/favorites.html b/source/templates/favorites.html
index 28aee46a..beb76ff8 100644
--- a/source/templates/favorites.html
+++ b/source/templates/favorites.html
@@ -3,9 +3,6 @@
<%
import utils
%>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
<div class="left inner">
<h1>Your favorites articles</h1>
%for feed in feeds:
diff --git a/source/templates/management.html b/source/templates/management.html
index fbb27c37..8d8a1bbd 100644
--- a/source/templates/management.html
+++ b/source/templates/management.html
@@ -1,8 +1,5 @@
## management.html
<%inherit file="base.html"/>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
<div class="left inner">
<h1>Add Feeds</h1>
<form method=get action="/add_feed/">
diff --git a/source/templates/notifications.html b/source/templates/notifications.html
index fa675d6b..35aa72a6 100644
--- a/source/templates/notifications.html
+++ b/source/templates/notifications.html
@@ -1,8 +1,5 @@
## article.html
<%inherit file="base.html"/>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
<div class="left inner">
%if feeds != []:
<h1>You are receiving e-mails for the following feeds:</h1>
diff --git a/source/templates/statistics.html b/source/templates/statistics.html
index 42577efd..e78aa054 100644
--- a/source/templates/statistics.html
+++ b/source/templates/statistics.html
@@ -1,8 +1,5 @@
## statistics.html
<%inherit file="base.html"/>
-<h1><div class="right innerlogo"><a href="/"><img src="/img/tuxrss.png" title="What's new today?"/></a>
-</div><a name="top"><a href="/">pyAggr3g470r - News aggregator</a></a></h1>
-<a href="http://bitbucket.org/cedricbonhomme/pyaggr3g470r/" rel="noreferrer" target="_blank">pyAggr3g470r (source code)</a>
<div class="left inner">
%if articles:
<h1>Statistics</h1>
bgstack15