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

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

feature 1514: make the "deactivate" action inactive if there is no active
theme left.

bug fixed: when setting the default theme, make sure at least one user will
be updated.

File size: 2.0 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}"></div>
15    <div class="themeActions">
16
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    </div> <!-- themeActions -->
27  </div>
28{/foreach}
29</div> <!-- themeBoxes -->
30{/if}
31</fieldset>
32
33{if isset($inactive_themes)}
34<fieldset>
35<legend>{'Inactive Themes'|@translate}</legend>
36<div class="themeBoxes">
37{foreach from=$inactive_themes item=theme}
38  <div class="themeBox">
39    <div class="themeName">{$theme.name}</div>
40    <div class="themeShot"><img src="{$theme.screenshot}"></div>
41    <div class="themeActions">
42
43  {if $theme.activable}
44      <a href="{$activate_baseurl}{$theme.id}" title="{'Make this theme available to users'|@translate}">{'Activate'|@translate}</a>
45  {else}
46      <span title="{$theme.activate_tooltip}">{'Activate'|@translate}</span>
47  {/if}
48
49      |
50
51  {if $theme.deletable}
52      <a href="{$delete_baseurl}{$theme.id}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this theme'|@translate}">{'Delete'|@translate}</a>
53  {else}
54      <span title="{$theme.delete_tooltip}">{'Delete'|@translate}</span>
55  {/if}
56
57    </div>
58   
59  </div>
60{/foreach}
61</div> <!-- themeBoxes -->
62</fieldset>
63{/if}
64
65</div> <!-- themesContent -->
Note: See TracBrowser for help on using the repository browser.