1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 17:02:47 +00:00

modified recommend

This commit is contained in:
llj
2012-08-13 15:14:49 +08:00
parent 16c71fdfd8
commit e89f2ff67a
3 changed files with 11 additions and 14 deletions

View File

@@ -103,23 +103,19 @@
<a href="{{ SITE_ROOT }}profile/{{ msg.from_email }}/" title="{{ msg.from_email }}">{{ msg.from_email|email2nickname }}</a> <a href="{{ SITE_ROOT }}profile/{{ msg.from_email }}/" title="{{ msg.from_email }}">{{ msg.from_email|email2nickname }}</a>
</div> </div>
<div class="msg-bd"> <div class="msg-bd">
{% if msg.attachment %}
<span class="recommend">(推荐)</span>
{% endif %}
<p> <p>
{{ msg.message|linebreaksbr|seahub_urlize|find_at }}
</p>
{% if msg.attachment %} {% if msg.attachment %}
<span> <span class="recommend">推荐
附件:
{% if msg.attachment.attach_type == 'file' %} {% if msg.attachment.attach_type == 'file' %}
<a href="{% url 'repo_view_file' msg.attachment.repo_id %}?p={{ msg.attachment.path }}" target="_blank"> <a href="{% url 'repo_view_file' msg.attachment.repo_id %}?p={{ msg.attachment.path }}" target="_blank">
{% else %} {% else %}
<a href="{% url 'repo' msg.attachment.repo_id %}?p={{ msg.attachment.path }}" target="_blank"> <a href="{% url 'repo' msg.attachment.repo_id %}?p={{ msg.attachment.path }}" target="_blank">
{% endif %} {% endif %}
查看</a> {{ msg.attachment.file_path }}</a> :
</span> </span>
{% endif %} {% endif %}
{{ msg.message|linebreaksbr|seahub_urlize|find_at }}
</p>
{% if msg.reply_cnt == 0 %} {% if msg.reply_cnt == 0 %}
<a class="reply op" href="#" data="{{ msg.id }}">回复</a> <a class="reply op" href="#" data="{{ msg.id }}">回复</a>
{% else %} {% else %}

View File

@@ -564,7 +564,6 @@ p {
#recommend-msg { #recommend-msg {
width:260px; width:260px;
height:80px; height:80px;
display:block;
} }
#groups { #groups {
width:260px; width:260px;

View File

@@ -1,15 +1,17 @@
{% load url from future %} {% load url from future %}
<form action="{% url 'group_recommend' %}" method="post" id="recommend-form" class="hide">{% csrf_token %} <form action="{% url 'group_recommend' %}" method="post" id="recommend-form" class="hide">{% csrf_token %}
<p>推荐 <h3>推荐
{% for name, link in zipped %} {% for name, link in zipped %}
{% if not forloop.last %} {% if not forloop.last %}
{{ name }} / {{ name }} /
{% else %} {% else %}
{{ name }} {{ name }}
{% endif %} {% endif %}
{% endfor %} 到小组: {% endfor %} 到小组
</p> </h3>
<input type="input" name="groups" id="groups" value="" /> <label>小组名称:</label><br />
<input type="input" name="groups" id="groups" value="" /><br />
<label>推荐语:</label><br />
<textarea name="message" id="recommend-msg"></textarea><br /> <textarea name="message" id="recommend-msg"></textarea><br />
<input type="hidden" name="repo_id" value="{{ repo.id }}" /> <input type="hidden" name="repo_id" value="{{ repo.id }}" />
<input type="hidden" name="path" value="{{ path }}" /> <input type="hidden" name="path" value="{{ path }}" />