+1
src/views/index.pug
+1
src/views/index.pug
+2
src/views/login.pug
+2
src/views/login.pug
+4
-2
src/views/paste.pug
+4
-2
src/views/paste.pug
···
1
1
- var now = new Date()
2
2
include ../mixins/head
3
3
include ../mixins/header
4
+
include ../mixins/footer
4
5
include ../mixins/utils
5
6
doctype html
6
7
html
···
40
41
| #{timeDifference(now, Date.parse(paste.createdAt))} ago
41
42
p
42
43
pre.comment-body #{comment.body}
43
-
hr
44
44
45
45
if ownDid
46
46
form(action=`/${encodeURIComponent(paste.uri)}/comment` method="post").post-form
···
49
49
50
50
div.post-submit-row
51
51
button(type="submit").post-input-submit zonk!
52
-
else
52
+
else
53
53
p
54
54
a(href="/login") login
55
55
| to post a comment
56
+
57
+
+footer()
+3
src/views/user.pug
+3
src/views/user.pug
···
2
2
- var handle = didHandleMap[authorDid]
3
3
include ../mixins/head
4
4
include ../mixins/header
5
+
include ../mixins/footer
5
6
include ../mixins/utils
6
7
include ../mixins/post
7
8
doctype html
···
14
15
div.timeline
15
16
each paste in pastes
16
17
+post(paste, handle, authorDid)
18
+
19
+
+footer()