feat(web): added a simple RE tag for quotes

not great but better than nothing
This commit is contained in:
əlemi 2024-07-15 00:50:31 +02:00
parent 6ff288e936
commit f26d537114
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -52,6 +52,23 @@ pub fn Object(
} }
}); });
let quote_badge = object.quote_url()
.id()
.ok()
.map(|x| {
let href = Uri::web(U::Object, x);
view! {
<a class="clean dim" href={href}>
<span class="border-button ml-s" >
<code class="color mr-s">">"</code>
<small class="mr-s">
RE
</small>
</span>
</a>" "
}
});
let tag_badges = object.tag() let tag_badges = object.tag()
.flat() .flat()
.into_iter() .into_iter()
@ -167,6 +184,7 @@ pub fn Object(
</table> </table>
{post} {post}
<div class="mb-s mt-s ml-1 rev"> <div class="mb-s mt-s ml-1 rev">
{quote_badgge}
{tag_badges} {tag_badges}
{audience_badge} {audience_badge}
<span style="white-space:nowrap"> <span style="white-space:nowrap">