source: trunk/admin/themes/default/template/themes_installed.tpl @ 5931

Last change on this file since 5931 was 5931, checked in by nikrou, 14 years ago

Fix some errors in generated html

File size: 2.2 KB
Line 
1<div class="titrePage">
2  <h2>{'Installed Themes'|@translate}</h2>
3</div>
4
5<div id="themesContent">
6
7<fieldset>
8<legend>{'Active Themes'|@translate}</legend>
9{if isset($active_themes)}
10<div class="themeBoxes">
11{foreach from=$active_themes item=theme}
12  <div class="themeBox{if $theme.is_default} themeDefault{/if}">
13    <div class="themeName">{$theme.name}{if $theme.is_default} <em>({'default'|@translate})</em>{/if}</div>
14    <div class="themeShot"><img src="{$theme.screenshot}" alt=""></div>
15    <div class="themeActions">
16      <div>
17{if $theme.deactivable}
18      <a href="{$deactivate_baseurl}{$theme.id}" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a>
19{else}
20      <span title="{$theme.deactivate_tooltip}">{'Deactivate'|@translate}</span>
21{/if}
22     
23{if not $theme.is_default}
24      | <a href="{$set_default_baseurl}{$theme.id}" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a>
25{/if}
26{if isset($theme.admin_uri)}
27      <br><a href="{$theme.admin_uri}" title="{'Configuration'|@translate}">{'Configuration'|@translate}</a>
28{/if}
29      </div>
30    </div> <!-- themeActions -->
31  </div>
32{/foreach}
33</div> <!-- themeBoxes -->
34{/if}
35</fieldset>
36
37{if isset($inactive_themes)}
38<fieldset>
39<legend>{'Inactive Themes'|@translate}</legend>
40<div class="themeBoxes">
41{foreach from=$inactive_themes item=theme}
42  <div class="themeBox">
43    <div class="themeName">{$theme.name}</div>
44    <div class="themeShot"><img src="{$theme.screenshot}" alt=""></div>
45    <div class="themeActions">
46      <div>
47  {if $theme.activable}
48      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
49  {else}
50      <span title="{$theme.activate_tooltip}">{'Activate'|@translate}</span>
51  {/if}
52
53      |
54
55  {if $theme.deletable}
56      <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
57  {else}
58      <span title="{$theme.delete_tooltip}">{'Delete'|@translate}</span>
59  {/if}
60      </div>
61    </div>
62   
63  </div>
64{/foreach}
65</div> <!-- themeBoxes -->
66</fieldset>
67{/if}
68
69</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.