feature 2968 added: Add link to "edit this album" when managung sub-albums. Patch by msakik.
git-svn-id: http://piwigo.org/svn/trunk@24985 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
4fb203b10a
commit
cd53c8fcd7
2 changed files with 10 additions and 0 deletions
|
@ -273,6 +273,15 @@ SELECT DISTINCT category_id
|
|||
|
||||
$template->assign('categories', array());
|
||||
$base_url = get_root_url().'admin.php?page=';
|
||||
|
||||
if (isset($_GET['parent_id']))
|
||||
{
|
||||
$template->assign(
|
||||
'PARENT_EDIT',
|
||||
$base_url.'album-'.$_GET['parent_id']
|
||||
);
|
||||
}
|
||||
|
||||
foreach ($categories as $category)
|
||||
{
|
||||
$cat_list_url = $base_url.'cat_list';
|
||||
|
|
|
@ -60,6 +60,7 @@ jQuery(document).ready(function(){
|
|||
<p class="showCreateAlbum" id="notManualOrder">
|
||||
<a href="#" id="addAlbumOpen">{'create a new album'|@translate}</a>
|
||||
{if count($categories)}| <a href="#" id="autoOrderOpen">{'apply automatic sort order'|@translate}</a>{/if}
|
||||
{if ($PARENT_EDIT)}| <a href="{$PARENT_EDIT}"></span>{'edit'|@translate}</a>{/if}
|
||||
</p>
|
||||
<form id="formCreateAlbum" action="{$F_ACTION}" method="post" style="display:none;">
|
||||
<fieldset>
|
||||
|
|
Loading…
Add table
Reference in a new issue