source: trunk/admin/themes/default/template/themes_update.tpl @ 9472

Last change on this file since 9472 was 9472, checked in by patdenice, 10 years ago

Add themes autmatic update functionality.

File size: 2.8 KB
Line 
1{combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'}
2{footer_script require='jquery.cluetip'}
3jQuery().ready(function(){ldelim}
4        jQuery('.cluetip').cluetip({ldelim}
5                width: 300,
6                splitTitle: '|'
7        });
8});
9{/footer_script}
10
11<div class="titrePage">
12  <h2>{'Check for updates'|@translate}</h2>
13</div>
14
15{if isset($themes_not_uptodate)}
16<br>
17<b>{'Themes which need upgrade'|@translate}</b>
18<table class="table2 themes">
19<thead>
20  <tr class="throw">
21    <td>{'Name'|@translate}</td>
22    <td>{'Current<br>version'|@translate}</td>
23    <td>{'Available<br>version'|@translate}</td>
24    <td>{'Actions'|@translate}</td>
25  </tr>
26</thead>
27{foreach from=$themes_not_uptodate item=theme name=themes_loop}
28  <tr class="{if $smarty.foreach.themes_loop.index is odd}row1{else}row2{/if}">
29    <td><a href="{$theme.EXT_URL}" class="externalLink cluetip" title="{$theme.EXT_NAME}|{$theme.EXT_DESC|htmlspecialchars|nl2br}">{$theme.EXT_NAME}</a></td>
30    <td style="text-align:center;">{$theme.VERSION}</td>
31    <td style="text-align:center;"><a href="{$theme.EXT_URL}" class="externalLink cluetip" title="{$theme.EXT_NAME}|{$theme.NEW_VER_DESC|htmlspecialchars|nl2br}">{$theme.NEW_VERSION}</a></td>
32    <td style="text-align:center;"><a href="{$theme.URL_UPDATE}" onclick="return confirm('{'Are you sure to install this upgrade? You must verify if this version does not need uninstallation.'|@translate|@escape:javascript}');">{'Automatic upgrade'|@translate}</a>
33      / <a href="{$theme.URL_DOWNLOAD}">{'Download file'|@translate}</a></td>
34  </tr>
35{/foreach}
36</table>
37{/if}
38
39
40{if isset($themes_uptodate)}
41<br>
42<b>{'Themes up to date'|@translate}</b>
43<table class="table2 plugins">
44<thead>
45  <tr class="throw">
46    <td>{'Name'|@translate}</td>
47    <td>{'Version'|@translate}</td>
48  </tr>
49</thead>
50{foreach from=$themes_uptodate item=theme name=themes_loop}
51  <tr class="{if $smarty.foreach.themes_loop.index is odd}row1{else}row2{/if}">
52    <td><a href="{$theme.URL}" class="externalLink cluetip" title="{$theme.NAME}|{$theme.EXT_DESC|htmlspecialchars|nl2br}">{$theme.NAME}</a></td>
53    <td style="text-align:center;"><a href="{$theme.URL}" class="externalLink cluetip" title="{$theme.NAME}|{$theme.VER_DESC|htmlspecialchars|nl2br}">{$theme.VERSION}</a></td>
54  </tr>
55{/foreach}
56</table>
57{/if}
58
59
60{if isset($themes_cant_check)}
61<br>
62<b>{'Theme versions can\'t be checked'|@translate}</b>
63<table class="table2 plugins">
64<thead>
65  <tr class="throw">
66    <td>{'Name'|@translate}</td>
67    <td>{'Version'|@translate}</td>
68  </tr>
69</thead>
70{foreach from=$themes_cant_check item=theme name=themes_loop}
71  <tr class="{if $smarty.foreach.themes_loop.index is odd}row1{else}row2{/if}">
72    <td>{$theme.NAME}</td>
73    <td style="text-align:center;">{$theme.VERSION}</td>
74  </tr>
75{/foreach}
76</table>
77{/if}
Note: See TracBrowser for help on using the repository browser.