+ {% for answer in answers %}
+ {% if not answer.skipped %}
+ {% if "Correct answer" in answer.error %}
+
+ {% else %}
+
+ {% endif %}
+
Autocheck: {{ answer.error }}
+
{{ answer.answer.strip }}
+
+ {% endif %}
+ {% endfor %}
+ {% endif %}
+
+ {% endfor %} {# for question, answers ... #}
+
Teacher comments:
{{ paper.comments|default:"None" }}
{% endif %} {# if paper.answers.count #}
--
cgit
From f84e689e4fc71aebf32facbcc2aef3955295f95d Mon Sep 17 00:00:00 2001
From: maheshgudi
Date: Thu, 15 Sep 2016 16:02:17 +0530
Subject: monitor table sorter
---
yaksh/static/yaksh/js/jquery.tablesorter.min.js | 4 ++++
yaksh/templates/yaksh/monitor.html | 20 +++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
create mode 100644 yaksh/static/yaksh/js/jquery.tablesorter.min.js
diff --git a/yaksh/static/yaksh/js/jquery.tablesorter.min.js b/yaksh/static/yaksh/js/jquery.tablesorter.min.js
new file mode 100644
index 0000000..b8605df
--- /dev/null
+++ b/yaksh/static/yaksh/js/jquery.tablesorter.min.js
@@ -0,0 +1,4 @@
+
+(function($){$.extend({tablesorter:new
+function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i
1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((ab)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i
{% endblock %}
+
+{% block script %}
+
+
+
+{% endblock %}
+
+
{% block subtitle %}
{% if not quizzes and not quiz %}
Quiz Results
@@ -41,7 +55,8 @@
Number of papers: {{ papers|length }}
Question Statisitics
Download CSV
-
+
{% else %}
No answer papers so far.
--
cgit
From aa09318a4332575bfb309c430a9db88cd2b55537 Mon Sep 17 00:00:00 2001
From: maheshgudi
Date: Fri, 16 Sep 2016 14:41:07 +0530
Subject: consistent indentation of 4 spaces in view_answerpaper.css and minor
changes in grade_user.html
---
yaksh/static/yaksh/css/view_answerpaper.css | 72 ++++++++++++++---------------
yaksh/templates/yaksh/grade_user.html | 14 ++++--
2 files changed, 44 insertions(+), 42 deletions(-)
diff --git a/yaksh/static/yaksh/css/view_answerpaper.css b/yaksh/static/yaksh/css/view_answerpaper.css
index fdcb1c6..fad081d 100644
--- a/yaksh/static/yaksh/css/view_answerpaper.css
+++ b/yaksh/static/yaksh/css/view_answerpaper.css
@@ -1,76 +1,74 @@
.panel {
- margin-bottom: 20px;
- background-color: #fff;
- border: 1px solid transparent;
- border-radius: 4px;
- -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
+ margin-bottom: 20px;
+ background-color: #fff;
+ border: 1px solid transparent;
+ border-radius: 4px;
+ -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}
.panel-body {
- padding: 15px;
+ padding: 15px;
}
.panel-heading {
- padding: 10px 15px;
- border-bottom: 1px solid transparent;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
+ padding: 10px 15px;
+ border-bottom: 1px solid transparent;
+ border-top-left-radius: 3px;
+ border-top-right-radius: 3px;
}
- .panel-info {
- border-color: #bce8f1;
+.panel-info {
+ border-color: #bce8f1;
}
.panel-info > .panel-heading {
- color: #31708f;
- background-color: #d9edf7;
- border-color: #bce8f1;
+ color: #31708f;
+ background-color: #d9edf7;
+ border-color: #bce8f1;
}
.panel-danger {
- border-color: #ebccd1;
+ border-color: #ebccd1;
}
.panel-danger > .panel-heading {
- color: #a94442;
- background-color: #f2dede;
- border-color: #ebccd1;
+ color: #a94442;
+ background-color: #f2dede;
+ border-color: #ebccd1;
}
.panel-danger > .panel-body > pre > code {
- background-color:transparent;
- color: red;
+ background-color:transparent;
+ color: red;
}
.panel-success {
- border-color: #d6e9c6;
+ border-color: #d6e9c6;
}
.panel-success > .panel-heading {
- color: #3c763d;
- background-color: #dff0d8;
- border-color: #d6e9c6;
+ color: #3c763d;
+ background-color: #dff0d8;
+ border-color: #d6e9c6;
}
.panel-success > .panel-body > pre > code {
- background-color:transparent;
- color: green;
+ background-color:transparent;
+ color: green;
}
.marks{
- float:right;
+ float:right;
}
mark{
- background-color: #dff0d8;
+ background-color: #dff0d8;
}
code{
- background-color: transparent;
+ background-color: transparent;
}
pre{
- background-color: transparent;
+ background-color: transparent;
}
-
/*for grade user*/
textarea
{
-width : 100%;
-height : 15%;
+ width : 100%;
+ height : 15%;
}
#attempt {
width: 157px;
position: relative; left:20%;
}
#myContent {
-margin: 5px 10px;
-
-}
\ No newline at end of file
+ margin: 5px 10px;
+}
diff --git a/yaksh/templates/yaksh/grade_user.html b/yaksh/templates/yaksh/grade_user.html
index 7b79373..0e29512 100644
--- a/yaksh/templates/yaksh/grade_user.html
+++ b/yaksh/templates/yaksh/grade_user.html
@@ -5,7 +5,9 @@
{% block subtitle %} Grade User {% endblock %}
{% block css %}
-
+
{% endblock %}
{% block manage %}
@@ -24,8 +26,9 @@
{% if course.get_quizzes %}
{% for quiz in course.get_quizzes %}
- {{quiz.description}}
-
+
+ {{quiz.description}}
+
{% endfor %}
|
{% else %}
@@ -40,7 +43,8 @@
{%if users %}
{% endif %}
@@ -177,7 +181,7 @@ Status : Passed
name="q{{ question.id }}_marks" size="4"
value="{{ answer.marks }}">
{% endwith %}
-
+
{% endfor %} {# for question, answers ... #}
Teacher comments:
--
cgit