Changeset 538:1e065a9e98d2


Ignore:
Timestamp:
May 9, 2013 10:20:26 PM (2 weeks ago)
Author:
Peter Valdez <peter@…>
Bookmarks:
master
Branch:
default
Tags:
tip
Message:

Updated url template tag arguments to be strings, as per Django 1.5 requirements.

Location:
djangobb_forum/templates/djangobb_forum
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • djangobb_forum/templates/djangobb_forum/add_topic.html

    r492 r538  
    77        <div class="inbox"> 
    88                {% if forum %} 
    9                 <ul class="start"><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {% link forum %}</li></ul> 
     9                <ul class="start"><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {% link forum %}</li></ul> 
    1010                {% else %} 
    11                         <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {% link topic.forum %}</li><li>&raquo; {{ topic }}</li></ul> 
     11                        <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {% link topic.forum %}</li><li>&raquo; {{ topic }}</li></ul> 
    1212                {% endif %} 
    1313                <div class="clearer"></div> 
  • djangobb_forum/templates/djangobb_forum/base.html

    r488 r538  
    1212        {% set_theme_style request.user %} 
    1313 
    14         <link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_posts_feed %}" title="{% trans "Latest posts on forum" %}" /> 
    15         <link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_topics_feed %}" title="{% trans "Latest topics on forum" %}" /> 
     14        <link rel="alternate" type="application/atom+xml" href="{% url 'djangobb:forum_posts_feed' %}" title="{% trans "Latest posts on forum" %}" /> 
     15        <link rel="alternate" type="application/atom+xml" href="{% url 'djangobb:forum_topics_feed' %}" title="{% trans "Latest topics on forum" %}" /> 
    1616 
    1717        <link rel="shortcut icon" href="{{ STATIC_URL }}djangobb_forum/favicon.png" type="image/png" /> 
    1818        <script type="text/javascript"> 
    1919                var STATIC_URL = "{{ STATIC_URL }}"; 
    20                 var POST_PREVIEW_URL = "{% url djangobb:post_preview %}"; 
     20                var POST_PREVIEW_URL = "{% url 'djangobb:post_preview' %}"; 
    2121        </script> 
    2222        {% if DEBUG %} 
     
    8282                    <dl id="searchlinks" class="conl"> 
    8383                        <dt><strong>{% trans "Search links" %}</strong></dt> 
    84                         <dd><a href="{% url djangobb:search %}?action=show_24h">{% trans "Show recent posts" %}</a></dd> 
    85                         <dd><a href="{% url djangobb:search %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd> 
     84                        <dd><a href="{% url 'djangobb:search' %}?action=show_24h">{% trans "Show recent posts" %}</a></dd> 
     85                        <dd><a href="{% url 'djangobb:search' %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd> 
    8686                        {% if user.is_authenticated %} 
    87                         <dd><a href="{% url djangobb:search %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd> 
    88                         <dd>{% trans "Show your" %} <a href="{% url djangobb:search %}?action=show_user&show_as=topics">{% trans "topics" %}</a>/<a href="{% url djangobb:search %}?action=show_user&show_as=posts">{% trans "posts" %}</a></dd> 
     87                        <dd><a href="{% url 'djangobb:search' %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd> 
     88                        <dd>{% trans "Show your" %} <a href="{% url 'djangobb:search' %}?action=show_user&show_as=topics">{% trans "topics" %}</a>/<a href="{% url 'djangobb:search' %}?action=show_user&show_as=posts">{% trans "posts" %}</a></dd> 
    8989                        {% endif %} 
    9090                    </dl> 
  • djangobb_forum/templates/djangobb_forum/delete_posts.html

    r411 r538  
    99        <div class="inbox"> 
    1010                <div class="pagelink conl">{% paginate %}</div> 
    11                                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %} </a></li><li>&raquo; {% link topic.forum %} </li><li>&raquo; {{ topic }}  
    12                                 <a href="{% url djangobb:forum_topic_feed topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" style="vertical-align:middle;" /></a> 
     11                                <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %} </a></li><li>&raquo; {% link topic.forum %} </li><li>&raquo; {{ topic }}  
     12                                <a href="{% url 'djangobb:forum_topic_feed' topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" style="vertical-align:middle;" /></a> 
    1313                                </li></ul> 
    1414                <div class="clearer"></div> 
     
    2626                        <div class="postleft"> 
    2727                                <dl> 
    28                                         <dt><strong><a href="{% url djangobb:forum_profile post.user.username %}">{{ post.user.username }}</a></strong></dt> 
     28                                        <dt><strong><a href="{% url 'djangobb:forum_profile' post.user.username %}">{{ post.user.username }}</a></strong></dt> 
    2929                                        <dd class="usertitle"><strong>{{ post.user.forum_profile.status }}</strong></dd> 
    3030                                </dl> 
  • djangobb_forum/templates/djangobb_forum/edit_post.html

    r372 r538  
    66<div class="linkst"> 
    77        <div class="inbox"> 
    8                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {% link post.topic.forum %}</li><li>&raquo; {{ post.topic }}</li></ul> 
     8                <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {% link post.topic.forum %}</li><li>&raquo; {{ post.topic }}</li></ul> 
    99                <div class="clearer"></div> 
    1010        </div> 
  • djangobb_forum/templates/djangobb_forum/forum.html

    r411 r538  
    1111                <div class="pagelink conl">{% paginate %}</div> 
    1212                {% if user.is_authenticated %} 
    13                         <p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p> 
     13                        <p class="postlink conr"><a href="{% url 'djangobb:add_topic' forum.id %}">{% trans "New topic" %}</a></p> 
    1414                {% endif %} 
    15                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul> 
     15                <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul> 
    1616                <div class="clearer"></div> 
    1717        </div> 
     
    1919<div id="vf" class="blocktable"> 
    2020        <h2> 
    21                 <a href="{% url djangobb:forum_forum_feed forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a> 
     21                <a href="{% url 'djangobb:forum_forum_feed' forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a> 
    2222                <b><span>{{ forum.name }}</span></b> 
    2323        </h2> 
     
    6969                <div class="pagelink conl">{% paginate %}</div> 
    7070                {% if user.is_authenticated %} 
    71                         <p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p> 
     71                        <p class="postlink conr"><a href="{% url 'djangobb:add_topic' forum.id %}">{% trans "New topic" %}</a></p> 
    7272                {% endif %} 
    73                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul> 
     73                <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul> 
    7474                <div class="clearer"></div> 
    7575        </div> 
     
    8181                <div><label>{% trans "Jump to" %} 
    8282                <br /> 
    83                 <select name="id" id="forum_id" onchange="window.location=('{% url djangobb:index %}'+this.options[this.selectedIndex].value)"> 
     83                <select name="id" id="forum_id" onchange="window.location=('{% url 'djangobb:index' %}'+this.options[this.selectedIndex].value)"> 
    8484                        {% for category in categories %} 
    8585                                <optgroup label="{{ category }}"> 
     
    9090                        {% endfor %} 
    9191                </select> 
    92                 <input type="button" onclick="window.location=('{% url djangobb:index %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" /> 
     92                <input type="button" onclick="window.location=('{% url 'djangobb:index' %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" /> 
    9393                </label></div> 
    9494        </form> 
    9595        {% if moderator %} 
    96                 <p id="modcontrols"><a href="{% url djangobb:moderate forum.id %}">{% trans "Moderate forum" %}</a></p> 
     96                <p id="modcontrols"><a href="{% url 'djangobb:moderate' forum.id %}">{% trans "Moderate forum" %}</a></p> 
    9797        {% endif %} 
    9898</div> 
  • djangobb_forum/templates/djangobb_forum/forum_row.html

    r522 r538  
    2020 
    2121            <div class="tclcon"> 
    22                                 <h3>{% link forum %} <a href="{% url djangobb:forum_forum_feed forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a></h3> 
     22                                <h3>{% link forum %} <a href="{% url 'djangobb:forum_forum_feed' forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a></h3> 
    2323                                {{ forum.description|safe }} 
    2424                                <p> 
  • djangobb_forum/templates/djangobb_forum/header.html

    r519 r538  
    77        <div class="box"> 
    88                <div id="brdtitle" class="inbox"> 
    9                         <h1><span><a href="{% url djangobb:index %}">{{ forum_settings.HEADER|safe }}</a></span></h1> 
     9                        <h1><span><a href="{% url 'djangobb:index' %}">{{ forum_settings.HEADER|safe }}</a></span></h1> 
    1010                        <p><span>{{ forum_settings.TAGLINE|safe }}</span></p> 
    1111                </div> 
     
    1313                        <ul> 
    1414                        {% block menu %} 
    15                                 <li id="navindex"><a href="{% url djangobb:index %}">{% trans "Index" %}</a></li> 
    16                                 <li id="navuserlist"><a href="{% url djangobb:forum_users %}">{% trans "User list" %}</a></li> 
    17                                 <li id="navsearch"><a href="{% url djangobb:search %}">{% trans "Search" %}</a></li> 
     15                                <li id="navindex"><a href="{% url 'djangobb:index' %}">{% trans "Index" %}</a></li> 
     16                                <li id="navuserlist"><a href="{% url 'djangobb:forum_users' %}">{% trans "User list" %}</a></li> 
     17                                <li id="navsearch"><a href="{% url 'djangobb:search' %}">{% trans "Search" %}</a></li> 
    1818                                {% if user.is_superuser %} 
    19                                         <li id="navadmin"><a href="{% url admin:index %}">{% trans "Administration" %}</a></li> 
     19                                        <li id="navadmin"><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li> 
    2020                                {% endif %} 
    2121                                {% if user.is_authenticated %} 
    22                                         <li id="navprofile"><a href="{% url djangobb:forum_profile request.user %}">{% trans "Profile" %}</a></li> 
     22                                        <li id="navprofile"><a href="{% url 'djangobb:forum_profile' request.user %}">{% trans "Profile" %}</a></li> 
    2323                                        {% if forum_settings.PM_SUPPORT %} 
    24                                                 <li id="navpm"><a href="{% url messages_inbox %}">{% trans "PM" %}</a></li>  
     24                                                <li id="navpm"><a href="{% url 'messages_inbox' %}">{% trans "PM" %}</a></li>  
    2525                                        {% endif %} 
    2626                                {% endif %} 
     
    3434                                        <li>{% trans "Last visit:" %} {% forum_time user.last_login %}</li> 
    3535                                        {% if forum_settings.PM_SUPPORT and messages_inbox_count > 0 %} 
    36                                                 <ul><li class="pmlink"><strong><a href="{% url messages_inbox %}">{% trans "There are new messages" %} ({{ messages_inbox_count }})</a></strong></li></ul> 
     36                                                <ul><li class="pmlink"><strong><a href="{% url 'messages_inbox' %}">{% trans "There are new messages" %} ({{ messages_inbox_count }})</a></strong></li></ul> 
    3737                                        {% endif %} 
    3838                                {% else %} 
     
    4040                                {% endif %} 
    4141                                {% if user.is_superuser and reports %} 
    42                                         <li class="reportlink"><strong><a href="{% url admin:index %}">{% trans "There are new reports" %} ({% new_reports %})</a></strong></li> 
     42                                        <li class="reportlink"><strong><a href="{% url 'admin:index' %}">{% trans "There are new reports" %} ({% new_reports %})</a></strong></li> 
    4343                                {% endif %} 
    4444                        </ul> 
    4545                        {% if user.is_authenticated %} 
    4646                                <ul class="conr"> 
    47                                         <li><a href="{% url djangobb:search %}?action=show_new">{% trans "Show new posts since last visit" %}</a></li> 
    48                                         <li><a href="{% url djangobb:misc %}?action=markread">{% trans "Mark all topics as read" %}</a></li> 
     47                                        <li><a href="{% url 'djangobb:search' %}?action=show_new">{% trans "Show new posts since last visit" %}</a></li> 
     48                                        <li><a href="{% url 'djangobb:misc' %}?action=markread">{% trans "Mark all topics as read" %}</a></li> 
    4949                                </ul> 
    5050                        {% endif %} 
  • djangobb_forum/templates/djangobb_forum/includes/post_in_search_page.html

    r514 r538  
    99            <div class="postleft"> 
    1010                <dl> 
    11                     <dt><strong><a href="{% url djangobb:forum_profile post.user %}">{{ post.user }}</a></strong></dt> 
     11                    <dt><strong><a href="{% url 'djangobb:forum_profile' post.user %}">{{ post.user }}</a></strong></dt> 
    1212                    <dd>{% trans "Replies:" %} {{ post.topic.post_count }}</dd> 
    1313                    <dd><div class="icon"><div class="nosize"><!-- --></div></div></dd> 
  • djangobb_forum/templates/djangobb_forum/index.html

    r488 r538  
    100100{% if forum_settings.LOFI_SUPPORT %} 
    101101    <p class="lofi"> 
    102         <a href="{% url djangobb:lofi_index %}">Lo-Fi Version</a> 
     102        <a href="{% url 'djangobb:lofi_index' %}">Lo-Fi Version</a> 
    103103    </p> 
    104104{% endif %} 
  • djangobb_forum/templates/djangobb_forum/lofi/forum.html

    r412 r538  
    77<div id='largetext'>{% trans "Full Version:" %} {% link forum %}</div> 
    88<div class='djangobbnav'> 
    9         <a href="{% url djangobb:lofi_index %}">{% trans "Root" %}</a> &raquo; {% lofi_link forum %} 
     9        <a href="{% url 'djangobb:lofi_index' %}">{% trans "Root" %}</a> &raquo; {% lofi_link forum %} 
    1010</div> 
    1111 
  • djangobb_forum/templates/djangobb_forum/lofi/header.html

    r371 r538  
    22<div id='djangobbwrapper'> 
    33        <div class='djangobbnavsmall'> 
    4                 <a href='{% url djangobb:search %}'>{% trans "Search" %}</a> - 
    5                 <a href='{% url djangobb:forum_users %}'>{% trans "User list" %}</a> 
     4                <a href='{% url 'djangobb:search' %}'>{% trans "Search" %}</a> - 
     5                <a href='{% url 'djangobb:forum_users' %}'>{% trans "User list" %}</a> 
    66        </div> 
    77         
  • djangobb_forum/templates/djangobb_forum/lofi/index.html

    r372 r538  
    44 
    55{% block content %} 
    6 <div id='largetext'>{% trans "Full Version:" %} <a href="{% url djangobb:index %}">{% trans "Root" %}</a></div> 
     6<div id='largetext'>{% trans "Full Version:" %} <a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a></div> 
    77<div class='djangobbnav'> 
    8         <a href="{% url djangobb:lofi_index %}">{% trans "Root" %}</a> 
     8        <a href="{% url 'djangobb:lofi_index' %}">{% trans "Root" %}</a> 
    99</div> 
    1010 
     
    2323</div> 
    2424</div> 
    25 <div class='smalltext'>This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please <a href='{% url djangobb:index %}'>click here</a>.</div> 
     25<div class='smalltext'>This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please <a href='{% url 'djangobb:index' %}'>click here</a>.</div> 
    2626</div> 
    2727{% endblock %} 
  • djangobb_forum/templates/djangobb_forum/lofi/topic.html

    r414 r538  
    77<div id='largetext'>{% trans "Full Version:" %} {% link topic %}</div> 
    88<div class='djangobbnav'> 
    9         <a href="{% url djangobb:lofi_index %}">{% trans "Root" %}</a> &raquo; {% lofi_link topic.forum %} &raquo; {% lofi_link topic %} 
     9        <a href="{% url 'djangobb:lofi_index' %}">{% trans "Root" %}</a> &raquo; {% lofi_link topic.forum %} &raquo; {% lofi_link topic %} 
    1010</div> 
    1111 
  • djangobb_forum/templates/djangobb_forum/moderate.html

    r411 r538  
    99        <div class="inbox"> 
    1010                <div class="pagelink conl">{% paginate %}</div> 
    11                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum }}</li></ul> 
     11                <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum }}</li></ul> 
    1212                <div class="clearer"></div> 
    1313        </div> 
  • djangobb_forum/templates/djangobb_forum/move_topic.html

    r372 r538  
    77        <h2><span>{% trans "Move topic" %}</span></h2> 
    88        <div class="box"> 
    9                 <form method="POST" action="{% url djangobb:move_topic %}"> 
     9                <form method="POST" action="{% url 'djangobb:move_topic' %}"> 
    1010                        {% csrf_token %} 
    1111                        <div class="inform"> 
  • djangobb_forum/templates/djangobb_forum/profile/profile_essentials.html

    r486 r538  
    2424                                                        <p> 
    2525                                                        {% if request.user.is_superuser %} 
    26                                                                 <a href="{% url admin:user_change_password profile.id %}">{% trans "Change password" %}</a> 
     26                                                                <a href="{% url 'admin:user_change_password' profile.id %}">{% trans "Change password" %}</a> 
    2727                                                        {% else %} 
    28                                                                 <a href="{% url auth_password_change %}">{% trans "Change password" %}</a> 
     28                                                                <a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a> 
    2929                                                        {% endif %} 
    3030                                                        </p> 
     
    4040                                                        {{ form.email }}<br></label> 
    4141                                                        {% if request.user.is_superuser %} 
    42                                                                 <p><a href="{% url djangobb:misc %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></p> 
     42                                                                <p><a href="{% url 'djangobb:misc' %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></p> 
    4343                                                        {% endif %} 
    4444 
     
    8282                                                        <p>{% trans "Last post:" %} {{ profile.forum_profile.last_post }}</p> 
    8383                                                        <label>{% trans "Posts:" %} {{ profile.forum_profile.post_count }} -  
    84                                                         <a href="{% url djangobb:search %}?action=show_user&user_id={{ profile.id }}">{% trans "Show all posts" %}</a></p> 
     84                                                        <a href="{% url 'djangobb:search' %}?action=show_user&user_id={{ profile.id }}">{% trans "Show all posts" %}</a></p> 
    8585                                                        </label> 
    8686                                                </div> 
  • djangobb_forum/templates/djangobb_forum/profile/profile_menu.html

    r404 r538  
    55                        <div class="inbox"> 
    66                                <ul> 
    7                                         <li {%if active_menu == "essentials" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_essentials profile %}">{% trans "Essentials" %}</a></li> 
    8                                         <li {%if active_menu == "personal" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_personal profile %}">{% trans "Personal" %}</a></li> 
    9                                         <li {%if active_menu == "messaging" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_messaging profile %}">{% trans "Messaging" %}</a></li> 
    10                                         <li {%if active_menu == "personality" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_personality profile %}">{% trans "Personality" %}</a></li> 
    11                                         <li {%if active_menu == "display" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_display profile %}">{% trans "Display" %}</a></li> 
    12                                         <li {%if active_menu == "privacy" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_privacy profile %}">{% trans "Privacy" %}</a></li> 
     7                                        <li {%if active_menu == "essentials" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_essentials' profile %}">{% trans "Essentials" %}</a></li> 
     8                                        <li {%if active_menu == "personal" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_personal' profile %}">{% trans "Personal" %}</a></li> 
     9                                        <li {%if active_menu == "messaging" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_messaging' profile %}">{% trans "Messaging" %}</a></li> 
     10                                        <li {%if active_menu == "personality" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_personality' profile %}">{% trans "Personality" %}</a></li> 
     11                                        <li {%if active_menu == "display" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_display' profile %}">{% trans "Display" %}</a></li> 
     12                                        <li {%if active_menu == "privacy" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_privacy' profile %}">{% trans "Privacy" %}</a></li> 
    1313                                        {# if request.user.is_superuser #} 
    14                                         <!--li {% if active_menu == "admin" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile profile %}?section=admin">{% trans "Administration" %}</a></li--> 
     14                                        <!--li {% if active_menu == "admin" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile' profile %}?section=admin">{% trans "Administration" %}</a></li--> 
    1515                                        {# endif #} 
    1616 
  • djangobb_forum/templates/djangobb_forum/profile/profile_personality.html

    r458 r538  
    2424                                                                <label>{{ form.show_avatar }}{% trans "Use avatar." %}<br></label> 
    2525                                                        </div> 
    26                                                         <p class="clearb"><a href="{% url djangobb:forum_profile_upload_avatar profile.username %}">{% trans "Upload avatar" %}</a></p> 
     26                                                        <p class="clearb"><a href="{% url 'djangobb:forum_profile_upload_avatar' profile.username %}">{% trans "Upload avatar" %}</a></p> 
    2727                                                </div> 
    2828                                        </fieldset> 
  • djangobb_forum/templates/djangobb_forum/reputation.html

    r427 r538  
    3333                                {% for reputation in reputations %} 
    3434                                        <tr> 
    35                                                 <td><a href="{% url djangobb:reputation reputation.from_user %}">{{ reputation.from_user }}</a></td> 
     35                                                <td><a href="{% url 'djangobb:reputation' reputation.from_user %}">{{ reputation.from_user }}</a></td> 
    3636                                                <td><a href="{{ reputation.post.get_absolute_url }}">{{ reputation.post.topic }}</a></td> 
    3737                                                <td>{{ reputation.reason }}</td> 
  • djangobb_forum/templates/djangobb_forum/reputation_form.html

    r372 r538  
    88        <div class="box"> 
    99                <div class="inbox"> 
    10                         <form action="{% url djangobb:reputation form.to_user %}" method="post"> 
     10                        <form action="{% url 'djangobb:reputation' form.to_user %}" method="post"> 
    1111                        {% csrf_token %} 
    1212                        <table cellspacing="0"> 
  • djangobb_forum/templates/djangobb_forum/search_posts.html

    r514 r538  
    5454<dl id="searchlinks" class="conl"> 
    5555        <dt><strong>{% trans "Search links" %}</strong></dt> 
    56         <dd><a href="{% url djangobb:search %}?action=show_24h">{% trans "Show recent posts" %}</a></dd> 
    57         <dd><a href="{% url djangobb:search %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd> 
     56        <dd><a href="{% url 'djangobb:search' %}?action=show_24h">{% trans "Show recent posts" %}</a></dd> 
     57        <dd><a href="{% url 'djangobb:search' %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd> 
    5858        {% if user.is_authenticated %} 
    59         <dd><a href="{% url djangobb:search %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd> 
    60         <dd><a href="{% url djangobb:search %}?action=show_user">{% trans "Show your topics" %}</a></dd> 
     59        <dd><a href="{% url 'djangobb:search' %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd> 
     60        <dd><a href="{% url 'djangobb:search' %}?action=show_user">{% trans "Show your topics" %}</a></dd> 
    6161        {% endif %} 
    6262</dl> 
  • djangobb_forum/templates/djangobb_forum/topic.html

    r513 r538  
    1212                <ul> 
    1313                        <li> 
    14                         <a href="{% url djangobb:index %}">{% trans "Root" %} </a></li><li>&raquo; {% link topic.forum %} </li><li>&raquo; {{ topic.name }} 
    15                         <a href="{% url djangobb:forum_topic_feed topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" class="breadcrumb_rss" /></a> 
     14                        <a href="{% url 'djangobb:index' %}">{% trans "Root" %} </a></li><li>&raquo; {% link topic.forum %} </li><li>&raquo; {{ topic.name }} 
     15                        <a href="{% url 'djangobb:forum_topic_feed' topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" class="breadcrumb_rss" /></a> 
    1616                        </li> 
    1717                </ul> 
     
    8989                                                {% endif %} 
    9090                                                {% if forum_settings.REPUTATION_SUPPORT %} 
    91                                                                 <dd><a href="{% url djangobb:reputation post.user.username %}">{% trans "Reputation" %}</a>: 
     91                                                                <dd><a href="{% url 'djangobb:reputation' post.user.username %}">{% trans "Reputation" %}</a>: 
    9292                                                                {% if request.user != post.user %} {# TODO: and user.is_authenticated #} 
    93                                                                         <a href="{% url djangobb:reputation post.user.username %}?action=plus&amp;post_id={{ post.id }}"><img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_add.gif" alt="+" /></a>&nbsp;&nbsp;<strong>{{ post.user.forum_profile.reply_total|default_if_none:"0" }}&nbsp;&nbsp;</strong><a href="{% url djangobb:reputation post.user.username %}?action=minus&amp;post_id={{ post.id }}"><img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_minus.gif" alt="-" /></a> 
     93                                                                        <a href="{% url 'djangobb:reputation' post.user.username %}?action=plus&amp;post_id={{ post.id }}"><img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_add.gif" alt="+" /></a>&nbsp;&nbsp;<strong>{{ post.user.forum_profile.reply_total|default_if_none:"0" }}&nbsp;&nbsp;</strong><a href="{% url 'djangobb:reputation' post.user.username %}?action=minus&amp;post_id={{ post.id }}"><img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_minus.gif" alt="-" /></a> 
    9494                                                                {% else %} 
    9595                                                                        <strong>{{ post.user.forum_profile.reply_total|default_if_none:"0" }}</strong> 
     
    9797                                                                </dd> 
    9898                                                {% endif %} 
    99                                                 <dd class="usercontacts"><a href="{% url djangobb:forum_profile post.user.username %}">{% trans "Profile" %}</a>&nbsp;&nbsp; 
     99                                                <dd class="usercontacts"><a href="{% url 'djangobb:forum_profile' post.user.username %}">{% trans "Profile" %}</a>&nbsp;&nbsp; 
    100100                                                {% if post.user.forum_profile.privacy_permission == 0 %} 
    101101                                                        <a href="mailto:{{ post.user.email }}">{% trans "E-mail" %}</a>&nbsp;&nbsp; 
    102102                                                {% else %} 
    103103                                                        {% if post.user.forum_profile.privacy_permission == 1 %} 
    104                                                                 <a href="{% url djangobb:misc %}?mail_to={{ post.user.username }}">{% trans "Send e-mail" %}</a>&nbsp;&nbsp; 
     104                                                                <a href="{% url 'djangobb:misc' %}?mail_to={{ post.user.username }}">{% trans "Send e-mail" %}</a>&nbsp;&nbsp; 
    105105                                                        {% endif %} 
    106106                                                {% endif %} 
    107107                                                {% if forum_settings.PM_SUPPORT %} 
    108108                                                        {% if user.is_authenticated %} 
    109                                                                 <a href="{% url messages_compose_to post.user.username %}">{% trans "PM" %}</a>&nbsp;&nbsp;</dd> 
     109                                                                <a href="{% url 'messages_compose_to' post.user.username %}">{% trans "PM" %}</a>&nbsp;&nbsp;</dd> 
    110110                                                        {% endif %} 
    111111                                                {% endif %} 
     
    146146                        <div class="postfootright"> 
    147147                                <ul> 
    148                                         <li class="postreport"><a href="{% url djangobb:misc %}?action=report&amp;post_id={{ post.id }}">{% trans "Report" %}</a> </li> 
     148                                        <li class="postreport"><a href="{% url 'djangobb:misc' %}?action=report&amp;post_id={{ post.id }}">{% trans "Report" %}</a> </li> 
    149149                                        {% if moderator or post|forum_equal_to:last_post %} 
    150150                                                {% if moderator or post.user|forum_equal_to:user %} 
    151                                                         <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> 
     151                                                        <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> 
    152152                                                {% endif %} 
    153153                                        {% endif %} 
    154154                                        {% if moderator or post|forum_posted_by:user %} 
    155                                                 <li class="postedit">| <a href="{% url djangobb:edit_post post.id %}">{% trans "Edit" %}</a> </li> 
     155                                                <li class="postedit">| <a href="{% url 'djangobb:edit_post' post.id %}">{% trans "Edit" %}</a> </li> 
    156156                                        {% endif %} 
    157157                                        {% if user.is_authenticated %} 
     
    168168                <div class="pagelink conl">{% paginate %}</div> 
    169169                        <ul> 
    170                             <li><a href="{% url djangobb:index %}">{% trans "Root" %} </a></li> 
     170                            <li><a href="{% url 'djangobb:index' %}">{% trans "Root" %} </a></li> 
    171171                            <li>&raquo; {% link topic.forum %} </li> 
    172172                            <li> 
    173                                 &raquo; {{ topic }}<a href="{% url djangobb:forum_topic_feed topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" class="breadcrumb_rss" /></a> 
     173                                &raquo; {{ topic }}<a href="{% url 'djangobb:forum_topic_feed' topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" class="breadcrumb_rss" /></a> 
    174174                            </li> 
    175175            </ul> 
    176176                {% if user.is_authenticated %} 
    177177                        {% if subscribed %} 
    178                                 <a class="subscribelink clearb" href="{% url djangobb:forum_delete_subscription topic.id %}?from_topic">{% trans "Unsubscribe" %}</a> 
     178                                <a class="subscribelink clearb" href="{% url 'djangobb:forum_delete_subscription' topic.id %}?from_topic">{% trans "Unsubscribe" %}</a> 
    179179                        {% else %} 
    180                                 <a class="subscribelink clearb" href="{% url djangobb:forum_add_subscription topic.id %}">{% trans "Subscribe" %}</a> 
     180                                <a class="subscribelink clearb" href="{% url 'djangobb:forum_add_subscription' topic.id %}">{% trans "Subscribe" %}</a> 
    181181                        {% endif %} 
    182182                {% endif %} 
     
    198198                <div><label>{% trans "Jump to " %} 
    199199                <br /> 
    200                 <select name="id" id="forum_id" onchange="window.location=('{% url djangobb:index %}'+this.options[this.selectedIndex].value)"> 
     200                <select name="id" id="forum_id" onchange="window.location=('{% url 'djangobb:index' %}'+this.options[this.selectedIndex].value)"> 
    201201                        {% for category in categories %} 
    202202                                <optgroup label="{{ category }}"> 
     
    207207                        {% endfor %} 
    208208                </select> 
    209                 <input type="button" onclick="window.location=('{% url djangobb:index %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" /> 
     209                <input type="button" onclick="window.location=('{% url 'djangobb:index' %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" /> 
    210210                </label></div> 
    211211        </form> 
    212212        <dl id="modcontrols"><dt><strong>{% trans "Moderator control" %}</strong></dt> 
    213213        {% if moderator %} 
    214                 <dd><a href="{% url djangobb:delete_posts topic.id %}">{% trans "Delete multiple posts" %}</a></dd> 
    215                 <dd><a href="{% url djangobb:move_topic %}?topic_id={{ topic.id }}">{% trans "Move topic" %}</a></dd> 
     214                <dd><a href="{% url 'djangobb:delete_posts' topic.id %}">{% trans "Delete multiple posts" %}</a></dd> 
     215                <dd><a href="{% url 'djangobb:move_topic' %}?topic_id={{ topic.id }}">{% trans "Move topic" %}</a></dd> 
    216216                {% if topic.closed %} 
    217                         <dd><a href="{% url djangobb:open_close_topic topic.id 'o' %}">{% trans "Open topic" %}</a></dd> 
     217                        <dd><a href="{% url 'djangobb:open_close_topic' topic.id 'o' %}">{% trans "Open topic" %}</a></dd> 
    218218                {% else %} 
    219                         <dd><a href="{% url djangobb:open_close_topic topic.id 'c' %}">{% trans "Close topic" %}</a></dd> 
     219                        <dd><a href="{% url 'djangobb:open_close_topic' topic.id 'c' %}">{% trans "Close topic" %}</a></dd> 
    220220                {% endif %} 
    221221                {% if topic.sticky %} 
    222                         <dd><a href="{% url djangobb:stick_unstick_topic topic.id 'u' %}">{% trans "Unstick topic" %}</a></dd></dl> 
     222                        <dd><a href="{% url 'djangobb:stick_unstick_topic' topic.id 'u' %}">{% trans "Unstick topic" %}</a></dd></dl> 
    223223                {% else %} 
    224                         <dd><a href="{% url djangobb:stick_unstick_topic topic.id 's' %}">{% trans "Stick topic" %}</a></dd></dl> 
     224                        <dd><a href="{% url 'djangobb:stick_unstick_topic' topic.id 's' %}">{% trans "Stick topic" %}</a></dd></dl> 
    225225                {% endif %} 
    226226        {% endif %} 
  • djangobb_forum/templates/djangobb_forum/user.html

    r392 r538  
    4040                                                        {% else %} 
    4141                                                                {% if profile.forum_profile.privacy_permission == 1 %} 
    42                                                                         <dd><a href="{% url djangobb:misc %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></dd> 
     42                                                                        <dd><a href="{% url 'djangobb:misc' %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></dd> 
    4343                                                                {% else %} 
    4444                                                                        <dd>{% trans "(Hidden)" %}</dd> 
     
    118118                                                <dl> 
    119119                                                        <dt>{% trans "Posts:" %} </dt> 
    120                                                         <dd>{{ profile.forum_profile.post_count }} - <a href="{% url djangobb:search %}?action=show_user&amp;user_id={{ profile.id }}">{% trans "Show all posts" %}</a></dd> 
     120                                                        <dd>{{ profile.forum_profile.post_count }} - <a href="{% url 'djangobb:search' %}?action=show_user&amp;user_id={{ profile.id }}">{% trans "Show all posts" %}</a></dd> 
    121121                                                        <dt>{% trans "Last post:" %} </dt> 
    122122                                                        {% if profile.forum_profile.last_post %} 
Note: See TracChangeset for help on using the changeset viewer.