Changeset 24985


Ignore:
Timestamp:
10/18/13 21:34:23 (6 years ago)
Author:
plg
Message:

feature 2968 added: Add link to "edit this album" when managung sub-albums. Patch by msakik.

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_list.php

    r24834 r24985  
    274274$template->assign('categories', array()); 
    275275$base_url = get_root_url().'admin.php?page='; 
     276 
     277if (isset($_GET['parent_id'])) 
     278{ 
     279  $template->assign( 
     280    'PARENT_EDIT', 
     281    $base_url.'album-'.$_GET['parent_id'] 
     282    ); 
     283} 
     284 
    276285foreach ($categories as $category) 
    277286{ 
  • trunk/admin/themes/default/template/cat_list.tpl

    r24983 r24985  
    6161  <a href="#" id="addAlbumOpen">{'create a new album'|@translate}</a> 
    6262  {if count($categories)}| <a href="#" id="autoOrderOpen">{'apply automatic sort order'|@translate}</a>{/if} 
     63  {if ($PARENT_EDIT)}| <a href="{$PARENT_EDIT}"></span>{'edit'|@translate}</a>{/if} 
    6364</p> 
    6465<form id="formCreateAlbum" action="{$F_ACTION}" method="post" style="display:none;"> 
Note: See TracChangeset for help on using the changeset viewer.