Changeset 258:69ace32018ce


Ignore:
Timestamp:
09.06.2010 22:53:19 (20 months ago)
Author:
alafin
Branch:
default
Message:

fix #82 Для незарегистрированного пользователя доступна кнопка цитировать в топиках

File:
1 edited

Legend:

Unmodified
Added
Removed
  • djangobb/djangobb_forum/templates/forum/topic.html

    r248 r258  
    110110                        <div class="postfootright"> 
    111111                                <ul> 
    112                                         <li class="postreport"><a href="{% url djangobb:misc %}?action=report&post_id={{ post.id }}">{% trans "Report" %}</a> | </li> 
     112                                        <li class="postreport"><a href="{% url djangobb:misc %}?action=report&post_id={{ post.id }}">{% trans "Report" %}</a> </li> 
    113113                                        {% if moderator or post|forum_equal_to:last_post %} 
    114114                                                {% if moderator or post.user|forum_equal_to:user %} 
    115                                                         <li class="postdelete"><a onclick="return confirm('{% trans "Are you sure you want to delete this post?" %}')" href="{% url djangobb:delete_post post.id %}">{% trans "Delete" %}</a> | </li> 
     115                                                        | <li class="postdelete"><a onclick="return confirm('{% trans "Are you sure you want to delete this post?" %}')" href="{% url djangobb:delete_post post.id %}">{% trans "Delete" %}</a> </li> 
    116116                                                {% endif %} 
    117117                                        {% endif %} 
    118118                                        {% if moderator or post|forum_posted_by:user %} 
    119                                                 <li class="postedit"><a href="{% url djangobb:edit_post post.id %}">{% trans "Edit" %}</a> | </li> 
    120                                         {% endif %} 
    121                                         <li class="postquote"><a href="{% url djangobb:add_post topic.id %}?post_id={{ post.id }}">{% trans "Reply" %}</a> | </li> 
    122                                         <li class="postquote"><a onmouseover="copyQ('{{ post.user }}');" href="javascript:pasteQ();">{% trans "Quote" %}</a></li> 
     119                                                | <li class="postedit"><a href="{% url djangobb:edit_post post.id %}">{% trans "Edit" %}</a> </li> 
     120                                        {% endif %} 
     121                                        | <li class="postquote"><a href="{% url djangobb:add_post topic.id %}?post_id={{ post.id }}">{% trans "Reply" %}</a> </li> 
     122                                        {% if user.is_authenticated %} 
     123                                                | <li class="postquote"><a onmouseover="copyQ('{{ post.user }}');" href="javascript:pasteQ();">{% trans "Quote" %}</a></li> 
     124                                        {% endif %} 
    123125                                </ul> 
    124126                        </div> 
Note: See TracChangeset for help on using the changeset viewer.