my.tt2 3.51 KB
Newer Older
1
<!-- my.tt2 -->
Luc Didry's avatar
Luc Didry committed
2
<h2><i class="fa fa-envelope-square"></i> [%|loc%]My lists[%END%]</h2>
3

Luc Didry's avatar
Luc Didry committed
4
5
<p>[%|loc%]You are subscribed to or managing the following lists.[%END%]</p>
<form class="noborder" action="[% path_cgi %]" method="post" name="suspend_request">
6
    [% IF which.size %]
Luc Didry's avatar
Luc Didry committed
7
8
9
10
11
12
13
14
15
        <div class="item_list">
            <span class="divider"></span>
            [% FOREACH l = which %]
                [% additional_class = '' %]
                [% IF l.value.listsuspend %]
                    [% additional_class = ' suspended' %]
                [% END %]
                <div class="item[% additional_class %]">
                    <div class="item_content">
16
                        <a href="[% 'info' | url_rel([l.key]) %]">
Luc Didry's avatar
Luc Didry committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
                            [%|obfuscate(conf.spam_protection) %][% l.key %][% END %]
                            [% IF l.value.is_owner || l.value.is_editor || l.value.is_subscriber ~%]
                                <span class="highlighted">(
                                    [%~ IF l.value.is_owner ~%]
                                        [%|loc%]Owner[%END ~%]
                                        [% IF l.value.is_subscriber %]
                                            [%|loc%], [%END%]
                                        [%END ~%]
                                    [% ELSIF l.value.is_editor ~%]
                                        [%|loc%]Moderator[%END ~%]
                                        [% IF l.value.is_subscriber %]
                                            [%|loc%], [%END%]
                                        [%END ~%]
                                    [% END ~%]
                                    [% IF l.value.is_subscriber %]
                                        [%|loc%]Subscriber[%END%]
                                    [%END ~%]
                                )</span>
                            [% END %]
                        </a>
37
38
39
40
41
                        [%~ IF l.value.status && l.value.status != 'open' ~%]
                            <span class="warning label">
                                [% l.value.status | optdesc('status') %]
                            </span>
                        [%~ END %]
Luc Didry's avatar
Luc Didry committed
42
43
44
45
46
47
48
49
                        <p class="list_subject">[% l.value.subject %]</p>
                        [% IF l.value.listsuspend %]
                            [% IF l.value.listenddate %]
                                <p>[%|loc(l.value.liststartdate,l.value.listenddate)%]Suspended from %1 to %2[% END %]</p>
                            [% ELSE %]
                                <p>[%|loc(l.value.liststartdate)%]Suspended from %1 to indefinite end date[%END%]</p>
                            [% END %]
                        [% END %]
sikeda's avatar
sikeda committed
50

Luc Didry's avatar
Luc Didry committed
51
52
53
54
                        <ul class="my">
                            [% IF l.value.is_owner %]
                                <li><a href="[% 'review' | url_rel([l.key]) %]"><i class="fa fa-users"></i> [%|loc%]Review members[%END%]</a></li>
                            [% END %]
sikeda's avatar
sikeda committed
55

56
                            [% IF l.value.arc_access %]
Luc Didry's avatar
Luc Didry committed
57
58
59
60
61
62
                                <li><a href="[% 'arc' | url_rel([l.key]) %]"><i class="fa fa-archive"></i> [%|loc%]Archives[%END%]</a></li>
                            [% END %]
                        </ul>
                    </div>
                </div>
                <span class="divider"></span>
63
64
65
            [% END %]
        </div>
    [% ELSE %]
Luc Didry's avatar
Luc Didry committed
66
        <p class="small-12 medium-8 medium-centered columns alert-box info">[%|loc%]No subscription.[%END%]</p>
67
    [% END %]
Luc Didry's avatar
Luc Didry committed
68
</form>
69

sikeda's avatar
sikeda committed
70
<!-- end my.tt2 -->