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

Last change on this file since 5258 was 5258, checked in by plg, 14 years ago

feature 1514: improvement, impossible to delete a theme that is required
by another installed theme.

File size: 1.7 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</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)</em>{/if}</div>
14    <div class="themeShot"><img src="{$theme.screenshot}"></div>
15    <div class="themeActions">
16      <a href="{$deactivate_baseurl}{$theme.id}" title="{'Forbid this theme to users'|@translate}">{'Deactivate'|@translate}</a>
17{if not $theme.is_default}
18      | <a href="{$set_default_baseurl}{$theme.id}" title="{'Set as default theme for unregistered and new users'|@translate}">{'Default'|@translate}</a>
19{/if}
20    </div> <!-- themeActions -->
21  </div>
22{/foreach}
23</div> <!-- themeBoxes -->
24{/if}
25</fieldset>
26
27{if isset($inactive_themes)}
28<fieldset>
29<legend>Inactive Themes</legend>
30<div class="themeBoxes">
31{foreach from=$inactive_themes item=theme}
32  <div class="themeBox">
33    <div class="themeName">{$theme.name}</div>
34    <div class="themeShot"><img src="{$theme.screenshot}"></div>
35    <div class="themeActions">
36      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
37      |
38  {if $theme.deletable}
39      <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
40  {else}
41      <span title="{$theme.delete_tooltip}">{'Delete'|@translate}</span>
42  {/if}
43    </div>
44   
45  </div>
46{/foreach}
47</div> <!-- themeBoxes -->
48</fieldset>
49{/if}
50
51</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.