forked from retoor/devplacepy
Render markdown in gist and project sidebar titles; add content visibility and GIF picker
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -74,28 +74,33 @@
|
||||
<button type="submit" class="btn btn-primary btn-sm full-width"{{ guest_disabled(user) }}><span class="icon">➕</span>Follow</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if is_blocked %}
|
||||
<form method="POST" action="/block/unblock/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Unblock {{ profile_user['username'] }}? Their posts, comments and messages will be visible to you again."{{ guest_disabled(user) }}><span class="icon">🔓</span>Unblock</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="/block/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Block {{ profile_user['username'] }}? You will no longer see their posts, comments or messages anywhere except on this profile." data-confirm-danger{{ guest_disabled(user) }}><span class="icon">🚫</span>Block</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if is_muted %}
|
||||
<form method="POST" action="/mute/unmute/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Unmute {{ profile_user['username'] }}? They will be able to create notifications for you again."{{ guest_disabled(user) }}><span class="icon">🔊</span>Unmute</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="/mute/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Mute {{ profile_user['username'] }}? They will no longer create notifications for you." data-confirm-danger{{ guest_disabled(user) }}><span class="icon">🔇</span>Mute</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if can_give_award %}
|
||||
<button type="button" class="btn btn-primary btn-sm full-width" data-award-give data-username="{{ profile_user['username'] }}" data-modal="award-give-modal"{{ guest_disabled(user) }}><span class="icon">🏆</span>Give Award</button>
|
||||
{% endif %}
|
||||
{% set _type = "user" %}{% set _uid = profile_user['uid'] %}{% set _owner = profile_user['uid'] %}{% set _owner_name = "" %}{% set _class = "btn btn-secondary btn-sm full-width" %}{% include "_report_button.html" %}
|
||||
<dp-action-menu class="profile-overflow">
|
||||
<button type="button" class="btn btn-secondary btn-sm full-width justify-center" data-action-menu-trigger aria-haspopup="menu" aria-expanded="false" aria-controls="profile-actions-panel" aria-label="More actions for {{ profile_user['username'] }}"><span class="icon">⋯</span>More</button>
|
||||
<div class="action-menu-panel" id="profile-actions-panel" data-action-menu-panel popover hidden>
|
||||
{% if is_blocked %}
|
||||
<form method="POST" action="/block/unblock/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Unblock {{ profile_user['username'] }}? Their posts, comments and messages will be visible to you again."{{ guest_disabled(user) }} data-menu-action><span class="icon">🔓</span>Unblock</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="/block/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Block {{ profile_user['username'] }}? You will no longer see their posts, comments or messages anywhere except on this profile." data-confirm-danger{{ guest_disabled(user) }} data-menu-action><span class="icon">🚫</span>Block</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if is_muted %}
|
||||
<form method="POST" action="/mute/unmute/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Unmute {{ profile_user['username'] }}? They will be able to create notifications for you again."{{ guest_disabled(user) }} data-menu-action><span class="icon">🔊</span>Unmute</button>
|
||||
</form>
|
||||
{% else %}
|
||||
<form method="POST" action="/mute/{{ profile_user['username'] }}">
|
||||
<button type="submit" class="btn btn-secondary btn-sm full-width" data-confirm="Mute {{ profile_user['username'] }}? They will no longer create notifications for you." data-confirm-danger{{ guest_disabled(user) }} data-menu-action><span class="icon">🔇</span>Mute</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% if can_give_award %}
|
||||
<button type="button" class="btn btn-primary btn-sm full-width" data-award-give data-username="{{ profile_user['username'] }}" data-modal="award-give-modal"{{ guest_disabled(user) }} data-menu-action><span class="icon">🏆</span>Give Award</button>
|
||||
{% endif %}
|
||||
{% set _type = "user" %}{% set _uid = profile_user['uid'] %}{% set _owner = profile_user['uid'] %}{% set _owner_name = "" %}{% set _class = "btn btn-secondary btn-sm full-width" %}{% set _menu_action = true %}{% include "_report_button.html" %}
|
||||
</div>
|
||||
</dp-action-menu>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user