add user note button to profile preview popup

This commit is contained in:
Hendrik L 2025-01-13 16:30:28 +01:00
parent 8930e4a640
commit ea102b9b85
2 changed files with 9 additions and 0 deletions

View file

@ -42,6 +42,10 @@
<button id="vomit" class="emojitoggle">🤮</button>
</div>
{{ render_form(form) }}
{% if return_to -%}
<p></p>
<a href="{{ return_to }}" class="go_back">{{ _('Back') }}</a>
{% endif -%}
<div class="row mt-5"><small class="field_hint">{{ _('This note appears next to their username. It\'s meant just for you and not displayed to anyone else.') }}</small></div>
</div>
</div>

View file

@ -52,6 +52,11 @@
<div class="col-auto text-center">
<a href="/u/{{ user.link() }}" class="btn btn-primary btn-sm">{{ _('View profile') }}</a>
</div>
{% if current_user.is_authenticated -%}
<div class="col-auto text-center">
<a href="{{ url_for('user.edit_user_note', actor=user.link(), return_to=return_to) }}" class="btn btn-secondary btn-sm">{{ _('Edit note') }}</a>
</div>
{% endif -%}
</div>
</div>
</div>