Title | Add "Page:" in two places to template: linkCommentPages, misc, default | |
Date | Thursday February 16 2017, @11:13PM | |
Author | martyb | |
Topic | ||
from the dept. |
It would be helpful for the user to have a label to explain what the seemingly barren "(1)" that appears in two places on a story actually means. Granted, on stories with enough comments, and that actually spills over onto additional pages, there is a bit more of an indication, but it could be made explicitly clear by adding just two lines to one template.
Extended copy has the updated version of the template. The two lines which contain only "Page:" are all it takes.
[% IF !((total < user.commentlimit) || (user.commentlimit < 1)) && (legacy == "yes") %]
[% pages = total / user.commentlimit %]
<div class="linkCommentPage">
Page:
[% FOREACH p = [1 .. pages] %]
[% start = user.commentlimit * p %]
[% IF p != 0 %] | [% END %]
[% IF start == form.startat || (!form.startat && p == 0) %]
<b>([% p %])</b>
[% ELSE %]
[% Slash.linkComment({
sid => sid,
pid => pid,
cid => cid,
threshold => threshold,
highlightthresh = highlightthresh,
subject => p,
subject_only => 1,
startat => (start ? start : 0),
}) %]
[% END %]
[% END %]
[% IF user.breaking %]
([% constants.sitename %] Overload: CommentLimit [% user.commentlimit %])
[% END %]
</div>
[% ELSIF (legacy == "no") %]
<div class="linkCommentPage">
Page:
[% form.page = (form.page || 1) %]
[% FOREACH p = [1 .. tpages] %]
[% IF p != form.page %]
[% Slash.linkComment({
sid => sid,
pid => pid,
cid => cid,
threshold => threshold,
highlightthresh = highlightthresh,
subject => (p),
subject_only => 1,
page => (p),
}) %]
[% ELSE %]
<b>([% p %])</b>
[% END %]
[% END %]
</div>
[% END %]
printed from Dev.SN, Add "Page:" in two places to template: linkCommentPages, misc, default on 2024-04-25 06:22:14