fgdfg
This commit is contained in:
parent
450ac450aa
commit
84abaad632
2 changed files with 3 additions and 3 deletions
|
@ -735,7 +735,7 @@ def submit_post(v):
|
|||
options = []
|
||||
for i in re.finditer('\s*\$([^\$]+)\$\s*', body):
|
||||
options.append(i.group(1))
|
||||
body.replace(i.group(0), "")
|
||||
body = body.replace(i.group(0), "")
|
||||
|
||||
body_md = CustomRenderer().render(mistletoe.Document(body))
|
||||
body_html = sanitize(body_md)
|
||||
|
|
|
@ -360,8 +360,8 @@
|
|||
|
||||
{% for c in p.options %}
|
||||
<div class="custom-control">
|
||||
<input type="checkbox" class="custom-control-input" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="post('/vote/comment/<comment_id>/?vote=' + document.getElementById('{{c.id}}').checked);">
|
||||
<label class="custom-control-label" for="{{c.id}}">{{c.body}} - <a href="/votes?link=t3_{{c.id}}">{c.upvotes} votes</a></label>
|
||||
<input type="checkbox" class="custom-control-input" id="{{c.id}}" name="option" {% if c.poll_voted(v) %}checked{% endif %} onchange="post('/vote/comment/{{c.id}}/?vote=' + document.getElementById('{{c.id}}').checked);">
|
||||
<label class="custom-control-label" for="{{c.id}}">{{c.body}} - <a href="/votes?link=t3_{{c.id}}">{{c.upvotes}} votes</a></label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue