<td>
    <a href="{$item.url}">{$item.name}</a>
</td>
<td class="accesslist">
{if $item.pending}<div class="detail text-danger"><strong>{str tag="pending" section="view"}</strong></div>{/if}
{if $item.access}<div class="detail">{$item.access}</div>{/if}
{if $item.accessgroups}
    {foreach from=$item.accessgroups item=accessgroup name=ags}{strip}
          {if $accessgroup.accesstype == 'loggedin'}
            {str tag="registeredusers" section="view"}
          {elseif $accessgroup.accesstype == 'public'}
            {str tag="public" section="view"}
          {elseif $accessgroup.accesstype == 'friends'}
            <a href="{$WWWROOT}user/index.php?filter=current" id="link-myfriends">{str tag="friends" section="view"}</a>
          {elseif $accessgroup.accesstype == 'group'}
            <a href="{$accessgroup.groupurl}">{$accessgroup.name}</a>{if $accessgroup.role} ({$accessgroup.roledisplay}){/if}
          {elseif $accessgroup.accesstype == 'institution'}
            <a href="{$WWWROOT}account/institutions.php">{$accessgroup.id|institution_display_name}</a>
          {elseif $accessgroup.accesstype == 'user'}
            <a href="{profile_url($accessgroup.id)}">{$accessgroup.id|display_name}</a>{if $accessgroup.role} ({$accessgroup.roledisplay}){/if}
          {/if}
          {if $accessgroup.startdate}
            {if $accessgroup.stopdate}
              <span class="date"> {$accessgroup.startdate|strtotime|format_date:'strftimedatetime'}&rarr;{$accessgroup.stopdate|strtotime|format_date:'strftimedatetime'}</span>
            {else}
              <span class="date"> {str tag=after} {$accessgroup.startdate|strtotime|format_date:'strftimedatetime'}</span>
            {/if}
          {elseif $accessgroup.stopdate}
            <span class="date"> {str tag=before} {$accessgroup.stopdate|strtotime|format_date:'strftimedatetime'}</span>
          {/if}{if !$dwoo.foreach.ags.last}, {/if}
    {/strip}{/foreach}
{/if}
{if $item.template}<div class="detail">{str tag=thisviewmaybecopied section=view}</div>{/if}
</td>
{if $item.pending}
<td colspan="2"></td>
{else}
<td class="al-edit text-center tiny">
    <a href="{$WWWROOT}view/access.php?id={$item.viewid}{if $item.views}&collection={$item.id}{/if}" title="{str tag=share section=view}" class="text-default">
        <span class="icon icon-share-nodes" role="presentation" aria-hidden="true"></span>
        <span class="visually-hidden">{str tag=share}</span>
    </a>
</td>
<td class="secreturls text-center tiny">
    <a title="{str tag=editsecreturlaccess section=view}" href="{$WWWROOT}view/urls.php?id={$item.viewid}{if $item.views}&collection={$item.id}{/if}" class="text-default">
        <span class="text-small">{$item.secreturls}</span>
        <span class="icon icon-globe" role="presentation" aria-hidden="true"></span>
        <span class="visually-hidden">{str tag=edit}</span>
    </a>
</td>
{/if}
