Commit 452ea3bc authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Switch elements around on share access page (bug #710292)



Change-Id: I5f816b72cc5ef9192d58e773d59d32ac49c8681b
Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent db952335
......@@ -1712,9 +1712,6 @@ table.attachments td {
float: right;
}
/* Publish page */
.accesslists th .secreturl {
width: 25%;
}
.accesslists .cv {
width: 50%;
padding-left: 0;
......@@ -1736,16 +1733,12 @@ table.attachments td {
padding: 3px 5px;
border-bottom: 1px solid #FFF;
}
.accesslists .cv-listitem .cv-listitem-edit {
float: right;
}
.accesslists .cv-listitem .viewname {
font-weight: bold;
}
.secreturlcount {
float: left;
}
.secreturls {
.accesslists .secreturls {
float: right;
text-align: center;
width: 20%;
}
/* Secret url */
......
......@@ -8,17 +8,45 @@
<table class="fullwidth accesslists">
<thead>
<tr>
<th>{str tag=accesslist section=view}</th>
<th class="center">{str tag=editaccess section=view}</th>
<th>
<span class="fl">{str tag=Views section=view} &amp; {str tag=collections section=collection}</span>
<span class="fr">{str tag=secreturls section=view}</span>
<span class="fr secreturl">{str tag=secreturls section=view}</span>
</th>
<th>{str tag=accesslist section=view}</th>
<th class="center">{str tag=editaccess section=view}</th>
</tr>
</thead>
<tbody>
{foreach from=$accesslists item=accesslist name=als}
<tr class="{cycle values='r0,r1'}">
<td class="cv">
{if $accesslist.views}
<div class="cb cv-listitem">{str tag=Views section=view}:</div>
{foreach from=$accesslist.views item=view name=v}
<div class="cv-listitem">
<div class="fr secreturls">
<span class="secreturlcount">{count($view.secreturls)}</span> <span class="cv-listitem-edit"><a title="{str tag=editsecreturlaccess section=view}" href="{$WWWROOT}view/urls.php?id={$view.id}"><img src="{theme_url filename='images/edit.gif'}" alt="{str tag=edit}"></a></span>
</div>
<div class="viewname">
<a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.name|str_shorten_text:60:true}</a>
</div>
</div>
{/foreach}
{/if}
{if $accesslist.collections}
<div class="cb cv-listitem">{str tag=Collections section=collection}:</div>
{foreach from=$accesslist.collections item=collection name=c}
<div class="cb cv-listitem">
<div class="fr secreturls">
<span class="secreturlcount">{count($collection.secreturls)}</span> <span class="cv-listitem-edit"><a title="{str tag=editsecreturlaccess section=view}" href="{$WWWROOT}view/urls.php?id={$collection.viewid}"><img src="{theme_url filename='images/edit.gif'}" alt="{str tag=edit}"></a></span>
</div>
<div>
<strong><a href="{$WWWROOT}view/view.php?id={$collection.viewid}">{$collection.name|str_shorten_text:60:true}</a></strong>
</div>
</div>
{/foreach}
{/if}
</td>
<td class="al">
{if $accesslist.access}
<div class="videsc">{$accesslist.access}</div>
......@@ -55,32 +83,6 @@
<td class="al-edit">
<a href="{$WWWROOT}view/access.php?id={$accesslist.viewid}" title="{str tag=editaccess section=view}"><img src="{theme_url filename='images/edit_access.gif'}" alt="{str tag=editaccess}"></a>
</td>
<td class="cv">
{if $accesslist.views}
{foreach from=$accesslist.views item=view name=v}
<div class="cv-listitem">
<div class="fr secreturls">
<span class="secreturlcount">{count($view.secreturls)}</span> <span class="cv-listitem-edit"><a title="{str tag=editsecreturlaccess section=view}" href="{$WWWROOT}view/urls.php?id={$view.id}"><img src="{theme_url filename='images/edit.gif'}" alt="{str tag=edit}"></a></span>
</div>
<div class="viewname">
<a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.name|str_shorten_text:60:true}</a>
</div>
</div>
{/foreach}
{/if}
{if $accesslist.collections}
{foreach from=$accesslist.collections item=collection name=c}
<div class="cb cv-listitem">
<div class="fr secreturls">
<span class="secreturlcount">{count($collection.secreturls)}</span> <span class="cv-listitem-edit"><a title="{str tag=editsecreturlaccess section=view}" href="{$WWWROOT}view/urls.php?id={$collection.viewid}"><img src="{theme_url filename='images/edit.gif'}" alt="{str tag=edit}"></a></span>
</div>
<div>
<strong><a href="{$WWWROOT}view/view.php?id={$collection.viewid}">{$collection.name|str_shorten_text:60:true}</a></strong>
</div>
</div>
{/foreach}
{/if}
</td>
</tr>
{/foreach}
</tbody>
......
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