blob: 4687c62a0bce7171c5e09499c7318405854f0693 (
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
|
{% extends "user_profile/user.html" %}
{% block before_css %}
<link href="{{'/bootstrap/css/bootstrap.css'|media}}" rel="stylesheet" type="text/css" />
{% endblock %}
{% block profilesection %}
{% trans %}inbox{% endtrans %}
{% endblock %}
{% block usercontent %}
<div class="inbox" style="padding-top:5px;font-size:13px;">
{% set re_count = request.user.new_response_count +
request.user.seen_response_count
%}
{% if need_inbox_sections_nav %}
<div id="re_sections">
{% trans %}Sections:{% endtrans %}
{% set sep = joiner('|') %}
{#{{ sep() }}
<a href="{{request.user.get_absolute_url()}}?sort=inbox§ion=messages"
{% if inbox_section == 'messages' %}class="on"{% endif %}
>{% trans %}messages{% endtrans %}</a>#}
{% if re_count > 0 %}{{ sep() }}
<a href="{{request.user.get_absolute_url()}}?sort=inbox§ion=forum"
{% if inbox_section == 'forum' %}class="on"{% endif %}
>
{% trans %}forum responses (<span class="response-count">{{re_count}}</span>){% endtrans -%}
</a>
{% endif %}
{% if flags_count > 0 %}{{ sep() }}
<a href="{{request.user.get_absolute_url()}}?sort=inbox§ion=flags"
{% if inbox_section == 'flags' %}class="on"{% endif %}
>
{% trans %}flagged items (<span class="mod-memo-count">{{flags_count}}</span>){% endtrans %}
</a>
{% endif %}
{% if group_join_requests_count %}{{ sep() }}
<a href="{{request.user.get_absolute_url()}}?sort=inbox§ion=join_requests"
{% if inbox_section == 'join_requests' %}class="on"{% endif %}
>
{% trans %}group join requests{% endtrans %}
</a>
{% endif %}
</div>
{% endif %}
{% block inbox_content %}
{% endblock %}
</div>
{% endblock %}
{% block userjs %}
<script type="text/javascript">
var askbot = askbot || {};
askbot['urls'] = askbot['urls'] || {};
askbot['urls']['manageInbox'] = '{% url manage_inbox %}';
askbot['urls']['moderatePostEdits'] = '{% url moderate_post_edits %}';
askbot['urls']['save_post_reject_reason'] = '{% url save_post_reject_reason %}';
askbot['urls']['delete_post_reject_reason'] = '{% url delete_post_reject_reason %}';
{% if request.user.is_administrator_or_moderator() %}
askbot['data']['postRejectReasons'] = [
{% for reason in post_reject_reasons %}
{'id': {{reason.id}}, 'title': '{{reason.title|escapejs}}'},
{% endfor %}
];
{% endif %}
$(document).ready(function(){
$('body').addClass('inbox-{{ inbox_section }}');
setup_inbox();
});
</script>
{% endblock %}
|