[Bast-commits] r6042 -
ironman/plagger/assets/plugins/Publish-PagedPlanet/default/template
penfold at dev.catalyst.perl.org
penfold at dev.catalyst.perl.org
Thu Apr 30 09:21:12 GMT 2009
Author: penfold
Date: 2009-04-30 10:21:12 +0100 (Thu, 30 Apr 2009)
New Revision: 6042
Modified:
ironman/plagger/assets/plugins/Publish-PagedPlanet/default/template/nav.tt
Log:
Clean up nav.tt
Modified: ironman/plagger/assets/plugins/Publish-PagedPlanet/default/template/nav.tt
===================================================================
--- ironman/plagger/assets/plugins/Publish-PagedPlanet/default/template/nav.tt 2009-04-30 09:06:53 UTC (rev 6041)
+++ ironman/plagger/assets/plugins/Publish-PagedPlanet/default/template/nav.tt 2009-04-30 09:21:12 UTC (rev 6042)
@@ -1,22 +1,6 @@
-[% MACRO link(text,num) BLOCK %]
-<a href="index[% IF (num > 1) %]_[% num %][% END %].html">[% text %]</a>
-[% END %]
+[%- MACRO link(text,num) BLOCK %]<a href="index[% IF (num > 1) %]_[% num %][% END %].html">[% text %]</a>[% END -%]
<div class="nav">
-[% IF (thispage == 1) %]
-|< <-
-[% ELSE %]
- [% link('|<',1) %] [% link('<-',thispage - 1) %]
-[% END %]
-[%- FOREACH page IN [1..pagecount] -%]
- [%- IF (page == thispage) -%]
- [%- page -%]
- [%- ELSE -%]
- [%- link(page,page) -%]
- [%- END -%]
-[%- END -%]
-[%- IF (thispage == pagecount) -%]
--> >|
-[%- ELSE -%]
- [%- link('->',thispage+1) %] [% link('>|',pagecount) -%]
-[%- END -%]
-</div>
\ No newline at end of file
+[% IF (thispage == 1) %]|< <-[% ELSE; link('|<',1) %] [% link('<-',thispage - 1); END -%]
+[%- FOREACH page IN [1..pagecount]; IF (page == thispage); %] [% page; ELSE; %] [% link(page,page); END; END -%]
+[%- IF (thispage == pagecount) %] -> >|[% ELSE %] [% link('->',thispage + 1) %] [% link('>|',pagecount); END -%]
+</div>
More information about the Bast-commits
mailing list