aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-06-29 10:59:35 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-06-29 10:59:35 +0200
commitcd270a37444dcba6a02652269a06527b1bb1c0db (patch)
tree30238ad0666db183b1ba2bdea579b2d1b10c6aff
parentTypo. (diff)
downloadnewspipe-cd270a37444dcba6a02652269a06527b1bb1c0db.tar.gz
newspipe-cd270a37444dcba6a02652269a06527b1bb1c0db.tar.bz2
newspipe-cd270a37444dcba6a02652269a06527b1bb1c0db.zip
Bugfix: the variable 'favorites' wasn't transfered to the template.
-rw-r--r--pyaggr3g470r/templates/layout.html2
-rw-r--r--pyaggr3g470r/views/views.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/pyaggr3g470r/templates/layout.html b/pyaggr3g470r/templates/layout.html
index d8a62dbc..80c74703 100644
--- a/pyaggr3g470r/templates/layout.html
+++ b/pyaggr3g470r/templates/layout.html
@@ -65,7 +65,7 @@
</li>
</ul>
</li>
- {% if favorites %}
+ {% if page_to_render == "favorites" %}
<li><a href="{{ url_for("home") }}"><span class="glyphicon glyphicon-home"></span> {{ _('Home') }}</a></li>
{% else %}
<li><a href="{{ url_for("favorites") }}"><span class="glyphicon glyphicon-star"></span> {{ _('Favorites') }}</a></li>
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 6f17544c..77f3b147 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -293,7 +293,8 @@ def render_home(filters=None, head_titles=None,
and filter_ != 'all' and not articles:
return redirect(gen_url(filter_='all'))
- return render_template('home.html', gen_url=gen_url, feed_id=feed_id,
+ return render_template('home.html', page_to_render=page_to_render,
+ gen_url=gen_url, feed_id=feed_id,
filter_=filter_, limit=limit, feeds=feeds,
unread=unread, articles=articles, in_error=in_error,
head_titles=head_titles, sort_=sort_, **kwargs)
bgstack15