aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2009-03-06 01:06:18 +0000
committerpatdenice <patdenice@piwigo.org>2009-03-06 01:06:18 +0000
commit9d1bff06979db47fce8398820903ce3c894f0ac9 (patch)
tree8637d2cda3f5d07472b7cd72cb70cc96743d0a6e /admin/template/goto
parent254aee26953b4e862b73467968f92138a6283da1 (diff)
Code simplification of commit 3172
git-svn-id: http://piwigo.org/svn/trunk@3173 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/goto/navigation_bar.tpl56
1 files changed, 23 insertions, 33 deletions
diff --git a/admin/template/goto/navigation_bar.tpl b/admin/template/goto/navigation_bar.tpl
index 94c8ad05f..d21e7a031 100644
--- a/admin/template/goto/navigation_bar.tpl
+++ b/admin/template/goto/navigation_bar.tpl
@@ -1,39 +1,29 @@
{* $Id: navigation_bar.tpl 3145 2009-02-14 02:24:10Z patdenice $ *}
<div class="navigationBar">
+ {if isset($navbar.URL_FIRST)}
+ <a href="{$navbar.URL_FIRST}" rel="first">{'first_page'|@translate}</a> |
+ <a href="{$navbar.URL_PREV}" rel="prev">{'previous_page'|@translate}</a> |
+ {else}
+ {'first_page'|@translate} |
+ {'previous_page'|@translate} |
+ {/if}
-{if isset($navbar.URL_FIRST)}
-<a href="{$navbar.URL_FIRST}" rel="first">{'first_page'|@translate}</a>
-{else}
-{'first_page'|@translate}
-{/if}
-|
-{if isset($navbar.URL_PREV)}
-<a href="{$navbar.URL_PREV}" rel="prev">{'previous_page'|@translate}</a>
-{else}
-{'previous_page'|@translate}
-{/if}
-|
-{assign var='prev_page' value=0}
-{foreach from=$navbar.pages key=page item=url}
- {if $page > $prev_page+1} ... {/if}
- {if $page == $navbar.CURRENT_PAGE}
+ {assign var='prev_page' value=0}
+ {foreach from=$navbar.pages key=page item=url}
+ {if $page > $prev_page+1}...{/if}
+ {if $page == $navbar.CURRENT_PAGE}
<span class="pageNumberSelected">{$page}</span>
- {else}
+ {else}
<a href="{$url}">{$page}</a>
- {/if}
-{assign var='prev_page' value=$page}
-{/foreach}
-|
-{if isset($navbar.URL_NEXT)}
-<a href="{$navbar.URL_NEXT}" rel="next">{'next_page'|@translate}</a>
-{else}
-{'next_page'|@translate}
-{/if}
-|
-{if isset($navbar.URL_LAST)}
-<a href="{$navbar.URL_LAST}" rel="last">{'last_page'|@translate}</a>
-{else}
-{'last_page'|@translate}
-{/if}
+ {/if}
+ {assign var='prev_page' value=$page}
+ {/foreach}
-</div> \ No newline at end of file
+ {if isset($navbar.URL_NEXT)}
+ | <a href="{$navbar.URL_NEXT}" rel="next">{'next_page'|@translate}</a>
+ | <a href="{$navbar.URL_LAST}" rel="last">{'last_page'|@translate}</a>
+ {else}
+ | {'next_page'|@translate}
+ | {'last_page'|@translate}
+ {/if}
+</div>