-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingletemplate.html
32 lines (31 loc) · 1.43 KB
/
singletemplate.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
<div id="defaulttemplate-single" class="my-5">
<div class="defaulttemplate-single-body my-5">
<div class="row my-6">
<div class="col-auto">##userpicture##</div>
<div class="col">
<div class="row h-100">
<div class="col-3 align-self-center">
##user##<br/><span class="data-timeinfo">##timeadded##</span>
</div>
<div class="col-4 col-md-6 text-right align-self-center data-timeinfo">
<span class="font-weight-bold ">Last changed </span>##timemodified##
</div>
<div class="col-4 col-md-3 ml-auto align-self-center d-flex flex-row-reverse">
<div>##actionsmenu##</div>
<div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div>
</div>
</div>
</div>
</div>
<hr/>
<div class="selected-choices"></span>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
document.querySelector('div.selected-choices').innerHTML = displaySelectedChoices('[[choice]]');
});
// Remove the alert box that tells the user that he has to add more votes to see the results.
const alert = document.querySelector('div[role="main"] > div.alert-danger')
if (alert) alert.remove();
</script>