mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
add user note button to profile preview popup
This commit is contained in:
parent
8930e4a640
commit
ea102b9b85
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue