[dw-free] "Refresh" link at the bottom of the Inbox
[commit: http://hg.dwscoalition.org/dw-free/rev/9a3953d15315]
http://bugs.dwscoalition.org/show_bug.cgi?id=3394
Repeat "Refresh" / "Manage Settings" link at bottom of inbox when there are
> 10 items.
Patch by
wyntarvox.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=3394
Repeat "Refresh" / "Manage Settings" link at bottom of inbox when there are
> 10 items.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/inbox/index.bml
-------------------------------------------------------------------------------- diff -r 9f9765a3f4c8 -r 9a3953d15315 htdocs/inbox/index.bml --- a/htdocs/inbox/index.bml Tue Mar 08 15:05:34 2011 +0800 +++ b/htdocs/inbox/index.bml Tue Mar 08 15:20:16 2011 +0800 @@ -166,6 +166,8 @@ body<= @all_items = $inbox->all_items; } + my $itemcount = scalar @all_items; + $body .= LJ::error_list( $@ ) if $@; # Pagination @@ -180,8 +182,17 @@ body<= view => $view, mode => $GET{mode}, items => \@all_items, + itemcount => \$itemcount, itemid => $itemid, ); + + # Repeat refresh/manage links if more than 10 items on page (15 max per page) + $body .= qq{ + <div class="inbox_newitems pkg"> + <span class="esnlinks" style="float: left"><a href="$LJ::SITEROOT/inbox/?page=$page$viewarg$itemidarg"><?_ml inbox.refresh _ml?></a> | + <a href="$LJ::SITEROOT/manage/subscriptions/"><?_ml inbox.manage_settings _ml?></a></span> + </div> + } if $itemcount > 10; $body .= qq{ </td></tr></table> --------------------------------------------------------------------------------