1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 11:22:17 -05:00

[add] add RSS feed for archive

This commit is contained in:
Nicolas Lœuillet 2013-12-05 15:13:32 +01:00
parent f0133fe5f4
commit 59cc585271
2 changed files with 2 additions and 1 deletions

View File

@ -858,7 +858,7 @@ class Poche
public function generateFeeds($token, $user_id, $type = 'home') public function generateFeeds($token, $user_id, $type = 'home')
{ {
$allowed_types = array('home', 'fav'); $allowed_types = array('home', 'fav', 'archive');
$config = $this->store->getConfigUser($user_id); $config = $this->store->getConfigUser($user_id);
if (!in_array($type, $allowed_types) || if (!in_array($type, $allowed_types) ||

View File

@ -36,6 +36,7 @@
<ul> <ul>
<li><a href="?feed&amp;type=home&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li> <li><a href="?feed&amp;type=home&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li>
<li><a href="?feed&amp;type=fav&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "favorites feed" %}</a></li> <li><a href="?feed&amp;type=fav&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "favorites feed" %}</a></li>
<li><a href="?feed&amp;type=archive&amp;user_id={{ user_id }}&amp;token={{ token }}" target="_blank">{% trans "unread feed" %}</a></li>
</ul> </ul>
{% endif %} {% endif %}