Skip to content

Commit

Permalink
sort list of hidden Caches bycreated and not byname
Browse files Browse the repository at this point in the history
  • Loading branch information
Slini11 committed Jan 21, 2016
1 parent d06a19c commit 2287d1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htdocs/templates2/ocstyle/myhome.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function myHomeLoad()
<img src="resource2/{$opt.template.style}/images/cacheicon/22x20-traditional.png" width="22" height="20" style="margin-right: 10px;" />&nbsp;
{t 1=$hidden}Geocaches hidden: %1{/t} &nbsp;
{* Ocprop: (find|us|own)erid=([0-9]+) *}
{if $caches|@count > 0}<span class="content-title-link">[<a href="search.php?showresult=1&amp;expert=0&amp;output=HTML&amp;sort=byname&amp;ownerid={$login.userid}&amp;searchbyowner=&amp;f_inactive=0&calledbysearch=0">{t}Show details{/t}</a>{if $active < $hidden}]&nbsp; [<a href="search.php?showresult=1&amp;expert=0&amp;output=HTML&amp;sort=byname&amp;ownerid={$login.userid}&amp;searchbyowner=&amp;f_inactive=1&calledbysearch=0">... {t}only active caches{/t}</a>]{/if}</span>{/if}
{if $caches|@count > 0}<span class="content-title-link">[<a href="search.php?showresult=1&amp;expert=0&amp;output=HTML&amp;sort=bycreated&amp;ownerid={$login.userid}&amp;searchbyowner=&amp;f_inactive=0&calledbysearch=0">{t}Show details{/t}</a>{if $active < $hidden}]&nbsp; [<a href="search.php?showresult=1&amp;expert=0&amp;output=HTML&amp;sort=bycreated&amp;ownerid={$login.userid}&amp;searchbyowner=&amp;f_inactive=1&calledbysearch=0">... {t}only active caches{/t}</a>]{/if}</span>{/if}
</p>
</div>
Expand Down
3 changes: 2 additions & 1 deletion htdocs/templates2/ocstyle/res_userstats.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
<td valign="middle" class="header-small" style="padding-top:5px;padding-bottom:5px;white-space:nowrap" width="1%">
<img src="resource2/{$opt.template.style}/images/cacheicon/22x20-traditional.png" width="22" height="20" align="middle" border="0" style="padding-right:2px" />&nbsp;<b>{t}Hidden caches:{/t}</b></td>
<td class="header-small">{$hidden}
{if $hidden>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=byname&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{if $hidden_active<$hidden}, &nbsp;{t 1=$hidden_active}%1 of these are active{/t} {if $hidden_active>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=1&amp;output=HTML&amp;sort=byname&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}{/if}{/if}
{if $hidden>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=0&amp;output=HTML&amp;sort=bycreated&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{if $hidden_active<$hidden}, &nbsp;{t 1=$hidden_active}%1 of these are active{/t} {if $hidden_active>0}&nbsp;[<a href="search.php?showresult=1&amp;expert=0&amp;f_inactive=1&amp;output=HTML&amp;sort=bycreated&amp;ownerid={$userid}&amp;searchbyowner=&amp;calledbysearch=0{if $oconly}&amp;cache_attribs=6{/if}">{t}Show{/t}</a>]{/if}{/if}{/if}
</td>
</tr>


{if $show_statistics==true}
{if $hidden_by_cachetype|@count}
<tr>
Expand Down

0 comments on commit 2287d1d

Please sign in to comment.