asonix
3f446a0b16
- Add commandline flag to promote a user to an admin - Add basic reporting feature - Enable reports for comments - TODO: Enable reports for submissions & profiles
40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
@use crate::templates::profiles::icon;
|
|
@use crate::{profiles::Profile, comments::Comment};
|
|
@use hyaenidae_toolkit::{templates::link, Link};
|
|
@use hyaenidae_toolkit::templates::icon as tkicon;
|
|
@use hyaenidae_toolkit::templates::ago;
|
|
|
|
@(comment: &Comment, profile: &Profile, dark: bool)
|
|
|
|
<div class="profile-box">
|
|
@:tkicon(&profile.view_path(), true, dark, {
|
|
@if let Some(key) = profile.icon_key() {
|
|
@:icon(key, &profile.name())
|
|
}
|
|
})
|
|
<div class="profile-box--content">
|
|
<div class="profile-box--all-meta">
|
|
<div>
|
|
<div class="profile-box--meta">
|
|
@if let Some(name) = profile.display_name() {
|
|
<div class="profile-box--meta--display">
|
|
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), {
|
|
@name
|
|
})
|
|
</div>
|
|
}
|
|
<div class="profile-box--meta--handle">
|
|
@:link(&Link::current_tab(&profile.view_path()).plain(true).dark(dark), {
|
|
@profile.full_handle()
|
|
})
|
|
</div>
|
|
<div class="profile-box--meta--date">
|
|
posted @:ago(comment.published(), dark)
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="profile-box--body">@comment.body()</div>
|
|
</div>
|
|
</div>
|
|
|