mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 13:50:07 +00:00
Mofigy group msg reply notification
This commit is contained in:
@@ -4,10 +4,7 @@
|
||||
{% block nav_group_class %}class="cur"{% endblock %}
|
||||
|
||||
{% block main_panel %}
|
||||
<h2>新回复</h2>
|
||||
|
||||
<div class="main fleft">
|
||||
<div id="group-reply">
|
||||
{% if group_msgs %}
|
||||
<ul class="msg-list">
|
||||
{% for msg in group_msgs %}
|
||||
@@ -19,6 +16,7 @@
|
||||
<div class="msg-hd">
|
||||
<span class="time">{{ msg.timestamp|date:"Y-m-d H:i" }}</span>
|
||||
<a href="{{ SITE_ROOT }}profile/{{ msg.from_email }}/">{{ msg.from_email|email2nickname }}</a>
|
||||
所在小组:<a href="{{ SITE_ROOT }}group/{{ msg.group_id }}/">{{ msg.group_name }}</a>
|
||||
</div>
|
||||
<div class="msg-bd">
|
||||
<p>{{ msg.message }}</p>
|
||||
@@ -50,7 +48,6 @@
|
||||
<p>暂无</p>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
@@ -251,6 +251,10 @@ def msg_reply_new(request):
|
||||
for msg_id in grpmsg_reply_list:
|
||||
try:
|
||||
m = GroupMessage.objects.get(id=msg_id)
|
||||
# get group name
|
||||
group = ccnet_threaded_rpc.get_group(int(m.group_id))
|
||||
m.group_name = group.group_name
|
||||
|
||||
# get message replies
|
||||
reply_list = MessageReply.objects.filter(reply_to=m)
|
||||
# get nickname
|
||||
|
@@ -329,6 +329,15 @@ p.path, p.access-notice { margin: 12px 0 6px 0; }
|
||||
font-size: 0.9em;
|
||||
color: red;
|
||||
}
|
||||
.new-reply {
|
||||
padding: 5px;
|
||||
background-color: #FDF;
|
||||
}
|
||||
.new-reply a {
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
/*repo page*/
|
||||
.latest-commit .more:hover {
|
||||
text-decoration:none;
|
||||
|
@@ -14,6 +14,10 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if has_grpmsg_reply %}
|
||||
<span class="new-reply"><a href="{{ SITE_ROOT }}group/reply/new/">新回复</a></span>
|
||||
{% endif %}
|
||||
|
||||
<h3>已用空间</h3>
|
||||
<p>{{ quota_usage|filesizeformat }} / 2 GB</p>
|
||||
|
||||
@@ -56,14 +60,6 @@
|
||||
<p>暂无</p>
|
||||
{% endif %}
|
||||
|
||||
<h3>留言回复</h3>
|
||||
{% if has_grpmsg_reply %}
|
||||
<a class="op" href="{{ SITE_ROOT }}group/reply/new/">新回复</a>
|
||||
{% else %}
|
||||
</p>暂无</p>
|
||||
{% endif %}
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user