~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/pybb/inlines/post.html

  • Committer: franku
  • Date: 2018-11-22 11:08:51 UTC
  • Revision ID: somal@arcor.de-20181122110851-77riof0o4dx2zcm6
split user uploaded content from static content

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
{% load wiki_extras %}
9
9
{% load wlprofile_extras %}
10
10
{% load custom_date %}
 
11
{% load static %}
11
12
   <a name="post-{{ post.id }}"></a>
12
13
   <table class="{% cycle "odd" "even" %}" width="100%">
13
14
      <tr>
17
18
               <tr>
18
19
                  <td style="text-align: left; border: 0px;">
19
20
                     <a href="{{post.get_absolute_url}}">
20
 
                        <img src="{{ MEDIA_URL }}forum/img/en/permalink.png" height="25" alt ="{% trans "Permalink" %}" />
 
21
                        <img src="{% static 'forum/img/en/permalink.png' %}" height="25" alt ="{% trans "Permalink" %}" />
21
22
                     </a>
22
23
                  </td>
23
24
                  <td style="text-align: right; border: 0px;">
39
40
                {% endif %}
40
41
                <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
41
42
                <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
42
 
                <img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" />
 
43
                <img src="{% static 'img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" />
43
44
                <br />
44
45
                <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
45
46
                {% if post.user.wlprofile.location %}
80
81
      <tr>
81
82
         <td class="toplink">
82
83
            <a href="#top">
83
 
                <img src="{{ MEDIA_URL }}forum/img/en/top.png" height="25" alt ="{% trans "Top" %}" />
 
84
                <img src="{% static 'forum/img/en/top.png' %}" height="25" alt ="{% trans "Top" %}" />
84
85
            </a>
85
86
         </td>
86
87
 
89
90
                  {% if user.is_authenticated %}
90
91
                  {% ifnotequal user post.user %}
91
92
                  <a href="{% url 'messages_compose_to' post.user %}">
92
 
                     <img src="{{ MEDIA_URL }}forum/img/en/send_pm.png" height="25" alt ="{% trans "Send PM" %}" />
 
93
                     <img src="{% static 'forum/img/en/send_pm.png' %}" height="25" alt ="{% trans "Send PM" %}" />
93
94
                  </a>
94
95
                  {% endifnotequal %}
95
96
                  {% endif %}
96
97
                  {% if moderator or post|pybb_posted_by:user %}
97
98
                  <a href="{% url 'pybb_edit_post' post.id %}">
98
 
                    <img src="{{ MEDIA_URL }}forum/img/en/edit.png" height="25" alt ="{% trans "Edit" %}" />
 
99
                    <img src="{% static 'forum/img/en/edit.png' %}" height="25" alt ="{% trans "Edit" %}" />
99
100
                  </a>
100
101
                  {% endif %}
101
102
                  {% if moderator or post|pybb_equal_to:last_post %}
102
103
                  {% if moderator or post.user|pybb_equal_to:user %}
103
104
                  <a href="{% url 'pybb_delete_post' post.id %}">
104
 
                     <img src="{{ MEDIA_URL }}forum/img/en/delete.png" height="25" alt ="{% trans "Delete" %}" />
 
105
                     <img src="{% static 'forum/img/en/delete.png' %}" height="25" alt ="{% trans "Delete" %}" />
105
106
                  </a>
106
107
                  {% endif %}
107
108
            </div>
108
109
            <div class="tools" style="float: right;">
109
110
                <a href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
110
 
                     <img src="{{ MEDIA_URL }}forum/img/en/quote.png" height="25" alt ="{% trans "Quote" %}" />
 
111
                     <img src="{% static 'forum/img/en/quote.png' %}" height="25" alt ="{% trans "Quote" %}" />
111
112
                  </a>
112
113
                  {% endif %}
113
114
            </div>