Просмотр исходного кода

Nicer default warning reason for posts. #37

Rafał Pitoń 11 лет назад
Родитель
Сommit
636fa27585

+ 1 - 1
templates/cranefly/private_threads/thread.html

@@ -281,7 +281,7 @@
                   <form action="{{ url('warn_user', user=post.user.pk, slug=post.user.username_slug) }}" class="form-inline" method="post" autocomplete="off">
                     <input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
                     <input type="hidden" name="retreat" value="{{ request_path }}">
-                    <input type="hidden" name="reason" value="{% trans message=url('private_thread_find', thread=thread.pk, slug=thread.slug, post=post.pk), thread=thread.name %}Your message {{ message }} in thread &quot;{{ thread }}&quot; was found to violate community guidelines.{% endtrans %}">
+                    <input type="hidden" name="reason" value="{% trans message=board_address ~ url('private_thread_find', thread=thread.pk, slug=thread.slug, post=post.pk), thread=thread.name %}Your message in private thread &quot;[{{ thread }}]({{ message }})&quot; was found to violate community guidelines.{% endtrans %}">
                     <button type="submit" class="btn btn-link tooltip-top" title="{% trans %}Warn user for this post.{% endtrans %}">{% trans %}Warn{% endtrans %}</button>
                   </form>
                   {% endif %}

+ 1 - 1
templates/cranefly/threads/thread.html

@@ -390,7 +390,7 @@
               <form action="{{ url('warn_user', user=post.user.pk, slug=post.user.username_slug) }}" class="form-inline" method="post" autocomplete="off">
                 <input type="hidden" name="{{ csrf_id }}" value="{{ csrf_token }}">
                 <input type="hidden" name="retreat" value="{{ request_path }}">
-                <input type="hidden" name="reason" value="{% trans message=url('thread_find', thread=thread.pk, slug=thread.slug, post=post.pk), thread=thread.name %}Your message {{ message }} in thread &quot;{{ thread }}&quot; was found to violate community guidelines.{% endtrans %}">
+                <input type="hidden" name="reason" value="{% trans message=board_address ~ url('thread_find', thread=thread.pk, slug=thread.slug, post=post.pk), thread=thread.name %}Your message in thread &quot;[{{ thread }}]({{ message }})&quot; was found to violate community guidelines.{% endtrans %}">
                 <button type="submit" class="btn btn-link tooltip-top" title="{% trans %}Warn user for this post.{% endtrans %}">{% trans %}Warn{% endtrans %}</button>
               </form>
               {% endif %}