summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/threads/right_col.html
blob: c92eabd8976bc9046227740356de12f17e018967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{% load url from future %}
{% load gravatar %}
{% load hk_generic %}

<!-- right column -->
<section id="thread-overview-info">
    <!-- Start dates -->
    <div id="thread-date-info" class="row-fluid">
        <div class="days-num">
            {{ days_inactive }}
        </div>
        <div class="days-text">
            days
            <br />
            inactive
        </div>
        <div class="days-num">
            {{ days_old }}
        </div>
        <div class="days-text">
            days
            <br />
            old
        </div>
    </div>
    <!-- End dates -->
    <form id="fav_form" name="favorite" method="post" class="favorite"
          action="{% url 'favorite' mlist_fqdn=mlist.name threadid=threadid %}">
        {% csrf_token %}
        <input type="hidden" name="action" value="{{ fav_action }}" />
        <p>
            <a href="#AddFav" class="notsaved{% if not user.is_authenticated %} disabled" title="You must be logged-in to have favorites.{% endif %}">Add to favorite discussions</a>
            <a href="#RmFav" class="saved">Remove from favorite discussions</a>
        </p>
    </form>
    <p class="unread">
        {% if user.is_authenticated %}
        <i class="unread icon-eye-close"></i> {{ unread_count }} unread messages
        {% endif %}
    </p>
    <div id="thread-category">
        {% include 'threads/category.html' %}
    </div>
    <div id="tags">
        {% include 'threads/tags.html' %}
    </div>
    <div id="add-tag">
        <form id="add-tag-form" name="addtag" method="post"
              action="{% url 'tags' mlist_fqdn=mlist.name threadid=threadid %}"
              data-autocompleteurl="{% url 'suggest_tags' mlist_fqdn=mlist.name threadid=threadid %}"
              >
            {% csrf_token %}
            {{ addtag_form.as_p }}
        </form>
    </div>
    <div id="participants">
        <span id="participants_title">participants</span> ({{participants|length}})
        <ul>
            {% for name, email in participants %}
            <li>
                {% gravatar email 20 %}
                {{ name|escapeemail }}
            </li>
            {% endfor %}
        </ul>
    </div>
</section>

{% if user.is_authenticated %}
<div id="unreadnavbar">
    <div>
    Unreads: <span class="unreadindex">0</span>/{{unread_count}}
    &nbsp;
    Go to: <a href="#" class="nextunread" title="hotkey: j">next &darr;</a>
         - <a href="#" class="prevunread" title="hotkey: k">prev &uarr;</a>
    </div>
</div>
{% endif %}