aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/templates/feed_list_simple.html2
-rw-r--r--src/web/views/feed.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/web/templates/feed_list_simple.html b/src/web/templates/feed_list_simple.html
index 3e04ad7e..5f692a53 100644
--- a/src/web/templates/feed_list_simple.html
+++ b/src/web/templates/feed_list_simple.html
@@ -12,7 +12,7 @@
{% for feed in feeds %}
<tr>
<td>{{ loop.index }}</td>
- <td>{% if feed.icon_url %}<img src="{{ url_for('icon.icon', url=feed.icon_url) }}" width="16px" />&nbsp;{% endif %}{{ feed.title }}</td>
+ <td>{% if feed.icon_url %}<img src="{{ url_for('icon.icon', url=feed.icon_url) }}" width="16px" />&nbsp;{% endif %} <a href="{{ url_for('feed.feed_pub', feed_id=feed.id) }}">{{ feed.title }}</a></td>
<td><a href="{{ feed.site_link }}">{{ feed.site_link }}</a></td>
</tr>
{% endfor %}
diff --git a/src/web/views/feed.py b/src/web/views/feed.py
index 87b47da1..6bc4afe1 100644
--- a/src/web/views/feed.py
+++ b/src/web/views/feed.py
@@ -82,6 +82,9 @@ def feed_pub(feed_id=None):
"""
Presents details of a pubic feed.
"""
+ feed = FeedController(None).get(id=feed_id)
+ if feed.private:
+ return render_template('errors/404.html'), 404
return feed_view(feed_id, None)
bgstack15