summaryrefslogtreecommitdiff
path: root/templates/icon_browser.tpl
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-06-26 19:07:06 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-06-26 19:07:06 +0000
commitf959388976d78563b782d1a77d12248414237320 (patch)
tree2d587799c3fa776746d910265a077489529ee894 /templates/icon_browser.tpl
parentc3475151409effe0e746851d8bc15bfc308bc367 (diff)
downloadthemes-f959388976d78563b782d1a77d12248414237320.tar.gz
themes-f959388976d78563b782d1a77d12248414237320.tar.bz2
themes-f959388976d78563b782d1a77d12248414237320.zip
update icon browser to be more flexible. and display all icons - not just the ones specified in the specs (specs keep on changing and it's tedious to keep up to date)
Diffstat (limited to 'templates/icon_browser.tpl')
-rw-r--r--templates/icon_browser.tpl50
1 files changed, 27 insertions, 23 deletions
diff --git a/templates/icon_browser.tpl b/templates/icon_browser.tpl
index 0bc15c9..c8b3f28 100644
--- a/templates/icon_browser.tpl
+++ b/templates/icon_browser.tpl
@@ -13,30 +13,34 @@
<br />
Please view the <a class="external" href="http://tango.freedesktop.org/Tango_Icon_Gallery">Tango icon gallery</a> for the originally designated uses of the icons.
</p>
- {foreach from=$iconHash key=set item=iconSet}
- <h2>{$set}</h2>
- <table class="data">
- <tr>
- <th style="width:29%">{tr}Icon name{/tr}</th>
- <th style="width:1%" colspan="2">{tr}Icons{/tr}</th>
- <th style="width:70%">{tr}bitweaver uses{/tr}</th>
- </tr>
+ <table class="data">
+ <tr>
+ <th style="width:1%;" colspan="2">{tr}Icons{/tr}</th>
+ <th style="width:70%;">{tr}Icon name{/tr}</th>
+ <th style="width:29%;">{tr}bitweaver uses{/tr}</th>
+ </tr>
- {foreach from=$iconSet key=iname item=iexplain}
- <tr class="{cycle values="odd,even"}">
- <td> {$iname} </td>
- <td>
- {* avoid translation here by not using iexplain *}
- {biticon istyle=tango ipackage=icons iname="small/$iname"}
- </td>
- <td>
- {biticon istyle=tango ipackage=icons iname="large/$iname"}
- </td>
- <td> {$iexplain} </td>
- </tr>
- {/foreach}
- </table>
- {/foreach}
+ {foreach from=$iconList item=icon}
+ <tr class="{cycle values="odd,even"}">
+ <td>
+ {* avoid translation here by not using iexplain *}
+ {biticon istyle=tango ipackage=icons iname="small/$icon"}
+ </td>
+ <td>
+ {biticon istyle=tango ipackage=icons iname="large/$icon"}
+ </td>
+ <td>
+ {$icon}<br />
+ <small>{ldelim}biticon ipackage="icons" iname="{$icon}" iexplain="Help"{rdelim}</small>
+ </td>
+ <td>
+ {foreach from=$iconUsage key=ucon item=usage}
+ {if $icon == $ucon}{$usage}{/if}
+ {/foreach}
+ </td>
+ </tr>
+ {/foreach}
+ </table>
</div><!-- end .body -->
</div><!-- end .___ -->
{/strip}