Commit d2a25868 authored by Richard Mansfield's avatar Richard Mansfield

Remove expanding title & other crud from my views page

Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent 7d04a1fb
......@@ -21,7 +21,7 @@
{foreach from=$views item=view}
<tr class="{cycle values='r0,r1'}">
<td><div class="rel">
<h3><a class="nojs-hidden-inline expand" href="{$expand}" id="details-{$view.id}">
<h3>
{if $view.type == 'profile'}
{str tag=profileviewtitle section=view}
{elseif $view.type == 'dashboard'}
......@@ -30,7 +30,7 @@
{str tag=grouphomepage section=view}
{else}
{$view.title}
{/if}</a>
{/if}
</h3>
<div class="rbuttons">
......@@ -39,30 +39,14 @@
<a href="{$WWWROOT}view/delete.php?id={$view.id}" title="{str tag=deletethisview section=view}"><img src="{theme_url filename='images/icon_close.gif'}" alt="{str tag=delete}"></a>
{/if}
</div>
<!--<div class="viewcontrol">
{if !$view.togglepublic && $view.type != 'profile' && $view.type != 'dashboard' && $view.type != 'grouphomepage'}
<a href="{$WWWROOT}view/access.php?id={$view.id}" title="{str tag=editaccess section=view}"><img src="{theme_url filename='images/edit_access.gif'}" alt="{str tag=editaccess}"></a>
{/if}
</div>-->
<div class="editlink">
{if !$view.submittedto}
<a href="{$WWWROOT}view/blocks.php?id={$view.id}" title="{str tag ="editcontentandlayout" section="view"}"><img src="{theme_url filename='images/edit.gif'}" alt="{str tag=edit}"></a>
{/if}
</div>
<!--<div class="viewcontrol">
{if $view.type == 'profile'}
<a href="{$WWWROOT}user/view.php"><img src="{theme_url filename='images/displayview.gif'}" alt="Display View"></a>
{elseif $view.type == 'dashboard'}
<a href="{$WWWROOT}"><img src="{theme_url filename='images/displayview.gif'}" alt="Display View"></a>
{elseif $view.type == 'grouphomepage'}
<a href="{$WWWROOT}group/view.php?id={$GROUP->id}"><img src="{theme_url filename='images/displayview.gif'}" alt="Display View"></a>
{else}
<a href="{$WWWROOT}view/view.php?id={$view.id}"><img src="{theme_url filename='images/displayview.gif'}" alt="Display View"></a>
{/if}
</div>-->
</div>{* rbuttons *}
<div class="js-hidden expanded" id="details-{$view.id}-expand">
<div>
{if $view.submittedto}
<div class="submitted-viewitem">{$view.submittedto|clean_html|safe}</div>
{elseif $view.type == 'profile'}
......@@ -71,32 +55,9 @@
<div class="videsc">{str tag=dashboarddescription}</div>
{elseif $view.type == 'grouphomepage'}
<div class="videsc">{str tag=grouphomepagedescription section=view}</div>
{else}
{if $view.description}
<div class="videsc">{$view.description|clean_html|safe}</div>
{/if}
<div class="videsc"><a class="btn-edit" href="{$WWWROOT}view/edit.php?id={$view.id}">{str tag="edittitleanddescription" section="view"}</a></div>
{/if}
{if $view.tags}
<div class="videsc">
<div class="tags"><label>{str tag=tags}:</label> {list_tags owner=$view.owner tags=$view.tags}</div>
</div>
{/if}
{if $view.collection}
<div class="videsc">
<div class="collection"><label>{str tag=Collection section=collection}:</label> <a href="{$WWWROOT}collection/views.php?id={$view.collection->id}">{$view.collection->name}</a></div>
</div>
{/if}
{if $view.artefacts}
<div class="videsc">
<div class="artefacts"><label>{str tag="artefacts" section="view"}:</label>
{foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" id="link-artefacts">{$artefact.title}</a>{if !$.foreach.artefacts.last}, {/if}{/foreach}</div>
</div>
{/if}
{if $view.submitto}
<div class="submit-viewitem">{$view.submitto|safe}</div>
{elseif $view.description}
<div class="videsc">{$view.description|str_shorten_html:110:true|strip_tags|safe}</div>
{/if}
{if $view.togglepublic}{$view.togglepublic|safe}{/if}
</div>
</div></td>
</tr>
......
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