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

Last change on this file since 5200 was 5200, checked in by rvelices, 14 years ago
  • added a js confirmation before deletign a theme
  • fix link to css
  • simplified language loading (a couple of years ago during utf8 migration I left the possibility to have languages defined in another charsets - this is useless)
File size: 1.5 KB
Line 
1<div class="titrePage">
2  <h2>{'Installed Themes'|@translate}</h2>
3</div>
4
5<div id="themesContent">
6
7<h3>Active Themes</h3>
8{if isset($active_themes)}
9<div class="themeBoxes">
10{foreach from=$active_themes item=theme}
11  <div class="themeBox{if $theme.is_default} themeDefault{/if}">
12    <div class="themeName">{$theme.name}{if $theme.is_default} <em>(default)</em>{/if}</div>
13    <div class="themeShot"><img src="{$theme.screenshot}"></div>
14    <div class="themeActions">
15      <a href="{$deactivate_baseurl}{$theme.id}" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a>
16{if not $theme.is_default}
17      | <a href="{$set_default_baseurl}{$theme.id}" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a>
18{/if}
19    </div> <!-- themeActions -->
20  </div>
21{/foreach}
22</div> <!-- themeBoxes -->
23{/if}
24
25{if isset($inactive_themes)}
26<h3>Inactive Themes</h3>
27<div class="themeBoxes">
28{foreach from=$inactive_themes item=theme}
29  <div class="themeBox">
30    <div class="themeName">{$theme.name}</div>
31    <div class="themeShot"><img src="{$theme.screenshot}"></div>
32    <div class="themeActions">
33      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
34      | <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
35    </div>
36   
37  </div>
38{/foreach}
39</div> <!-- themeBoxes -->
40{/if}
41
42</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.