-
Notifications
You must be signed in to change notification settings - Fork 26
/
post.html
64 lines (48 loc) · 1.11 KB
/
post.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@include 'header.html'
<div class="center">
<h1>@post.title</h1>
</div>
<!--
<div class="sep" style="border:0"></div>
-->
<div class="center">
@for comment in comments
<div class=comment>
<b>@comment.name</b> <i>@comment.time.relative()</i>
<div class=text>@comment.filtered_text()</div>
</div>
@end
@if app.logged_in
@if post.is_locked
<br>
🔒 This discussion has been locked due to being resolved.
@else
<form method="post" action="/comment/@post.id">
<textarea name="text" required minlength=3
placeholder="Write your comment here"></textarea>
<input type="submit" value="Post">
</form>
@end
@end
</div>
<div class="sep" style="border:0;"></div>
@if !app.logged_in
<div class="center">
<a href="https://github.com/login/oauth/authorize?response_type=code&client_id=@client_id">
Log in via GitHub to comment
</a>
</div>
@end
<div class="center">
<!-- beautiful layout -->
<br>
<br>
<br>
<center style="color:#777">
Powered by <a target=_blank
href="https://github.com/vlang/vorum">Vorum</a>,
open-source blogging/forum software written in V
</center>
<br>
<br>
</div>