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

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

Update jQuery UI to 1.8.10.
Improve jquery ui management in template class.

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