c00481ec07c45bb76221558bec0207566cfa4474
[redakcja.git] / src / catalogue / templates / catalogue / image_short.html
1 {% load i18n %}
2 {% load username from common_tags %}
3
4 <tr class="table-sm">
5     <td><input type="checkbox" name="select_chunk" value="{{image.id}}"/></td>
6     <td><a href="{% url 'catalogue_image' image.slug %}" class="btn btn-sm btn-secondary" title="{% trans "Image settings" %}">&#x1f5bc;</a></td>
7     <td><a class="btn btn-primary" target="_blank"
8                 href="{% url 'wiki_img_editor' image.slug %}">
9                 {{ image.title }}</a></td>
10     <td>{% if image.stage %}
11         {{ image.stage }}
12     {% else %}–
13     {% endif %}</td>
14     <td class='user-column'>{% if image.user %}<a href="{% url 'catalogue_user' image.user.username %}">{{ image.user|username }}</a>{% endif %}</td>
15     <td>
16       {% if image.published %}
17         <span class="badge badge-info" title="{% trans "published" %}">opubl.</span>
18       {% endif %}
19       {% if image.new_publishable %}
20         <span class="badge badge-primary" title="{% trans "publishable" %}">do publ.</span>
21       {% endif %}
22       {% if image.changed %}
23         <span class="badge badge-warning title="{% trans "changed" %}">zmiany</span>
24       {% endif %}
25     </td>
26     <td>{{ image.project.name }}</td>
27 </tr>