Created
March 20, 2018 21:07
-
-
Save liujoey/6c523504cb08c00fbc663b697741f9eb to your computer and use it in GitHub Desktop.
Example html file will freeze Spacemacs when using evil-search in vertical splits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load static %} | |
{% load evaluation_extras %} | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script type='text/javascript' src="{% static 'js/jquery.min.js' %}"></script> | |
<script type='text/javascript' src="{% static 'js/main.js' %}"></script> | |
<link rel='stylesheet' id='bootstrap-css-css' href="{% static 'css/bootstrap.css' %}" type='text/css' media='all' /> | |
<link rel="stylesheet" href="{% static 'css/main.css' %}" type="text/css" media="all"></link> | |
</head> | |
<body> | |
<input id="annotator" type="hidden" value="{{ annotator }}" /> | |
<div class="p-logo-row"> | |
<div class="p-logo"> | |
<a class="p-refresh " href="" target="" title="" data-track-type="track-nav-content" data-track-compid="n01" data-track-navid="" data-track-navdest=""> | |
</a> | |
<span class="p-workmark-title p-default"></span> | |
</div> | |
<div class="title"></div> | |
</div> | |
<div class="container-fluid"> | |
<div class="pagination"> | |
<span class="step-links"> | |
{% if paragraphs.has_previous %} | |
<a href="?page=1">« first</a> | |
<a href="?page={{ paragraphs.previous_page_number }}">previous</a> | |
{% endif %} | |
<span class="current"> | |
Page {{ paragraphs.number }} of {{ paragraphs.paginator.num_pages }}. | |
</span> | |
{% if paragraphs.has_next %} | |
<a href="?page={{ paragraphs.next_page_number }}">next</a> | |
<a href="?page={{ paragraphs.paginator.num_pages }}">last »</a> | |
{% endif %} | |
</span><br/> | |
</div> | |
{% for paragraph in paragraphs %} | |
{% for question in paragraph.question_set.all %} | |
{% if question.bin_number in bin_numbers %} | |
<div id="questionref_{{ question.pk }}" class="row"> | |
<hr/> | |
<div class="col-xs-6"> | |
<h4>Path: {{ paragraph.path }}</h4> | |
<div> | |
<b>Reference paragraph:</b> | |
{{ paragraph.text }} | |
</div> | |
</div> | |
<div class="col-xs-6"> | |
<form id="form_{{ question.pk }}"> | |
{% regroup question.edit_set.all by annotator as edits %} | |
<input type="hidden" id="editid_{{ question.pk }}" value="{% for group in edits %}{% if group.grouper == annotator %}{% for edit in group.list|slice:':1' %}{{ edit.pk }}{% endfor %}{% endif %}{% endfor %}" /> | |
<input type="hidden" id="orig_question_{{ question.pk }}" value="{{ question.question }}" /> | |
<div class="form-group"> | |
<label for="question_{{ question.pk }}">Question #{{ question.pk }}:</label><br/> | |
<input class="form-check-input" type="checkbox" id="check_{{ question.pk }}" name="check_{{ question.pk }}" /> <label for="check_{{ question.pk }}" >Exclude from training data</label> | |
<input type="text" class="form-control my-control question" id="question_{{ question.pk }}" value="{{ question.question }}" /> | |
</div> | |
<input type="hidden" id="ipsa_context_{{ question.pk }}" value="{{ question.ipsa_context }}" /> | |
<div class="form-group"> | |
<label for="ipsa_long_{{ question.pk }}">IPSA Answer:</label> | |
<textarea rows="5" class="form-control" id="ipsa_long_{{ question.pk }}" readonly >{{ question.ipsa_long }}</textarea> | |
</div> | |
<input type="hidden" id="ipsa_short_{{ question.pk }}" value="{{ question.ipsa_short }}" /> | |
<input type="hidden" id="rank_{{ question.pk }}" value="" /> | |
<button type="button" class="my-control btn btn-success rank" id="correct_{{ question.pk }}" >Correct</button> | |
<button type="button" class="my-control btn btn-secondary rank" id="partialy_{{ question.pk }}" >Partialy correct</button> | |
<button type="button" class="my-control btn btn-warning rank" id="wrong_{{ question.pk }}" >Wrong</button> | |
<span id="saved_{{ question.pk }}" class="btn btn-info invisible" disabled><span class="glyphicon glyphicon glyphicon-floppy-saved" aria-hidden="true"></span> Saved</span> | |
<div id="revise_{{ question.pk }}" class="form-group invisible"> | |
<label for="answer_{{ question.pk }}">Revised answer:</label> | |
</div> | |
</form> | |
<hr/> | |
<button type="button" class="btn btn-primary create_question" id="create_{{ question.pk }}" >Create new question</button> | |
</div> | |
</div> | |
{% endif %} | |
{% endfor %} | |
{% endfor %} | |
<div class="pagination"> | |
<span class="step-links"> | |
{% if paragraphs.has_previous %} | |
<a href="?page=1">« first</a> | |
<a href="?page={{ paragraphs.previous_page_number }}">previous</a> | |
{% endif %} | |
<span class="current"> | |
Page {{ paragraphs.number }} of {{ paragraphs.paginator.num_pages }}. | |
</span> | |
{% if paragraphs.has_next %} | |
<a href="?page={{ paragraphs.next_page_number }}">next</a> | |
<a href="?page={{ paragraphs.paginator.num_pages }}">last »</a> | |
{% endif %} | |
</span><br/> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment