hyaenidae/templates/admin/comment_box.rs.html
asonix e0858b7b3d Move server/ to / and start i18ning
Currently i18n'd
- login page
- register page
- cookie page
- delete account confirmation page
- 404 page
- 500 page
- part of account settings
2021-01-28 20:25:31 -06:00

43 lines
1.5 KiB
HTML

@use crate::extensions::ProfileExt;
@use crate::views::OwnedProfileView;
@use hyaenidae_profiles::store::Comment;
@use hyaenidae_toolkit::templates::bbcode;
@use hyaenidae_toolkit::{templates::link, Link};
@use hyaenidae_toolkit::templates::icon;
@use hyaenidae_toolkit::templates::ago;
@(comment: &Comment, view: &OwnedProfileView, dark: bool)
<div class="profile-box">
@:icon(&view.icon().dark(dark))
<div class="profile-box--content">
<div class="profile-box--all-meta">
<div>
<div class="profile-box--meta">
@if let Some(name) = view.profile.display_name() {
<div class="profile-box--meta--display">
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), {
@Html(&name)
})
</div>
}
<div class="profile-box--meta--handle">
@:link(&Link::current_tab(&view.profile.view_path()).plain(true), {
@view.profile.full_handle()
})
</div>
<div class="profile-box--meta--date">
posted @:ago(comment.published())
</div>
</div>
</div>
</div>
<div class="profile-box--body">
@:bbcode({
@Html(comment.body())
})
</div>
</div>
</div>