Skip to content

Commit a229222

Browse files
committed
WIP: Add create ticket to posts and change report topic to new method
1 parent f1b0d7c commit a229222

File tree

1 file changed

+5
-1
lines changed
  • inyoka_theme_ubuntuusers/templates/forum

1 file changed

+5
-1
lines changed

inyoka_theme_ubuntuusers/templates/forum/topic.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
id="{{ topic.slug }}">{% trans %}Mark as solved{% endtrans %}</a>
6464
{% endif %} |
6565
{% endif %}
66-
<a href="{{ topic|url('report') }}"
66+
<a href="{{ topic|url('ticket') }}"
6767
class="action action_report">{% trans %}Report{% endtrans %}</a>
6868
{% endif %}
6969
</span>
@@ -267,6 +267,10 @@ <h2>{{ topic.title|e }}</h2>
267267
</span>
268268
{% endif %}
269269
{%- endif %}
270+
{%- if not USER.is_authenticated() or can_reply and not topic.locked %}
271+
<a href="{{ post|url('ticket') }}"
272+
class="action action_report">{% trans %}Report{% endtrans %}</a> |
273+
{%- endif %}
270274
{%- if can_edit(post) %}
271275
<a href="{{ post|url('edit') }}"
272276
class="action action_edit">{% trans %}Edit{% endtrans %}</a> |

0 commit comments

Comments
 (0)