Changeset 5475


Ignore:
Timestamp:
Mar 30, 2010, 3:30:50 PM (10 years ago)
Author:
plg
Message:

feature 1557: remove the sorting feature on plugin list, because it becomes
not very relevant with the new design.

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_list.php

    r5474 r5475  
    3131$template->set_filenames(array('plugins' => 'plugins_list.tpl'));
    3232
    33 $order = isset($_GET['order']) ? $_GET['order'] : 'name';
    34 $base_url = get_root_url().'admin.php?page='.$page['page'].'&order='.$order;
     33$base_url = get_root_url().'admin.php?page='.$page['page'];
    3534$action_url = $base_url.'&plugin='.'%s'.'&pwg_token='.get_pwg_token();
    3635
     
    5756$plugins->set_tabsheet($page['page']);
    5857
    59 //---------------------------------------------------------------Order options
    60 $link = get_root_url().'admin.php?page='.$page['page'].'&order=';
    61 
    62 $template->assign(
    63   'order_options',
    64   array(
    65     $link.'name' => l10n('Name'),
    66     $link.'status' => l10n('Status'),
    67     $link.'author' => l10n('Author'),
    68     $link.'id' => 'Id')
    69   );
    70 
    71 $template->assign('order_selected', $link.$order);
    72 
    7358// +-----------------------------------------------------------------------+
    7459// |                     start template output                             |
    7560// +-----------------------------------------------------------------------+
    7661
    77 $plugins->sort_fs_plugins($order);
     62$plugins->sort_fs_plugins('name');
    7863
    7964foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
  • trunk/admin/themes/default/template/plugins_list.tpl

    r5474 r5475  
    11<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>
    82  <h2>{'Plugins'|@translate}</h2>
    93</div>
Note: See TracChangeset for help on using the changeset viewer.