Ignore:
Timestamp:
Mar 3, 2011, 12:54:46 PM (13 years ago)
Author:
patdenice
Message:

Improve display for plugins and themes update page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/plugins_update.tpl

    r9491 r9493  
    11{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'}
     6jQuery(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;
    812        });
    913});
     
    1923<legend>{'Plugins which need upgrade'|@translate}</legend>
    2024{foreach from=$plugins item=plugin name=plugins_loop}
    21 <div class="pluginBox" id="plugin_{$plugin.ID}">
     25<div class="pluginBox">
    2226  <table>
    2327    <tr>
    2428      <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}
    2630      </td>
    2731      <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>
    3035      </td>
    3136    </tr>
    3237    <tr>
    3338      <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}
    3540      </td>
    36       <td>
     41      <td class="pluginDesc" id="desc_{$plugin.ID}">
    3742        <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>
    3953      </td>
    4054    </tr>
Note: See TracChangeset for help on using the changeset viewer.