view.tpl 3.84 KB
Newer Older
1
2
{include file="header.tpl"}

3
{if $GROUP->description}
Evonne Cheung's avatar
Evonne Cheung committed
4
	<div class="groupdescription">{$GROUP->description}</div>
5
{/if}
6

7
8
9
<div class="group-info">
  <div class="fr">
  {include file="group/groupuserstatus.tpl" group=$group returnto='view'}
10
  </div>
11
12
  {include file="group/info.tpl"}
</div>
13

14
{if $group->public || $role}
15
16
    <h3>{str tag=latestforumposts section=interaction.forum}</h3>
    {if $foruminfo}
17
        <table class="fullwidth s" id="groupforumtable">
18
        {foreach from=$foruminfo item=postinfo}
19
            <tr class="{cycle values='r0,r1'}">
20
21
22
23
24
25
26
27
28
29
30
31
                <td><strong><a href="{$WWWROOT}interaction/forum/topic.php?id={$postinfo->topic|escape}#post{$postinfo->id|escape}">{$postinfo->topicname|escape}</a></strong></td>
                <td>{$postinfo->body|str_shorten_html:100:true}</td>
                <td><img src="{$WWWROOT}thumb.php?type=profileicon&amp;maxsize=20&amp;id={$postinfo->poster|escape}" alt="">
                    <a href="{$WWWROOT}user/view.php?id={$postinfo->poster|escape}">{$postinfo->poster|display_name|escape}</a>
                </td>
            </tr>
        {/foreach}
        </table>
    {else}
        <p>{str tag=noforumpostsyet section=interaction.forum}</p>
    {/if}
    <div class="right"><a href="{$WWWROOT}interaction/forum/?group={$group->id|escape}"><strong>{str tag=gotoforums section=interaction.forum} &raquo;</strong></a></div>
32
{/if}
33

34
35
{if $sharedviews}
    <h3>{str tag="viewssharedtogroupbyothers" section="view"}</h3>
36
    <p>
37
    <table class="fullwidth">
38
    {foreach from=$sharedviews item=view}
39
        <tr class="{cycle values='r0,r1'}">
40
41
42
43
44
45
            <td>
                <a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a>
                {if $view.sharedby}
                    {str tag=by section=view}
                    {if $view.group}
                        <a href="{$WWWROOT}group/view.php?id={$view.group}">{$view.sharedby}</a>
46
                    {elseif $view.owner}
47
                        <a href="{$WWWROOT}user/view.php?id={$view.owner}">{$view.sharedby}</a>
48
49
                    {else}
                        {$view.sharedby}
50
51
52
                    {/if}
                {/if}
                <div>{$view.shortdescription}</div>
53
                {if $view.tags}<div class="tags">{str tag=tags}: {list_tags owner=$view.owner tags=$view.tags}</div>{/if}
54
55
56
57
58
59
60
                {if $view.template}
                <div><a href="">{str tag=copythisview section=view}</a></div>
                {/if}
            </td>
        </tr>
    {/foreach}
    </table>
61
    {$pagination}
62
    </p>
63
64
{/if}

65
{if $mysubmittedviews || $group_view_submission_form}
66
    <h3>{str tag="submitaviewtogroup" section="view"}</h3>
67
68
69
70
71
72
73
74
    {if $mysubmittedviews}
      {foreach from=$mysubmittedviews item=view}
        <div>{$view.strsubmitted}</div>
      {/foreach}
    {/if}
    {if $group_view_submission_form}
        <div>{$group_view_submission_form}</div>
    {/if}
75
76
{/if}

77
{if $allsubmittedviews}
78
    <h3>{str tag="viewssubmittedtogroup" section="view"}</h3>
79
    <p>
80
    <table class="fullwidth">
81
    {foreach from=$allsubmittedviews item=view}
82
        <tr class="{cycle values='r0,r1'}">
83
84
85
86
            <td>
                <a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a>
                {if $view.sharedby}
                    {str tag=by section=view}
87
                    <a href="{$WWWROOT}user/view.php?id={$view.owner}">{$view.sharedby}</a>
88
                {/if}
89
                {if $view.submittedtime}
90
                    <span> ({str tag=timeofsubmission section=view}: {$view.submittedtime|format_date})</span>
91
                {/if}
92
                <div>{$view.shortdescription}</div>
93
                {if $view.tags}<div class="tags">{str tag=tags}: {list_tags owner=$view.owner tags=$view.tags}</div>{/if}
94
95
96
97
            </td>
        </tr>
    {/foreach}
    </table>
98
    {$pagination}
99
    </p>
100
101
{/if}

102
{include file="footer.tpl"}