mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2026-02-10 16:01:33 +00:00
rework the way DEFAULT_ARTICLE_LIMIT works, remove limit toolbar dropdown (bump schema)
This commit is contained in:
29
tt-rss.php
29
tt-rss.php
@@ -226,7 +226,8 @@
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<select name="view_mode" onchange="viewModeChanged()">
|
||||
<select name="view_mode" title="<?php echo __('Show articles') ?>"
|
||||
onchange="viewModeChanged()">
|
||||
<option selected="selected" value="adaptive"><?php echo __('Adaptive') ?></option>
|
||||
<option value="all_articles"><?php echo __('All Articles') ?></option>
|
||||
<option value="marked"><?php echo __('Starred') ?></option>
|
||||
@@ -235,36 +236,16 @@
|
||||
<option value="updated"><?php echo __('Updated') ?></option>
|
||||
</select>
|
||||
|
||||
<?php echo __('Order:') ?>
|
||||
|
||||
|
||||
<select name="order_by" onchange="viewModeChanged()">
|
||||
<select title="<?php echo __('Sort articles') ?>"
|
||||
name="order_by" onchange="viewModeChanged()">
|
||||
<option selected="selected" value="default"><?php echo __('Default') ?></option>
|
||||
<option value="date"><?php echo __('Date') ?></option>
|
||||
<option value="title"><?php echo __('Title') ?></option>
|
||||
<option value="score"><?php echo __('Score') ?></option>
|
||||
</select>
|
||||
|
||||
<?php echo __('Limit:') ?>
|
||||
<?php
|
||||
$limits = array(15 => 15, 30 => 30, 60 => 60, 0 => __("All"));
|
||||
|
||||
$def_art_limit = get_pref($link, 'DEFAULT_ARTICLE_LIMIT');
|
||||
|
||||
if ($def_art_limit >= 0 && !array_key_exists($def_art_limit, $limits)) {
|
||||
$limits[$def_art_limit] = $def_art_limit;
|
||||
}
|
||||
|
||||
asort($limits);
|
||||
|
||||
if (!$def_art_limit) {
|
||||
$def_art_limit = 30;
|
||||
}
|
||||
|
||||
print_select_hash("limit", $def_art_limit, $limits,
|
||||
'onchange="viewLimitChanged()"');
|
||||
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<input class="button" type="submit" name="update"
|
||||
|
||||
Reference in New Issue
Block a user