index.tpl 2.8 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}
Evonne Cheung's avatar
Evonne Cheung committed
17
            <div class="grouppageswrap">
18
19
{$searchform|safe}

Clare Lenihan's avatar
Clare Lenihan committed
20
{if $views}
21
            <table id="myviews" class="fullwidth listing">
22
                <tbody>
Clare Lenihan's avatar
Clare Lenihan committed
23
{foreach from=$views item=view}
24
                    <tr class="{cycle values='r0,r1'}">
Evonne Cheung's avatar
Evonne Cheung committed
25
                        <td>
26
                            <h3><a href="{$view.fullurl}">{$view.displaytitle}</a></h3>
27
28
29
30
{if $view.submittedto}
                              <div class="submitted-viewitem">{$view.submittedto|clean_html|safe}</div>
{elseif $view.type == 'profile'}
                              <div class="videsc">{str tag=profiledescription}</div>
31
{elseif $view.type == 'dashboard'}
32
                              <div class="videsc">{str tag=dashboarddescription}</div>
33
{elseif $view.type == 'grouphomepage'}
34
                              <div class="videsc">{str tag=grouphomepagedescription section=view}</div>
35
36
{elseif $view.description}
                              <div class="videsc">{$view.description|str_shorten_html:110:true|strip_tags|safe}</div>
37
{/if}
Evonne Cheung's avatar
Evonne Cheung committed
38
                        </td>
39
                        <td class="right buttonscell btns2">
40
41
42
43
{if 
   !$view.submittedto && (!$view.locked || $editlocked)
   && !($MOBILE && ($view.type == 'profile' || $view.type == 'dashboard'))
}
44
                                <a href="{$WWWROOT}view/blocks.php?id={$view.id}" title="{str tag ="editcontentandlayout" section="view"}"><img src="{theme_url filename='images/edit.gif'}" alt="{str tag=edit}"></a>
Evonne Cheung's avatar
Evonne Cheung committed
45
{/if}
46
{if !$view.submittedto && $view.removable && (!$view.locked || $editlocked)}
Evonne Cheung's avatar
Evonne Cheung committed
47
48
49
                                <a href="{$WWWROOT}view/delete.php?id={$view.id}" title="{str tag=deletethisview section=view}"><img src="{theme_url filename='images/icon_close.gif'}" alt="{str tag=delete}"></a>
{/if}
                        </td>{* rbuttons *}
50
51
52
53
                    </tr>
{/foreach}
                </tbody>
            </table>
54
{$pagination|safe}
Evonne Cheung's avatar
Evonne Cheung committed
55
            </div>
Clare Lenihan's avatar
Clare Lenihan committed
56
{else}
57
            <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>
Evonne Cheung's avatar
Evonne Cheung committed
58
            </div>
Clare Lenihan's avatar
Clare Lenihan committed
59
60
{/if}
{include file="footer.tpl"}