summaryrefslogtreecommitdiffstats
path: root/templates/part.items.header.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/part.items.header.php')
-rw-r--r--templates/part.items.header.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/part.items.header.php b/templates/part.items.header.php
index c54a2ae65..8a2043288 100644
--- a/templates/part.items.header.php
+++ b/templates/part.items.header.php
@@ -17,8 +17,7 @@ if(isset($_['feedid'])){
$unreadItemsCount = 0;
}
-// FIXME: get this setting from the database
-$showOnlyUnread = true;
+$showAll = OCP\Config::getUserValue(OCP\USER::getUser(), 'news', 'showAll');
?>
@@ -30,8 +29,8 @@ $showOnlyUnread = true;
<div class="controls">
<input type="button" value="<?php echo $l->t('Mark all read'); ?>" id="mark_all_as_read" />
<select id="feed_filter">
- <option value="unread" <?php if($showOnlyUnread){ echo 'selected="selected"'; }; ?>><?php echo $l->t('Show only unread articles'); ?></option>
- <option value="all" <?php if(!$showOnlyUnread){ echo 'selected="selected"'; }; ?>><?php echo $l->t('Show read/unread articles'); ?></option>
+ <option value="unread" <?php if(!$showAll){ echo 'selected="selected"'; }; ?>><?php echo $l->t('Show only unread articles'); ?></option>
+ <option value="all" <?php if($showAll){ echo 'selected="selected"'; }; ?>><?php echo $l->t('Show read/unread articles'); ?></option>
</select>
</div>
</div> \ No newline at end of file