2021-01-22 05:42:19 +00:00
|
|
|
@use crate::banner::Banner;
|
|
|
|
@use crate::templates::image;
|
2021-01-13 04:34:25 +00:00
|
|
|
|
2021-01-22 05:42:19 +00:00
|
|
|
@(banner: &Banner)
|
|
|
|
|
|
|
|
<div class="@banner.class_string()">
|
|
|
|
@if let Some(img) = banner.image_opt() {
|
|
|
|
@:image(img)
|
|
|
|
}
|
|
|
|
</div>
|