feat(web): added a simple RE tag for quotes
not great but better than nothing
This commit is contained in:
parent
6ff288e936
commit
f26d537114
1 changed files with 18 additions and 0 deletions
|
@ -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">
|
||||||
|
|
Loading…
Reference in a new issue