1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

modify sorting by date_entered: set date_entered per-batch; use updated as a secondary criteria

This commit is contained in:
Andrew Dolgov
2013-03-27 13:34:04 +04:00
parent 69ad8b683b
commit be574731fc
3 changed files with 19 additions and 16 deletions

View File

@@ -351,7 +351,9 @@ class Feeds extends Handler_Protected {
# $content_link = "<a href=\"javascript:viewContentUrl('".$line["link"]."');\">" .
# $line["title"] . "</a>";
$updated_fmt = make_local_datetime($this->link, $line["updated_noms"], false);
$updated_fmt = make_local_datetime($this->link, $line["updated"], false);
$date_entered_fmt = T_sprintf("Imported at %s",
make_local_datetime($this->link, $line["date_entered"], false));
if (get_pref($this->link, 'SHOW_CONTENT_PREVIEW')) {
$content_preview = truncate_string(strip_tags($line["content_preview"]),
@@ -459,7 +461,9 @@ class Feeds extends Handler_Protected {
}
}
$reply['content'] .= "$updated_fmt</span>";
$reply['content'] .= "<span title='$date_entered_fmt'>$updated_fmt</span>
</span>";
$reply['content'] .= "<div class=\"hlRight\">";
$reply['content'] .= $score_pic;
@@ -566,7 +570,8 @@ class Feeds extends Handler_Protected {
}
}
$reply['content'] .= "<span class='updated'>$updated_fmt</span>";
$reply['content'] .= "<span class='updated' title='$date_entered_fmt'>
$updated_fmt</span>";
$reply['content'] .= "<div style=\"vertical-align : middle\">";
$reply['content'] .= "$score_pic";