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
RevLine 
[9586]1{footer_script require='jquery.effects.blind'}{literal}
2jQuery(document).ready(function(){
3        jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {
[9493]4                id = this.id.split('_');
5                jQuery("#revdesc_"+id[1]).toggle('blind');
6    jQuery(".button_"+id[1]).toggle();
7                return false;
[7995]8        });
[2587]9});
[9586]10{/literal}{/footer_script}
[2587]11
[2531]12<div class="titrePage">
13  <h2>{'Plugins'|@translate}</h2>
14</div>
15
[9491]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}
[9493]21<div class="pluginBox">
[9491]22  <table>
23    <tr>
24      <td class="pluginBoxNameCell">
[9493]25        {$plugin.EXT_NAME}
[9491]26      </td>
27      <td>
[9493]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>
[9491]31      </td>
32    </tr>
33    <tr>
34      <td>
[9493]35        {'Version'|@translate} {$plugin.CURRENT_VERSION}
[9491]36      </td>
[9493]37      <td class="pluginDesc" id="desc_{$plugin.ID}">
[9491]38        <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em>
[9493]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}
[9491]43      </td>
44    </tr>
[9493]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>
[9491]51  </table>
52</div>
[2531]53{/foreach}
[9491]54</fieldset>
55</div>
56{elseif not isset($SERVER_ERROR)}
57<p>{'All plugins are up to date.'|@translate}</p>
[2531]58{/if}
Note: See TracBrowser for help on using the repository browser.