source: trunk/admin/template/goto/plugins_list.tpl @ 3662

Last change on this file since 3662 was 3282, checked in by plg, 16 years ago

change: according to topic:15067, svn:keywords property was removed

  • Property svn:eol-style set to LF
File size: 3.4 KB
Line 
1<div class="titrePage">
2<span class="sort">
3{'Sort order'|@translate} :
4  <select onchange="document.location = this.options[this.selectedIndex].value;" style="width:200px">
5        {html_options options=$order_options selected=$order_selected}
6  </select>
7</span>
8  <h2>{'Plugins'|@translate}</h2>
9</div>
10
11
12{if isset($plugins)}
13<table class="table2 plugins">
14<thead>
15  <tr class="throw">
16    <td>{'Name'|@translate}</td>
17    <td>{'Actions'|@translate}</td>
18    <td>{'Version'|@translate}</td>
19    <td>{'Description'|@translate}</td>
20  </tr>
21</thead>
22
23{foreach from=$plugins item=plugin name=plugins_loop}
24  <tr class="{if $smarty.foreach.plugins_loop.index is odd}row1{else}row2{/if}">
25  <td class="pluginState{if $plugin.STATE != 'uninstalled'} {$plugin.STATE}{/if}">
26    {$plugin.NAME}
27  </td>
28  <td>
29    <ul class="pluginsActions">
30    {if $plugin.STATE == 'active'}
31      <li>
32        <a href="{$plugin.U_ACTION}&amp;action=deactivate">
33          <img src="{$themeconf.admin_icon_dir}/plug_deactivate.png" alt="{'Deactivate'|@translate}" title="{'Deactivate'|@translate}">
34        </a>
35      </li>
36      <li>
37          <img src="{$themeconf.admin_icon_dir}/plug_uninstall_grey.png" alt="{'Uninstall'|@translate}" title="{'Uninstall'|@translate}">
38      </li>
39    {/if}
40    {if $plugin.STATE == 'inactive'}
41      <li>
42        <a href="{$plugin.U_ACTION}&amp;action=activate">
43          <img src="{$themeconf.admin_icon_dir}/plug_activate.png" alt="{'Activate'|@translate}" title="{'Activate'|@translate}">
44        </a>
45      </li>
46      <li>
47        <a href="{$plugin.U_ACTION}&amp;action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
48          <img src="{$themeconf.admin_icon_dir}/plug_uninstall.png" alt="{'Uninstall'|@translate}" title="{'Uninstall'|@translate}">
49        </a>
50      </li>
51    {/if}
52    {if $plugin.STATE == 'missing'}
53      <li>
54          <img src="{$themeconf.admin_icon_dir}/plug_deactivate_grey.png" alt="{'Deactivate'|@translate}" title="{'Deactivate'|@translate}">
55      </li>
56      <li>
57        <a href="{$plugin.U_ACTION}&amp;action=uninstall" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
58          <img src="{$themeconf.admin_icon_dir}/plug_uninstall.png" alt="{'Uninstall'|@translate}" title="{'Uninstall'|@translate}">
59        </a>
60      </li>
61    {/if}
62    {if $plugin.STATE == 'uninstalled'}
63      <li>
64          <img src="{$themeconf.admin_icon_dir}/plug_activate_grey.png" alt="{'Activate'|@translate}" title="{'Activate'|@translate}">
65      </li>
66      <li>
67        <a href="{$plugin.U_ACTION}&amp;action=install" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">
68          <img src="{$themeconf.admin_icon_dir}/plug_install.png" alt="{'Install'|@translate}" title="{'Install'|@translate}">
69        </a>
70      </li>
71      <li>
72        <a href="{$plugin.U_ACTION}&amp;action=delete" onclick="return confirm('{'plugins_confirm_delete'|@translate|@escape:'javascript'}');">
73          <img src="{$themeconf.admin_icon_dir}/plug_delete.png" alt="{'plugins_delete'|@translate}" title="{'plugins_delete'|@translate}">
74        </a>
75      </li>
76    {else}
77      <li>
78        <img src="{$themeconf.admin_icon_dir}/plug_delete_grey.png" alt="{'plugins_delete'|@translate}" title="{'plugins_delete'|@translate}">
79      </li>
80    {/if}
81    </ul>
82  </td>
83  <td style="text-align:center;">{$plugin.VERSION}</td>
84  <td>{$plugin.DESCRIPTION}</td>
85  </tr>
86{/foreach}
87</table>
88{/if}
Note: See TracBrowser for help on using the repository browser.