index.tpl 5.6 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
                {$createviewform|safe}
7
8
                <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
                </form>
            </div>
16
{if $institution}                {$institutionselector|safe}{/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
                        <td><div class="rel">
24
{if $view.type == 'profile'}
25
                            <h3><a href="{$WWWROOT}user/view.php">{str tag=profileviewtitle section=view}</a></h3>
26
{elseif $view.type == 'dashboard'}
27
                            <h3><a href="{$WWWROOT}">{str tag=dashboardviewtitle section=view}</a></h3>
28
{elseif $view.type == 'grouphomepage'}
29
                            <h3><a href="{$WWWROOT}group/view.php?id={$GROUP->id}">{str tag=grouphomepage section=view}</a></h3>
30
{else}
31
                            <h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title}</a></h3>
32
{/if}
33
{if $view.submittedto}
34
                            <div class="vi submitted-viewitem">{$view.submittedto|clean_html|safe}</div>
35
{else}
36
                            {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}
37
                            <div class="vi">
38
{if $view.type != 'profile' && $view.type != 'dashboard' && $view.type != 'grouphomepage'}
39
                                <h4><a href="{$WWWROOT}view/edit.php?id={$view.id}" id="editviewdetails">{str tag="edittitleanddescription" section="view"}</a></h4>
40
{/if}
41
42
43
44
{if $view.type == 'profile'}
                                <div class="videsc">{str tag=profiledescription}</div>
{elseif $view.type == 'dashboard'}
                                <div class="videsc">{str tag=dashboarddescription}</div>
45
46
{elseif $view.type == 'grouphomepage'}
                                <div class="videsc">{str tag=grouphomepagedescription section=view}</div>
47
{elseif $view.description}
48
                                <div class="videsc">{$view.description|clean_html|safe}</div>
49
50
{/if}
{if $view.tags}
51
                                <div class="tags">{str tag=tags}: {list_tags owner=$view.owner tags=$view.tags}</div>
52
53
54
{/if}
                            </div>
                            <div class="vi">
55
                                <h4><a href="{$WWWROOT}view/blocks.php?id={$view.id}" id="editthisview">{str tag ="editcontentandlayout" section="view"}</a></h4>
56
57
{if $view.artefacts}
                                <div class="videsc">{str tag="artefacts" section="view"}:
58
                                {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>
59
60
61
62
{/if}
                            </div>
{/if}
                            <div class="vi">
63
{if $view.togglepublic}
64
                                {$view.togglepublic|safe}
65
{elseif $view.type != 'profile' && $view.type != 'dashboard' && $view.type != 'grouphomepage'}
66
                                <h4><a href="{$WWWROOT}view/access.php?id={$view.id}" id="editviewaccess">{str tag="editaccess" section="view"}</a></h4>
67
{/if}
68
69
70
71
72
73
74
75
76
77
78
79
80
{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'}
81
    <a href="{$WWWROOT}group/view.php?id={$accessgroup.id}">{$accessgroup.name}</a>{if $accessgroup.role} ({$accessgroup.roledisplay}){/if}
82
83
{elseif $accessgroup.accesstype == 'user'}
    <a href="{$WWWROOT}user/view.php?id={$accessgroup.id}">{$accessgroup.id|display_name|escape}</a>
84
85
{elseif $accessgroup.accesstype == 'secreturl'}
    {str tag="peoplewiththesecreturl" section="view"}
86
{/if}{/strip}{if !$.foreach.artefacts.last}, {/if}
Clare Lenihan's avatar
Clare Lenihan committed
87
{/foreach}
88
89
90
91
92
93
{if $view.template}<br>{str tag=thisviewmaybecopied section=view}{/if}
                                </div>
{else}
                                <div class="videsc">{str tag="nobodycanseethisview2" section="view"}</div>
{/if}
                            </div>
94
{if $view.submitto && $view.type != 'profile' && $view.type != 'dashboard'}
95
                            <div class="vi submit-viewitem">{$view.submitto|safe}</div>
96
97
98
99
100
101
{/if}
                        </div></td>
                    </tr>
{/foreach}
                </tbody>
            </table>
102
{$pagination|safe}
Clare Lenihan's avatar
Clare Lenihan committed
103
{else}
104
            <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
105
106
{/if}
{include file="footer.tpl"}