my.tt2 2.54 KB
Newer Older
1
<!-- my.tt2 -->
2
  <h2><i class="fa fa-envelope-square"></i> [%|loc%]My lists[%END%]</h2>
lumineau's avatar
lumineau committed
3
[% IF user.email %]
sikeda's avatar
sikeda committed
4
  <p>[%|loc%]You are subscribed to or managing the following lists.[%END%]</p>
5
6
7
  
  <form class="noborder" action="[% path_cgi %]" method="post" name="suspend_request">
    [% IF which.size %]
sikeda's avatar
sikeda committed
8
      <div class="item_list">
lumineau's avatar
lumineau committed
9
        <span class="divider"></span>
10
11
12
13
14
15
16
      [% FOREACH l = which %]
        [% additional_class = '' %]
        [% IF l.value.listsuspend %]
          [% additional_class = ' suspended' %]
        [% END %]
        <div class="item[% additional_class %]">
        <div class="item_content">
17
          <a class="item_title" href="[% 'info' | url_rel([l.key]) %]">
18
            [%|obfuscate(conf.spam_protection) %][% l.key %][% END %]
sikeda's avatar
sikeda committed
19
20
21
22
23
24
            [% 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 ~%]
25
                [%|loc%]Moderator[%END ~%]
sikeda's avatar
sikeda committed
26
27
28
29
                [% IF l.value.is_subscriber %][%|loc%], [%END%][%END ~%]
              [% END ~%]
              [% IF l.value.is_subscriber %][%|loc%]Subscriber[%END%][%END ~%]
              )</span>
30
31
            [% END %]
          </a>
sikeda's avatar
sikeda committed
32
33
34
35
36
          <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>
37
            [% ELSE %]
sikeda's avatar
sikeda committed
38
              <p>[%|loc(l.value.liststartdate)%]Suspended from %1 to indefinite end date[%END%]</p>
39
40
            [% END %]
          [% END %]
sikeda's avatar
sikeda committed
41

lumineau's avatar
lumineau committed
42
          <ul class="my">
sikeda's avatar
sikeda committed
43
            [% IF l.value.is_owner %]
44
              <li><a href="[% 'review' | url_rel([l.key]) %]"><i class="fa fa-users"></i> [%|loc%]Review members[%END%]</a></li>
45
46
47
            [% END %]
            
            [% IF is_user_allowed_to('archive.web_access', l.key) %]
48
              <li><a href="[% 'arc' | url_rel([l.key]) %]"><i class="fa fa-archive"></i> [%|loc%]Archives[%END%]</a></li>
49
50
51
52
            [% END %]
          </ul>
        </div>
        </div>
lumineau's avatar
lumineau committed
53
        <span class="divider"></span>
54
      [% END %]
sikeda's avatar
sikeda committed
55
      </div>
sikeda's avatar
sikeda committed
56

57
    [% ELSE %]
sikeda's avatar
sikeda committed
58

lumineau's avatar
lumineau committed
59
      <p class="small-12 medium-8 medium-centered columns alert-box info">[%|loc%]No subscription.[%END%]</p>
sikeda's avatar
sikeda committed
60

61
    [% END %]
sikeda's avatar
sikeda committed
62

63
64
65
  </form>

[% ELSE %]
lumineau's avatar
lumineau committed
66
67
68
    <article>
     [% PROCESS loginrequest.tt2 %]
    </article>
69
[% END %]
sikeda's avatar
sikeda committed
70
<!-- end my.tt2 -->