Commit d91b3aa8 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

My collections: link collection name to first view (bug #617067)


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 623ab026
......@@ -65,6 +65,7 @@ $string['editviews'] = 'Edit Collection Views';
$string['editviewaccess'] = 'Edit View access';
$string['editaccess'] = 'Edit Collection Access';
$string['emptycollectionnoeditaccess'] = 'You cannot edit access to empty collections. Add some views first.';
$string['emptycollection'] = 'Empty collection';
$string['incorrectaccesstype'] = 'Attention: access type \'secret URL\' is unavailable to be set as override access type. This has been ignored and existing view accesses retained. However, if the selected override view had other access types these have been used and existing view access types removed.';
$string['manageviews'] = 'Manage views';
$string['mycollections'] = 'My Collections';
......
......@@ -10,7 +10,11 @@
<tr class="{cycle values='r0,r1'}">
<td><div class="rel">
<h3>{$collection->name}</h3>
{if $collection->views[0]->view}
<h3><a href="{$WWWROOT}view/view.php?id={$collection->views[0]->view}">{$collection->name}</a></h3>
{else}
<h3 title="{str tag=emptycollection section=collection}">{$collection->name}</h3>
{/if}
<div class="rbuttons"><a href="{$WWWROOT}collection/delete.php?id={$collection->id}" class="btn-del">{str tag=delete}</a></div>
......
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