rimgo/views/gallery.hbs

98 lines
2.3 KiB
Handlebars
Raw Normal View History

2022-01-17 20:23:04 +00:00
<!DOCTYPE html>
<html lang="en">
2022-01-17 20:48:24 +00:00
2022-01-17 20:23:04 +00:00
<head>
2022-02-02 15:48:25 +00:00
<title>
{{#if album.Title}}
{{album.Title}} -
{{/if}}
rimgo
</title>
2022-01-18 23:31:15 +00:00
2022-01-17 20:23:04 +00:00
{{> partials/head }}
2022-01-18 23:05:06 +00:00
2022-01-17 22:11:33 +00:00
<link rel="stylesheet" href="/static/fonts/Material-Icons-Outlined.css" />
2022-01-17 20:48:24 +00:00
<link rel="stylesheet" href="/static/css/album.css" />
2022-01-18 23:05:06 +00:00
<link rel="stylesheet" href="/static/css/comments.css" />
2022-01-17 20:23:04 +00:00
</head>
2022-01-17 20:48:24 +00:00
2022-01-17 20:23:04 +00:00
<body>
2022-01-17 20:48:24 +00:00
{{> partials/header }}
<main>
2022-01-17 22:11:33 +00:00
<h1>{{album.Title}}</h1>
2022-01-18 00:21:43 +00:00
<p>{{album.CreatedAt}}</p>
2022-01-17 22:11:33 +00:00
<div class="imageMeta__wrapper">
2022-02-02 15:46:47 +00:00
{{#if album.User}}
<div class="user">
<a href="/user/{{album.User.Username}}">
<img src="{{album.User.Avatar}}" class="pfp" width="36" height="36" loading="lazy" />
</a>
<a href="/user/{{album.User.Username}}">
<p>
<b>{{album.User.Username}}</b>
</p>
</a>
</div>
{{/if}}
2022-01-17 22:11:33 +00:00
<div class="imageMeta">
2022-01-18 00:21:43 +00:00
<div class="imageMeta__item">
<span class="material-icons-outlined" title="Views">visibility</span>
<p>{{album.Views}}</p>
</div>
2022-01-26 21:28:03 +00:00
{{#if album.SharedWithCommunity}}
2022-01-17 22:11:33 +00:00
<p><span class="material-icons-outlined" title="Likes">thumb_up</span> {{album.Upvotes}}</p>
<p><span class="material-icons-outlined" title="Dislilkes">thumb_down</span> {{album.Downvotes}}</p>
2022-01-26 21:28:03 +00:00
{{/if}}
2022-01-17 22:11:33 +00:00
</div>
</div>
2022-01-18 21:45:57 +00:00
<br>
2022-01-17 20:48:24 +00:00
{{#each album.Media}}
2022-01-17 22:11:33 +00:00
{{#if this.Title}}
<h3>{{this.Title}}</h3>
{{/if}}
{{#if this.Description}}
2022-01-18 00:25:49 +00:00
<p>{{this.Description}}</p><br>
2022-01-17 22:11:33 +00:00
{{/if}}
2022-01-18 00:25:49 +00:00
<div class="center">
2022-01-18 21:45:57 +00:00
{{#equal this.Type "image"}}
2022-01-18 00:25:49 +00:00
<img src="{{this.Url}}" loading="lazy">
2022-01-18 21:45:57 +00:00
{{/equal}}
{{#equal this.Type "video"}}
<video controls loop>
<source type="{{this.MimeType}}" src="{{this.Url}}" />
</video>
{{/equal}}
2022-01-18 00:25:49 +00:00
</div>
<br>
2022-01-17 20:48:24 +00:00
{{/each}}
2022-01-18 23:05:06 +00:00
2022-01-24 01:59:29 +00:00
{{#if comments}}
2022-01-18 23:05:06 +00:00
<div>
<hr>
<input id="comments__expandBtn" type="checkbox">
<label class="comments__expandBtn__label" for="comments__expandBtn">
<h3>Comments ({{album.Comments}})</h3>
<span class="comments__expandBtn__icon material-icons-outlined"></span>
</label>
<div class="comments">
{{#each comments}}
{{> partials/comment }}
{{/each}}
</div>
</div>
<hr>
2022-01-24 01:59:29 +00:00
{{/if}}
2022-01-17 20:48:24 +00:00
</main>
2022-01-17 22:11:33 +00:00
{{> partials/footer }}
2022-01-17 20:23:04 +00:00
</body>
2022-01-17 20:48:24 +00:00
2022-01-17 20:23:04 +00:00
</html>