Cleanup mention display
This commit is contained in:
@@ -67,12 +67,17 @@ article class="h-entry"
|
|||||||
== " · "
|
== " · "
|
||||||
a href="mailto:blog@dnitza.com?subject=About that post of yours&body=%0A%0A---%0A(In reply to #{post.permalink})" reply
|
a href="mailto:blog@dnitza.com?subject=About that post of yours&body=%0A%0A---%0A(In reply to #{post.permalink})" reply
|
||||||
- post.webmentions.each do |mention|
|
- post.webmentions.each do |mention|
|
||||||
|
- if mention.source_url.match Hanami.app.settings.micropub_site_url
|
||||||
|
div class="prose-p:m-1 mb-6 p-2 bg-orange-100 dark:bg-indigo-900 rounded"
|
||||||
|
= "Mentioned in "
|
||||||
|
a href=mention.source_url #{mention.source_url}
|
||||||
|
- else
|
||||||
div class="prose-p:m-1 mb-6 p-8 bg-orange-100 dark:bg-indigo-900 squircle"
|
div class="prose-p:m-1 mb-6 p-8 bg-orange-100 dark:bg-indigo-900 squircle"
|
||||||
div class="flex h-8"
|
div class="flex h-8"
|
||||||
- if mention.author_photo != ""
|
- if mention.author_photo != ""
|
||||||
img loading="lazy" class="w-8 rounded-full m-0 mr-2" src=mention.author_photo
|
img loading="lazy" class="w-8 rounded-full m-0 mr-2" src=mention.author_photo
|
||||||
- if mention.author_url == ""
|
- if mention.author_url == ""
|
||||||
= "From #{mention.author_name}"
|
= "From #{mention.author_name.gsub(/.{0,6}@/,'***@')}"
|
||||||
- else
|
- else
|
||||||
a class="block text-orange-700 dark:text-violet-300 no-underline hover:underline" href=mention.author_url
|
a class="block text-orange-700 dark:text-violet-300 no-underline hover:underline" href=mention.author_url
|
||||||
= mention.author_name
|
= mention.author_name
|
||||||
|
Reference in New Issue
Block a user