index.tpl 4.32 KB
Newer Older
Clare Lenihan's avatar
Clare Lenihan committed
1
{include file="header.tpl"}
2

3
4
5
{if $GROUP}<h2>{str tag=groupviews section=view}</h2>
{/if}
            <div class="rbuttons{if $GROUP} pagetabs{/if}">
6
7
8
                {$createviewform}
                <form method="post" action="{$WWWROOT}view/choosetemplate.php">
                    <input type="submit" class="submit" value="{str tag="copyaview" section="view"}">
9
{if $GROUP}
10
                    <input type="hidden" name="group" value="{$GROUP->id}" />
11
{elseif $institution}
12
                    <input type="hidden" name="institution" value="{$institution}">
13
{/if}
14
15
16
                </form>
            </div>
{if $institution}                {$institutionselector}{/if}
17

Clare Lenihan's avatar
Clare Lenihan committed
18
{if $views}
19
            <table id="myviews" class="fullwidth listing">
20
                <tbody>
Clare Lenihan's avatar
Clare Lenihan committed
21
{foreach from=$views item=view}
22
                    <tr class="{cycle values='r0,r1'}">
23
24
25
26
27
                        <td><div class="rel">
                            <h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a></h3>
{if $view.submittedto}
                            <div class="vi submitted-viewitem">{$view.submittedto}</div>
{else}
28
                            {if $view.removable}<div class="rbuttons"><a href="{$WWWROOT}view/delete.php?id={$view.id}" class="btn-del">{str tag="deletethisview" section="view"}</a></div>{/if}
29
30
31
32
                            <div class="vi">
                                <h4><a href="{$WWWROOT}view/edit.php?id={$view.id}" id="editviewdetails">{str tag="editviewnameanddescription" section="view"}</a></h4>
{if $view.description}
                                <div class="videsc">{$view.description}</div>
33
34
{/if}
{if $view.tags}
35
                                <div class="tags">{str tag=tags}: {list_tags owner=$view.owner tags=$view.tags}</div>
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{/if}
                            </div>
                            <div class="vi">
                                <h4><a href="{$WWWROOT}view/blocks.php?id={$view.id}" id="editthisview">{str tag ="editthisview" section="view"}</a></h4>
{if $view.artefacts}
                                <div class="videsc">{str tag="artefacts" section="view"}:
                                {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|escape}</a>{if !$smarty.foreach.artefacts.last}, {/if}{/foreach}</div>
{/if}
                            </div>
{/if}
                            <div class="vi">
                                <h4><a href="{$WWWROOT}view/access.php?id={$view.id}" id="editviewaccess">{str tag="editviewaccess" section="view"}</a></h4>
{if $view.access}
                               <div class="videsc">{$view.access}</div>
{/if}
{if $view.accessgroups}
                                <div class="videsc">{str tag="whocanseethisview" section="view"}:
{foreach from=$view.accessgroups item=accessgroup name=artefacts}{strip}
{if $accessgroup.accesstype == 'loggedin'}
    {str tag="loggedinlower" section="view"}
{elseif $accessgroup.accesstype == 'public'}
    {str tag="publiclower" section="view"}
{elseif $accessgroup.accesstype == 'friends'}
    <a href="{$WWWROOT}user/myfriends.php" id="link-myfriends">{str tag="friendslower" section="view"}</a>
{elseif $accessgroup.accesstype == 'group'}
Penny Leach's avatar
Penny Leach committed
61
    <a href="{$WWWROOT}group/view.php?id={$accessgroup.id}">{$accessgroup.name|escape}</a>{if $accessgroup.role} ({$accessgroup.roledisplay}){/if}
62
63
64
{elseif $accessgroup.accesstype == 'user'}
    <a href="{$WWWROOT}user/view.php?id={$accessgroup.id}">{$accessgroup.id|display_name|escape}</a>
{/if}{/strip}{if !$smarty.foreach.artefacts.last}, {/if}
Clare Lenihan's avatar
Clare Lenihan committed
65
{/foreach}
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{if $view.template}<br>{str tag=thisviewmaybecopied section=view}{/if}
                                </div>
{else}
                                <div class="videsc">{str tag="nobodycanseethisview2" section="view"}</div>
{/if}
                            </div>
{if $view.submitto}
                            <div class="vi submit-viewitem">{$view.submitto}</div>
{/if}
                        </div></td>
                    </tr>
{/foreach}
                </tbody>
            </table>
80
{$pagination}
Clare Lenihan's avatar
Clare Lenihan committed
81
{else}
82
            <div class="message">{if $GROUP}{str tag="noviewstosee" section="group"}{elseif $institution}{str tag="noviews" section="view"}{else}{str tag="youhavenoviews" section="view"}{/if}</div>
Clare Lenihan's avatar
Clare Lenihan committed
83
84
85
{/if}
{include file="footer.tpl"}