-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy paththread_replies_layout.pug
More file actions
118 lines (109 loc) · 4.62 KB
/
thread_replies_layout.pug
File metadata and controls
118 lines (109 loc) · 4.62 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
table.thread-replies
thead
tr
th ID
th Created On
th Media Type
th Text
th Permalink
if manage
th Manage
th Reply
tbody
each reply in replies
tr.thread-replies-list-item
td.reply-id
a(href=`/threads/${reply.id}`)=reply.id
td.reply-timestamp=reply.timestamp
td.reply-type=reply.media_type
td.reply-text=reply.text
td.reply-permalink
a(href=reply.permalink target='_blank') View on Threads
if manage
td.manage-reply
if username !== reply.username
form.hide-reply(action=`/manage_reply/${reply.id}?hide=${reply.hide_status!=='HIDDEN'}&username=${username}`, method='POST')
input(type='submit', value=`${reply.hide_status==='HIDDEN' ? 'Unhide' : 'Hide'}`)
else
p(title='Cannot hide your own replies.') ⓘ
td
button(onclick=`location.href='/upload?replyToId=${reply.id}'`) Reply
div.paging
if paging.nextUrl
div.paging-next
a(href=paging.nextUrl) Next
if paging.previousUrl
div.paging-previous
a(href=paging.previousUrl) Previous
if manage
form(action='/threads/replies/delete' method='POST')
input(type='hidden' name='threadId' value=threadId)
table.thread-replies
thead
tr
th
input(type='checkbox' id='select-all-replies')
th ID
th Created On
th Media Type
th Text
th Permalink
th Manage
th Reply
tbody
each reply in replies
tr.thread-replies-list-item
td
input(type='checkbox' name='reply_ids' value=reply.id class='reply-checkbox')
td.reply-id
a(href=`/threads/${reply.id}`)=reply.id
td.reply-timestamp=reply.timestamp
td.reply-type=reply.media_type
td.reply-text=reply.text
td.reply-permalink
a(href=reply.permalink target='_blank') View on Threads
td.manage-reply
if username !== reply.username
form.hide-reply(action=`/manage_reply/${reply.id}?hide=${reply.hide_status!=='HIDDEN'}&username=${username}`, method='POST')
input(type='submit', value=`${reply.hide_status==='HIDDEN' ? 'Unhide' : 'Hide'}`)
else
p(title='Cannot hide your own replies.') ⓘ
td
button(onclick=`location.href='/upload?replyToId=${reply.id}'`) Reply
button.delete-button(type='submit') Delete Selected
else
table.thread-replies
thead
tr
th ID
th Created On
th Media Type
th Text
th Permalink
th Manage
th Reply
tbody
each reply in replies
tr.thread-replies-list-item
td.reply-id
a(href=`/threads/${reply.id}`)=reply.id
td.reply-timestamp=reply.timestamp
td.reply-type=reply.media_type
td.reply-text=reply.text
td.reply-permalink
a(href=reply.permalink target='_blank') View on Threads
td.manage-reply
if username !== reply.username
form.hide-reply(action=`/manage_reply/${reply.id}?hide=${reply.hide_status!=='HIDDEN'}&username=${username}`, method='POST')
input(type='submit', value=`${reply.hide_status==='HIDDEN' ? 'Unhide' : 'Hide'}`)
else
p(title='Cannot hide your own replies.') ⓘ
td
button(onclick=`location.href='/upload?replyToId=${reply.id}'`) Reply
div.paging
if paging.nextUrl
div.paging-next
a(href=paging.nextUrl) Next
if paging.previousUrl
div.paging-previous
a(href=paging.previousUrl) Previous