add mentions
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<div>
|
||||
<ul class="horizontal">
|
||||
{% for tag in banned_tags | unique %}
|
||||
<li><code class="inline-code">[{{ tag }}]</code></li>
|
||||
<li><code class="inline-code">{{ tag }}</code></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
@@ -156,7 +156,8 @@
|
||||
<a href="{{ url_for("users.page", username=post['username']) }}" style="display: contents;">
|
||||
<img src="{{ post['avatar_path'] }}" class="avatar">
|
||||
</a>
|
||||
<a href="{{ url_for("users.page", username=post['username']) }}" class="username-link">{{ post['username'] }}</a>
|
||||
<a href="{{ url_for("users.page", username=post['username']) }}" class="username-link">{{ post['display_name'] or post['username'] }}</a>
|
||||
<em><abbr title="Mention">@{{ post.username }}</abbr></em>
|
||||
{% if post['status'] %}
|
||||
<em class="user-status">{{ post['status'] }}</em>
|
||||
{% endif %}
|
||||
@@ -205,7 +206,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if show_reply %}
|
||||
{% set qtext = "[url=%s]%s said:[/url]" | format(post_permalink, post['username']) %}
|
||||
{% set qtext = "@%s [url=%s]said:[/url]" | format(post['username'], post_permalink) %}
|
||||
{% set reply_text = "%s\n[quote]\n%s\n[/quote]\n" | format(qtext, post['original_markup']) %}
|
||||
<button data-send="addQuote" value="{{ reply_text }}" class="reply-button">Quote</button>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user