sharedviews.tpl 1.73 KB
Newer Older
1
2
3
4
5
6
7
8
{include file="header.tpl"}
{include file="sidebar.tpl"}
{include file="columnleftstart.tpl"}

<h2>{$heading}</h2>

{include file="group/tabstart.tpl" current="views"}
{if $views}
9
10
11
12
13
    <table id="myviewstable" class="groupviews">
    {foreach from=$views item=view}
        <tr>
            <td class="r{cycle values=0,1}">
                <h5><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a> {str tag=by section=view}
Richard Mansfield's avatar
Richard Mansfield committed
14
                    <a href="{$WWWROOT}{if $view.group}group{else}user{/if}/view.php?id={if $view.group}{$view.group}{else}{$view.owner}{/if}">{if $view.sharedby}{$view.sharedby}{else}{$groupname}{/if}</a>
15
16
17
18
19
20
21
22
23
24
                </h5>
                <span>
                {if $view.description}
                    {$view.description}
                {/if}
                {if $view.description && $view.artefacts}<br>{/if}
                {if $view.artefacts}
                    <strong>{str tag="artefacts" section="view"}:</strong>
                    {foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" class="link-artefacts">{$artefact.title|escape}</a>{if !$smarty.foreach.artefacts.last}, {/if}{/foreach}
                {/if}
Richard Mansfield's avatar
Richard Mansfield committed
25
26
27
                {if $view.template}
                    <a href="">{str tag=copythisview section=view}</a>
                {/if}
28
29
30
31
32
33
34
                </span>
            </td>
        </tr>
    {/foreach}
    </table>
    <div class="center">{$pagination}</div>
{else}
35
<table id="myviewstable"{if $member} class="groupviews"{/if}>
36
37
38
  <tr>
    <td>{str tag="noviewstosee" section="group"}</td>
  </tr>
39
</table>
40
{/if}
41
42
43
44
45
46
47


{include file="group/tabend.tpl"}

{include file="columnleftend.tpl"}
{include file="footer.tpl"}