Ignore:
Timestamp:
Sep 1, 2011, 4:01:52 PM (13 years ago)
Author:
plg
Message:

plugin manager: replace the top left "Display Compact/Complete" select box by a
simpler link "show details" or "hide details" on top right.

File:
1 edited

Legend:

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

    r11838 r12029  
    5050        for (i=0;i<data.length;i++) {
    5151          {/literal}
    52           {if $plugin_display == 'complete'}
     52          {if $show_details}
    5353            jQuery('#'+data[i]+' .pluginBoxNameCell').prepend('<a class="warning" title="'+incompatible_msg+'"></a>')
    5454          {else}
     
    8888
    8989<div class="titrePage">
    90   <span class="sort">
    91     <form action="" method="get" name="change_display">
    92       <input type="hidden" name="page" value="plugins"/>
    93       {'Display'|@translate} :
    94       <select name="plugin_display" onchange="this.form.submit();">
    95         <option value="compact" {if $plugin_diplay=='compact'}selected="selected"{/if}>{'Compact'|@translate}</option>
    96         <option value="complete" {if $plugin_display=='complete'}selected="selected"{/if}>{'Complete'|@translate}</option>
    97       </select>
    98     </form>
    99   </span>
    10090  <h2>{'Plugins'|@translate}</h2>
     91</div>
     92
     93<div class="showDetails">
     94  {if $show_details}
     95  <a href="{$base_url}&amp;show_details=0">{'hide details'|@translate}</a>
     96  {else}
     97  <a href="{$base_url}&amp;show_details=1">{'show details'|@translate}</a>
     98  {/if}
    10199</div>
    102100
     
    135133  {/if}
    136134   
    137   {if $plugin_display == 'complete'}
     135  {if $show_details}
    138136    <div id="{$plugin.ID}" class="pluginBox {$plugin.STATE}">
    139137      <table>
     
    176174    </div> {*<!-- pluginBox -->*}
    177175   
    178   {elseif $plugin_display == 'compact'}
     176  {else}
    179177    {if not empty($plugin.VISIT_URL)}
    180178      {assign var='version' value="<a class='externalLink' href='"|cat:$plugin.VISIT_URL|cat:"'>"|cat:$plugin.VERSION|cat:"</a>"}
Note: See TracChangeset for help on using the changeset viewer.