Templates update
This commit is contained in:
@@ -17,7 +17,13 @@
|
||||
</svg>
|
||||
</div>
|
||||
<a href="/users/{{ post.author }}"
|
||||
class="hover:text-blue-600 hover:underline font-medium">{{ post.author }}</a>
|
||||
class="hover:text-blue-600 hover:underline font-medium">
|
||||
{% if let Some(full_name) = post.full_name %}
|
||||
{{ full_name }}
|
||||
{% else %}
|
||||
{{ post.author }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
<div class="flex items-center">
|
||||
<svg class="w-4 h-4 mr-1 text-gray-400"
|
||||
@@ -47,7 +53,7 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if let Some(modified) = post.last_modified %}
|
||||
<span class="text-sm italic text-gray-500">Last modified on {{ modified.format("%B %d, %Y") }}, at {{ modified.format("%H:%M") }}</span>
|
||||
<span class="text-sm italic text-gray-500">Last modified on {{ modified.format("%B %d, %Y") }} at {{ modified.format("%H:%M") }}</span>
|
||||
{% endif %}
|
||||
</header>
|
||||
{% if session_user_id.as_ref() == Some(post.author_id) %}
|
||||
|
||||
Reference in New Issue
Block a user