Commit e9b0b0dd authored by Richard Mansfield's avatar Richard Mansfield

Add links on edit tags page back to search results

Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 81f640e0
......@@ -68,6 +68,7 @@ $smarty->assign('PAGEHEADING', hsc(TITLE));
$smarty->assign('tags', $tags);
if ($tag) {
$smarty->assign('tag', $tag);
$smarty->assign('tagsearchurl', get_config('wwwroot') . 'tags.php?tag=' . urlencode($tag));
$smarty->assign('edittagform', $edittagform);
$smarty->assign('deletetagform', $deletetagform);
}
......
......@@ -102,10 +102,10 @@ $string['tagfilter_text'] = 'Text';
$string['tagfilter_view'] = 'Views';
$string['edittags'] = 'Edit Tags';
$string['selectatagtoedit'] = 'Select a tag to edit';
$string['edittag'] = 'Edit Tag "%s"';
$string['edittag'] = 'Edit <a href="%s">%s</a>';
$string['editthistag'] = 'Edit This Tag';
$string['edittagdescription'] = 'All items in your portfolio tagged "%s" will be updated';
$string['deletetag'] = 'Delete Tag "%s"';
$string['deletetag'] = 'Delete <a href="%s">%s</a>';
$string['confirmdeletetag'] = 'Do you really want to delete this tag from everything in your portfolio?';
$string['deletetagdescription'] = 'Remove this tag from all items in your portfolio';
$string['tagupdatedsuccessfully'] = 'Tag updated successfully';
......
{include file="header.tpl"}
{if $tags}
<div class="rbuttons"><a href="{$WWWROOT}tags.php">{str tag=mytags}</a></div>
<div class="edittags mytags">
<div>{str tag=selectatagtoedit}:</div>
{foreach from=$tags item=t}
......@@ -12,10 +13,10 @@
{/if}
{if $tag}
<h3>{str tag=edittag arg1=$tag|escape}</h3>
<h2>{str tag=edittag arg1=$tagsearchurl arg2=$tag|escape}</h2>
<p>{str tag=edittagdescription arg1=$tag|escape}</p>
{$edittagform}
<h3>{str tag=deletetag arg1=$tag|escape}</h3>
<h2>{str tag=deletetag arg1=$tagsearchurl arg2=$tag|escape}</h2>
<p>{str tag=deletetagdescription}</p>
{$deletetagform}
{/if}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment