Changeset 9493 for trunk/admin/themes/default/template
- Timestamp:
- Mar 3, 2011, 12:54:46 PM (13 years ago)
- Location:
- trunk/admin/themes/default/template
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/themes/default/template/plugins_update.tpl
r9491 r9493 1 1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/jquery.ui.min.js' } 2 {combine_script id='jquery.cluetip' load='async' require='jquery' path='themes/default/js/plugins/jquery.cluetip.packed.js'} 3 {footer_script require='jquery.cluetip'} 4 jQuery().ready(function(){ldelim} 5 jQuery('.cluetip').cluetip({ldelim} 6 width: 300, 7 splitTitle: '|' 2 {combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.effects.core.min.js' } 3 {combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/minified/jquery.effects.blind.min.js' } 4 5 {footer_script require='jquery.ui.effects.blind'} 6 jQuery(document).ready(function(){ldelim} 7 jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {ldelim} 8 id = this.id.split('_'); 9 jQuery("#revdesc_"+id[1]).toggle('blind'); 10 jQuery(".button_"+id[1]).toggle(); 11 return false; 8 12 }); 9 13 }); … … 19 23 <legend>{'Plugins which need upgrade'|@translate}</legend> 20 24 {foreach from=$plugins item=plugin name=plugins_loop} 21 <div class="pluginBox" id="plugin_{$plugin.ID}">25 <div class="pluginBox"> 22 26 <table> 23 27 <tr> 24 28 <td class="pluginBoxNameCell"> 25 <a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{$plugin.EXT_NAME}|{$plugin.EXT_DESC|htmlspecialchars|nl2br}">{$plugin.EXT_NAME}</a>29 {$plugin.EXT_NAME} 26 30 </td> 27 31 <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}');">{'Automatic upgrade'|@translate}</a> 29 | <a href="{$plugin.URL_DOWNLOAD}">{'Download file'|@translate}</a> 32 <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> 33 | <a href="{$plugin.URL_DOWNLOAD}">{'Download'|@translate}</a> 34 | <a class="externalLink" href="{$plugin.EXT_URL}">{'Visit plugin site'|@translate}</a> 30 35 </td> 31 36 </tr> 32 37 <tr> 33 38 <td> 34 <a href="{$plugin.EXT_URL}" class="externalLink cluetip" title="{'Version'|@translate} {$plugin.VERSION}|{$plugin.REV_DESC|htmlspecialchars|nl2br}"> {'Version'|@translate} {$plugin.VERSION}</a>39 {'Version'|@translate} {$plugin.CURRENT_VERSION} 35 40 </td> 36 <td >41 <td class="pluginDesc" id="desc_{$plugin.ID}"> 37 42 <em>{'Downloads'|@translate}: {$plugin.DOWNLOADS}</em> 38 {'By %s'|@translate|@sprintf:$plugin.AUTHOR} 43 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="" class="button_{$plugin.ID}"> 44 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$plugin.ID}" style="display:none;"> 45 {'New Version'|@translate} : {$plugin.NEW_VERSION} 46 | {'By %s'|@translate|@sprintf:$plugin.AUTHOR} 47 </td> 48 </tr> 49 <tr> 50 <td></td> 51 <td class="pluginDesc"> 52 <p id="revdesc_{$plugin.ID}" style="display:none;">{$plugin.REV_DESC|htmlspecialchars|nl2br}</p> 39 53 </td> 40 54 </tr> -
trunk/admin/themes/default/template/themes_update.tpl
r9472 r9493 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'} 3 jQuery().ready(function(){ldelim} 4 jQuery('.cluetip').cluetip({ldelim} 5 width: 300, 6 splitTitle: '|' 1 {combine_script id='jquery.ui' load='async' require='jquery' path='themes/default/js/jquery.ui.min.js' } 2 {combine_script id='jquery.ui.effects' load='async' require='jquery.ui' path='themes/default/js/ui/minified/jquery.effects.core.min.js' } 3 {combine_script id='jquery.ui.effects.blind' load='async' require='jquery.ui.effects' path='themes/default/js/ui/minified/jquery.effects.blind.min.js' } 4 5 {footer_script require='jquery.ui.effects.blind'} 6 jQuery(document).ready(function(){ldelim} 7 jQuery("td[id^='desc_'], p[id^='revdesc_']").click(function() {ldelim} 8 id = this.id.split('_'); 9 jQuery("#revdesc_"+id[1]).toggle('blind'); 10 jQuery(".button_"+id[1]).toggle(); 11 return false; 7 12 }); 8 13 }); … … 10 15 11 16 <div class="titrePage"> 12 <h2>{' Check for updates'|@translate}</h2>17 <h2>{'Themes'|@translate}</h2> 13 18 </div> 14 19 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> 20 {if not empty($update_themes)} 21 <div id="availablePlugins"> 22 <fieldset> 23 <legend>{'Themes which need upgrade'|@translate}</legend> 24 {foreach from=$update_themes item=theme name=themes_loop} 25 <div class="pluginBox"> 26 <table> 27 <tr> 28 <td class="pluginBoxNameCell"> 29 {$theme.EXT_NAME} 30 </td> 31 <td> 32 <a href="{$theme.URL_UPDATE}" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');">{'Install'|@translate}</a> 33 | <a href="{$theme.URL_DOWNLOAD}">{'Download'|@translate}</a> 34 | <a class="externalLink" href="{$theme.EXT_URL}">{'Visit theme site'|@translate}</a> 35 </td> 36 </tr> 37 <tr> 38 <td> 39 {'Version'|@translate} {$theme.CURRENT_VERSION} 40 </td> 41 <td class="pluginDesc" id="desc_{$theme.ID}"> 42 <em>{'Downloads'|@translate}: {$theme.DOWNLOADS}</em> 43 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/plus.gif" alt="" class="button_{$theme.ID}"> 44 <img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/minus.gif" alt="" class="button_{$theme.ID}" style="display:none;"> 45 {'New Version'|@translate} : {$theme.NEW_VERSION} 46 | {'By %s'|@translate|@sprintf:$theme.AUTHOR} 47 </td> 48 </tr> 49 <tr> 50 <td></td> 51 <td class="pluginDesc"> 52 <p id="revdesc_{$theme.ID}" style="display:none;">{$theme.REV_DESC|htmlspecialchars|nl2br}</p> 53 </td> 54 </tr> 55 </table> 56 </div> 35 57 {/foreach} 36 </table> 58 </fieldset> 59 </div> 60 {elseif not isset($SERVER_ERROR)} 61 <p>{'All themes are up to date.'|@translate}</p> 37 62 {/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 TracChangeset
for help on using the changeset viewer.