User comments
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</time>
|
||||
</div>
|
||||
</div>
|
||||
{% if session_username.as_deref() == Some(post.author) %}
|
||||
{% if session_user_id.as_ref() == Some(post.author_id) %}
|
||||
<div class="mt-4 sm:mt-0">
|
||||
<button onclick="document.getElementById('edit-form').classList.toggle('hidden')"
|
||||
class="inline-flex items-center px-3 py-1.5 bg-blue-600 hover:bg-blue-700 text-white text-sm font-medium rounded-md transition-colors">
|
||||
@@ -47,7 +47,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
{% if session_username.as_deref() == Some(post.author) %}
|
||||
{% if session_user_id.as_ref() == Some(post.author_id) %}
|
||||
<div id="edit-form"
|
||||
class="hidden bg-gray-50 border border-gray-200 rounded-lg p-6">
|
||||
<h2 class="text-xl font-bold text-gray-900 mb-4">Edit post</h2>
|
||||
|
||||
Reference in New Issue
Block a user