forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgroup_about_rendertest.html
More file actions
60 lines (56 loc) · 1.99 KB
/
group_about_rendertest.html
File metadata and controls
60 lines (56 loc) · 1.99 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
{% extends "group/group_base.html" %}
{# Copyright The IETF Trust 2021, All Rights Reserved #}
{% load origin %}
{% load ietf_filters %}
{% block morecss %}
.leftpanel { border-right: 1px solid #ccc;}
.header {text-align:center; background-color:#aaf; }
.buttonrow {text-align:center; border-bottom: 1px solid #000;}
{% endblock %}
{% block group_content %}
{% if charter %}
{% comment %}
<div class="row">
<div class="col-md-6 header leftpanel">Current about page rendering</div>
<div class="col-md-6 header">Markdown rendering</div>
</div>
<div class="row buttonrow">
<div class="col-md-6 leftpanel"> </div>
<div class="col-md-6 "><input type="checkbox" name="widthconstraint"> Constrain width</input></div>
</div>
<div class="row">
<div class="col-md-6 leftpanel">{{charter|linebreaks}}</div>
<div class="col-md-6 rightcontent">{{rendered|sanitize|safe}}</div>
</div>
{% endcomment %}
<div class="row">
<div class="col-md-6 leftpanel">
<div class="header">Current about page rendering</div>
<div class="buttonrow"> </div>
<div>{{charter|linebreaks}}</div>
</div>
<div class="col-md-6 rightpanel">
<div class="header">Markdown rendering</div>
<div class="buttonrow"><input type="checkbox" name="widthconstraint"> Constrain width</input></div>
<div class="rightcontent">{{rendered|sanitize|safe}}</div>
</div>
</div>
{% else %}
<div>Group has no charter document</div>
{% endif %}
{% endblock %}
{% block js %}
<script>
$(document).ready(function() {
$('input[name=widthconstraint]').change(function() {
if ($(this).is(':checked')) {
$('.rightcontent').css('max-width','700px')
} else {
$('.rightcontent').css('max-width','')
}
});
$('input[name=widthconstraint').prop('checked', true);
$('.rightcontent').css('max-width','700px')
});
</script>
{% endblock %}