source: trunk/admin/themes/default/template/plugins_update.tpl @ 10162

Last change on this file since 10162 was 9586, checked in by patdenice, 13 years ago

feature:2114
Simplify all admin templates.

  • Property svn:eol-style set to LF
File size: 2.0 KB
Line 
1{footer_script require='jquery.effects.blind'}{literal}
2jQuery(document).ready(function(){
3        jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {
4                id = this.id.split('_');
5                jQuery("#revdesc_"+id[1]).toggle('blind');
6    jQuery(".button_"+id[1]).toggle();
7                return false;
8        });
9});
10{/literal}{/footer_script}
11
12<div class="titrePage">
13  <h2>{'Plugins'|@translate}</h2>
14</div>
15
16{if not empty($plugins)}
17<div id="availablePlugins">
18<fieldset>
19<legend>{'Plugins which need upgrade'|@translate}</legend>
20{foreach from=$plugins item=plugin name=plugins_loop}
21<div class="pluginBox">
22  <table>
23    <tr>
24      <td class="pluginBoxNameCell">
25        {$plugin.EXT_NAME}
26      </td>
27      <td>
28        <a href="{$plugin.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}');">{'Install'|@translate}</a>
29        | <a href="{$plugin.URL_DOWNLOAD}">{'Download'|@translate}</a>
30        | <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a>
31      </td>
32    </tr>
33    <tr>
34      <td>
35        {'Version'|@translate} {$plugin.CURRENT_VERSION}
36      </td>
37      <td class="pluginDesc" id="desc_{$plugin.ID}">
38        <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em>
39        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="" class="button_{$plugin.ID}">
40        <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$plugin.ID}" style="display:none;">
41        {'New Version'|@translate} : {$plugin.NEW_VERSION}
42        | {'By %s'|@translate|@sprintf:$plugin.AUTHOR}
43      </td>
44    </tr>
45    <tr>
46      <td></td>
47      <td class="pluginDesc">
48        <p id="revdesc_{$plugin.ID}" style="display:none;">{$plugin.REV_DESC|htmlspecialchars|nl2br}</p>
49      </td>
50    </tr>
51  </table>
52</div>
53{/foreach}
54</fieldset>
55</div>
56{elseif not isset($SERVER_ERROR)}
57<p>{'All plugins are up to date.'|@translate}</p>
58{/if}
Note: See TracBrowser for help on using the repository browser.