merging html5 video stuff in
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.sass-cache/d71392d31c3b10df78042d13a0384e71b83fa11e/_wiki.scssc
Normal file
BIN
.sass-cache/d71392d31c3b10df78042d13a0384e71b83fa11e/_wiki.scssc
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,7 +1,10 @@
|
||||
$("#accordion").accordion({active:${ active_chapter }});
|
||||
$("#accordion").accordion({
|
||||
active: ${ active_chapter },
|
||||
autoHeight: false
|
||||
});
|
||||
|
||||
$('.ui-accordion').bind('accordionchange', function(event, ui) {
|
||||
var event_data = {'newheader':ui.newHeader.text(),
|
||||
'oldheader':ui.oldHeader.text()};
|
||||
log_event('accordion', event_data);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
<script>
|
||||
$(function() {
|
||||
/* Set up FancyBox pop-ups */
|
||||
$("a#inline").fancybox({
|
||||
'hideOnContentClick': false
|
||||
});
|
||||
|
||||
// TODO: Clean up as per http://stackoverflow.com/questions/169506/obtain-form-input-fields-using-jquery
|
||||
|
||||
@@ -107,8 +104,8 @@ $(function() {
|
||||
|
||||
<center>
|
||||
<table>
|
||||
<tr><td align=right><big><a id="inline" href="#enroll">Enroll >></a><br><br><br>
|
||||
<a id="inline" href="#login">Log In >></a></big></td><td><div style="width:50px; float:center;"></div></td><td>
|
||||
<tr><td align=right><big><a class="modal" href="#enroll">Enroll >></a><br><br><br>
|
||||
<a class="modal" href="#login">Log In >></a></big></td><td><div style="width:50px; float:center;"></div></td><td>
|
||||
<div style="width:300px; float:center;">
|
||||
Taught by Anant Agarwal, with Gerald Sussman, Piotr Mitros, and Chris
|
||||
Terman, "6.002 Circuits and Electronics" is an an on-line adaption of
|
||||
|
||||
@@ -11,6 +11,6 @@
|
||||
</form>
|
||||
</td></tr></table>
|
||||
<div align=center>
|
||||
<div id="lost_password"><a id="inline" href="#pwd_reset">Lost password?</a></div>
|
||||
<div id="lost_password"><a class="modal" href="#pwd_reset">Lost password?</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
106
main.html
106
main.html
@@ -28,13 +28,12 @@
|
||||
<script>
|
||||
$(function() {
|
||||
// Set up FancyBox pop-ups
|
||||
$("a#inline").fancybox({
|
||||
$("a.modal").fancybox({
|
||||
'hideOnContentClick': false
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<%block name="headextra"/>
|
||||
|
||||
</head>
|
||||
@@ -45,57 +44,68 @@ $(function() {
|
||||
<%block name="bodyextra"/>
|
||||
|
||||
<footer>
|
||||
<p> Copyright (c). 2011. MIT. <a href=http://creativecommons.org/licenses/by-sa/3.0/>Some rights reserved.</a> Please give us <a id="inline"
|
||||
href="#feedback_div">feedback</a>. Try our <a id="inline"
|
||||
href="#calculator_div">calculator</a>.
|
||||
|
||||
<!-- Template based on a design from http://www.dotemplate.com/ - Donated $10 (pmitros) so we don't need to include credit. -->
|
||||
</p>
|
||||
|
||||
<div style="display:none"><div id="feedback_div">Found a bug? Got an
|
||||
idea for improving our system? Let us know.
|
||||
<br> Subject: <br><input id="feedback_subject" size=40>
|
||||
<br> Feedback: <br><textarea id="feedback_message" cols="40" rows="5">
|
||||
</textarea>
|
||||
<br> <input id="feedback_button" type="button" value="Submit">
|
||||
|
||||
<script>$(function() {
|
||||
$("#feedback_button").click(function(){
|
||||
postJSON("/send_feedback", {"subject":$("#feedback_subject").attr("value"),
|
||||
"url":document.URL,
|
||||
"message":$("#feedback_message").attr("value")},
|
||||
function(data){
|
||||
$("#feedback_subject").attr("value","");
|
||||
$("#feedback_message").attr("value","");
|
||||
$("#feedback_div").html("Feedback submitted. Thank you");
|
||||
});
|
||||
});
|
||||
});</script>
|
||||
|
||||
</div></div>
|
||||
|
||||
<div style="display:none"><div id="calculator_div">
|
||||
<input id="calculator_input" > <input id="calculator_button" type=button value="=>">
|
||||
<input id="calculator_output" readonly>
|
||||
<script>$(function() {
|
||||
$("#calculator_button").click(function(){
|
||||
$.getJSON("/calculate", {"equation":$("#calculator_input").attr("value")},
|
||||
function(data){
|
||||
$("#calculator_output").attr("value",data.result);
|
||||
});
|
||||
});
|
||||
});</script>
|
||||
<br>
|
||||
Supported operations: ^ * / + - || ()
|
||||
<br>
|
||||
Supported suffixes: %kMGTcmunp
|
||||
|
||||
</div></div>
|
||||
<!-- Template based on a design from http://www.dotemplate.com/ - Donated $10 (pmitros) so we don't need to include credit. -->
|
||||
<p> Copyright (c). 2011. MIT. <a href=http://creativecommons.org/licenses/by-sa/3.0/>Some rights reserved.</a></p>
|
||||
|
||||
<ul>
|
||||
<li><a href="#feedback_div" class="modal">Feedback</a></li>
|
||||
<li><a href="#calculator_div" class="modal">Calculator</a></li>
|
||||
<li><a href="/s/help.html">Help</a></li>
|
||||
<li><a href="/logout">Log out</a></li>
|
||||
</ul>
|
||||
</footer>
|
||||
|
||||
<div style="display:none">
|
||||
<div id="feedback_div">
|
||||
Found a bug? Got an idea for improving our system? Let us know.
|
||||
|
||||
<form>
|
||||
<ol>
|
||||
<li><label>Subject:</label> <input id="feedback_subject" size=40></li>
|
||||
<li><label>Feedback: </label><textarea id="feedback_message" cols="40" rows="5"></textarea></li>
|
||||
<li><input id="feedback_button" type="button" value="Submit"></li>
|
||||
</ol>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="display:none">
|
||||
<div id="calculator_div">
|
||||
<input id="calculator_input" >
|
||||
<input id="calculator_button" type=button value="=>">
|
||||
<input id="calculator_output" readonly>
|
||||
|
||||
<p>Supported operations: ^ * / + - || ()</p>
|
||||
<p>Supported suffixes: %kMGTcmunp</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Feedback form
|
||||
$(function() {
|
||||
$("#feedback_button").click(function(){
|
||||
postJSON("/send_feedback", {"subject":$("#feedback_subject").attr("value"),
|
||||
"url":document.URL,
|
||||
"message":$("#feedback_message").attr("value")},
|
||||
function(data){
|
||||
$("#feedback_subject").attr("value","");
|
||||
$("#feedback_message").attr("value","");
|
||||
$("#feedback_div").html("Feedback submitted. Thank you");
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// Calculator
|
||||
$(function() {
|
||||
$("#calculator_button").click(function(){
|
||||
$.getJSON("/calculate", {"equation":$("#calculator_input").attr("value")},
|
||||
function(data){
|
||||
$("#calculator_output").attr("value",data.result);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -5,6 +5,7 @@ function ${ id }_load() {
|
||||
update_schematics();
|
||||
|
||||
$('#check_${ id }').click(function() {
|
||||
$("input.schematic").each(function(index,element){ element.schematic.update_value(); });
|
||||
var submit_data={};
|
||||
$.each($("[id^=input_${ id }_]"), function(index,value){
|
||||
submit_data[value.id]=value.value;
|
||||
@@ -36,7 +37,7 @@ function ${ id }_load() {
|
||||
$('#show_${ id }').click(function() {
|
||||
postJSON('/modx/problem/${ id }/problem_show', {}, function(data) {
|
||||
for (var key in data) {
|
||||
$("#answer_${ id }_"+key).text(data[key]);
|
||||
$("#answer_"+key).text(data[key]);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -44,6 +45,7 @@ function ${ id }_load() {
|
||||
});
|
||||
|
||||
$('#save_${ id }').click(function() {
|
||||
$("input.schematic").each(function(index,element){ element.schematic.update_value(); });
|
||||
var submit_data={};
|
||||
$.each($("[id^=input_${ id }_]"), function(index,value){
|
||||
submit_data[value.id]=value.value;});
|
||||
|
||||
@@ -45,9 +45,8 @@ $(function() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
$('#change_password').click(function(){
|
||||
$('#inline').trigger('click');
|
||||
$('.modal').trigger('click');
|
||||
log_event("profile", {"type":"password_show"});
|
||||
});
|
||||
|
||||
@@ -75,10 +74,9 @@ $(function() {
|
||||
<li>E-mail: ${email}</li>
|
||||
<li>Location: ${location}</li>
|
||||
<li>Language: ${language}</li>
|
||||
<li>Password: ********</li>
|
||||
</ul>
|
||||
|
||||
<!-- <div><a href="#change_password_pop">Reset password</a></div> -->
|
||||
<!-- <div><a class="modal" href="#change_password_pop">Reset password</a></div> -->
|
||||
<!-- hidden trigger for password -->
|
||||
|
||||
<div id="change_password_pop">
|
||||
|
||||
@@ -30,3 +30,83 @@
|
||||
border: 1px solid darken(#888, 20%);
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
@include box-sizing(border-box);
|
||||
display: table-cell;
|
||||
padding: $body-line-height;
|
||||
vertical-align: top;
|
||||
width: grid-width(9);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
@include box-shadow( inset -1px 0 0 #f6f6f6);
|
||||
background: #e3e3e3;
|
||||
border-right: 1px solid #d3d3d3;
|
||||
display: table-cell;
|
||||
font-family: $body-font-family;
|
||||
text-shadow: 0 1px 0 #f1f1f1;
|
||||
vertical-align: top;
|
||||
width: grid-width(3);
|
||||
position: relative;
|
||||
|
||||
h3 {
|
||||
@include box-shadow(0 1px 0 #eee);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 1px solid #d3d3d3;
|
||||
color: #000;
|
||||
font-weight: normal;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
|
||||
a {
|
||||
@include transition();
|
||||
color: lighten($text-color, 10%);
|
||||
display: block;
|
||||
font-size: $body-font-size;
|
||||
padding: 7px 7px 7px 30px;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
@include box-shadow(0 1px 0 #fff);
|
||||
background: #efefef;
|
||||
}
|
||||
}
|
||||
|
||||
span.ui-icon {
|
||||
background-image: url(images/ui-icons_454545_256x240.png);
|
||||
}
|
||||
|
||||
&.active {
|
||||
@include box-shadow(none);
|
||||
background: none;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #bbb;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.topbar {
|
||||
background: #F6EFD4;
|
||||
border-bottom: 1px solid darken(#F6EFD4, 10%);
|
||||
margin: (-$body-line-height) (-$body-line-height) $body-line-height;
|
||||
font-size: 12px;
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
@extend .clearfix;
|
||||
|
||||
a {
|
||||
text-transform: uppercase;
|
||||
color: darken(#F6EFD4, 80%);
|
||||
|
||||
&:hover {
|
||||
color: darken(#F6EFD4, 60%);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,17 +3,12 @@ div.course-wrapper {
|
||||
width: 100%;
|
||||
|
||||
div#accordion {
|
||||
@include box-shadow( inset -1px 0 0 #f6f6f6);
|
||||
background: #e3e3e3;
|
||||
border-right: 1px solid #d3d3d3;
|
||||
display: table-cell;
|
||||
font-family: $body-font-family;
|
||||
overflow: hidden;
|
||||
text-shadow: 0 1px 0 #f1f1f1;
|
||||
vertical-align: top;
|
||||
width: grid-width(3);
|
||||
@extend .sidebar;
|
||||
|
||||
h3 {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
|
||||
&:last-child {
|
||||
@include box-shadow(none);
|
||||
}
|
||||
@@ -26,34 +21,13 @@ div.course-wrapper {
|
||||
color: lighten($text-color, 10%);
|
||||
}
|
||||
|
||||
&.ui-state-default {
|
||||
@include box-shadow(0 1px 0 #eee);
|
||||
background: none;
|
||||
border: none;
|
||||
border-bottom: 1px solid #d3d3d3;
|
||||
font-weight: normal;
|
||||
|
||||
span.ui-icon {
|
||||
background-image: url(images/ui-icons_454545_256x240.png);
|
||||
}
|
||||
}
|
||||
|
||||
&.ui-state-hover {
|
||||
border: none;
|
||||
border-bottom: 1px solid #d3d3d3;
|
||||
}
|
||||
|
||||
&.ui-state-active {
|
||||
@include box-shadow(none);
|
||||
background: none;
|
||||
border: 0;
|
||||
border-bottom: 1px solid #bbb;
|
||||
color: #000;
|
||||
font-weight: bold;
|
||||
|
||||
a {
|
||||
color: #000;
|
||||
}
|
||||
@extend .active;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -124,6 +98,7 @@ div.course-wrapper {
|
||||
margin-bottom: $body-line-height;
|
||||
|
||||
li {
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: table-cell;
|
||||
min-width: 30px;
|
||||
@@ -135,7 +110,7 @@ div.course-wrapper {
|
||||
div.video-wrapper {
|
||||
float: left;
|
||||
width: 640px;
|
||||
min-height: 500px;
|
||||
min-height: 620px;
|
||||
|
||||
section {
|
||||
ul {
|
||||
@@ -145,6 +120,8 @@ div.course-wrapper {
|
||||
margin-top: 5px;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
|
||||
div {
|
||||
&:empty {
|
||||
@@ -183,9 +160,13 @@ div.course-wrapper {
|
||||
li {
|
||||
margin-bottom: 8px;
|
||||
cursor: pointer;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
color: #666;
|
||||
|
||||
&.current {
|
||||
background-color: #f3f3f3;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
|
||||
@@ -2,17 +2,9 @@ div.book-wrapper {
|
||||
display: table;
|
||||
|
||||
ul#booknav {
|
||||
@include box-shadow( inset -1px 0 0 #f6f6f6);
|
||||
@extend .sidebar;
|
||||
@include box-sizing(border-box);
|
||||
background: #e3e3e3;
|
||||
border-right: 1px solid #d3d3d3;
|
||||
font-family: $body-font-family;
|
||||
padding: $body-line-height;
|
||||
text-shadow: 0 1px 0 #f6f6f6;
|
||||
vertical-align: top;
|
||||
width: grid-width(3);
|
||||
min-width: 240px;
|
||||
display: table-cell;
|
||||
|
||||
li {
|
||||
ul {
|
||||
@@ -29,9 +21,7 @@ div.book-wrapper {
|
||||
display: table-cell;
|
||||
|
||||
nav {
|
||||
background: #F6EFD4;
|
||||
border-bottom: 1px solid darken(#F6EFD4, 10%);
|
||||
margin: (-$body-line-height) (-$body-line-height) $body-line-height;
|
||||
@extend .topbar;
|
||||
|
||||
ul {
|
||||
@extend .clearfix;
|
||||
@@ -45,17 +35,6 @@ div.book-wrapper {
|
||||
&.next {
|
||||
float: right;
|
||||
}
|
||||
|
||||
a {
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
color: darken(#F6EFD4, 80%);
|
||||
text-shadow: 0 1px 0 #fff;
|
||||
|
||||
&:hover {
|
||||
color: darken(#F6EFD4, 60%);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
22
sass/_wiki-create.scss
Normal file
22
sass/_wiki-create.scss
Normal file
@@ -0,0 +1,22 @@
|
||||
form#wiki_revision {
|
||||
label {
|
||||
display: block;
|
||||
margin-bottom: 7px ;
|
||||
}
|
||||
|
||||
textarea {
|
||||
@include box-sizing(border-box);
|
||||
margin-bottom: 20px;
|
||||
min-height: 300px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
display: block;
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
134
sass/_wiki.scss
Normal file
134
sass/_wiki.scss
Normal file
@@ -0,0 +1,134 @@
|
||||
div.wiki-wrapper {
|
||||
display: table;
|
||||
width: 100%;
|
||||
|
||||
div#wiki_panel {
|
||||
@extend .sidebar;
|
||||
overflow: auto;
|
||||
|
||||
input[type="button"] {
|
||||
@extend h3;
|
||||
color: lighten($text-color, 10%);
|
||||
@include transition();
|
||||
font-size: $body-font-size;
|
||||
margin: 0 !important;
|
||||
padding: 7px 7px 7px 30px;
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
|
||||
&:hover {
|
||||
@include box-shadow(0 1px 0 #fff);
|
||||
background: #efefef;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
li {
|
||||
&.create-article {
|
||||
position: relative;
|
||||
|
||||
h3 {
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
background: blue url(images/ui-icons_454545_256x240.png) -32px -16px no-repeat;
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:before {
|
||||
background-image: url(images/ui-icons_454545_256x240.png) -64px -16px no-repeat;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
div#wiki_create_form {
|
||||
@extend .clearfix;
|
||||
padding: 15px;
|
||||
background: #d6d6d6;
|
||||
border-bottom: 1px solid #bbb;
|
||||
|
||||
input[type="text"] {
|
||||
margin-bottom: 6px;
|
||||
display: block;
|
||||
width: 100%;
|
||||
@include box-sizing(border-box);
|
||||
}
|
||||
|
||||
ul {
|
||||
li {
|
||||
float: left;
|
||||
|
||||
&#cancel {
|
||||
float: right;
|
||||
margin-top: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
section.wiki-body {
|
||||
@extend .content;
|
||||
|
||||
header {
|
||||
@extend .topbar;
|
||||
|
||||
p {
|
||||
float: left;
|
||||
padding: 15px;
|
||||
margin-bottom: 0;
|
||||
color: darken(#F6EFD4, 55%);
|
||||
line-height: 1em;
|
||||
}
|
||||
|
||||
ul {
|
||||
float: right;
|
||||
|
||||
li {
|
||||
float: left;
|
||||
|
||||
input[type="button"] {
|
||||
@include box-shadow(inset 1px 0 0 lighten(#f6efd4, 5%));
|
||||
@include border-radius(0);
|
||||
@include transition();
|
||||
background: darken(#F6EFD4, 5%);
|
||||
border: 0;
|
||||
border-left: 1px solid darken(#f6efd4, 20%);
|
||||
color: darken(#F6EFD4, 80%);
|
||||
text-shadow: none;
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 1px;
|
||||
padding: 15px;
|
||||
margin: 0;
|
||||
|
||||
&:hover {
|
||||
background: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
h1.wiki-title {
|
||||
font-weight: bold;
|
||||
padding-bottom: 10px;
|
||||
margin-bottom: 20px;
|
||||
border-bottom: 1px solid #ccc;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
@import "courseware";
|
||||
@import "textbook";
|
||||
@import "profile";
|
||||
@import "wiki-create", "wiki";
|
||||
|
||||
// left over
|
||||
@import "theme";
|
||||
|
||||
19
schematicinput.html
Normal file
19
schematicinput.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<span>
|
||||
<input type="hidden" class="schematic" height="${height}" width="${width}" name="input_${id}" id="input_${id}" value="" />
|
||||
<div id="hidden_${id}" style="display:none">
|
||||
${value}
|
||||
</div>
|
||||
<script>
|
||||
$("#input_${id}").attr("value",$("#hidden_${id}").text())
|
||||
</script>
|
||||
<span id="answer_${id}"></span>
|
||||
% if state == 'unsubmitted':
|
||||
<span class="ui-icon ui-icon-bullet" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'correct':
|
||||
<span class="ui-icon ui-icon-check" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'incorrect':
|
||||
<span class="ui-icon ui-icon-close" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'incomplete':
|
||||
<span class="ui-icon ui-icon-close" style="display:inline-block;" id="status_${id}"></span>
|
||||
% endif
|
||||
</span>
|
||||
@@ -5,135 +5,173 @@
|
||||
<%block name="title"><title>${"wiki_title"}</title></%block>
|
||||
|
||||
<%block name="headextra">
|
||||
<link rel="stylesheet" media="screen,print" href="/static/simplewiki/css/base.css" />
|
||||
<link rel="stylesheet" media="print" href="/static/simplewiki/css/base_print.css" />
|
||||
<link rel="stylesheet" href="/static/simplewiki/css/autosuggest_inquisitor.css" />
|
||||
<link rel="stylesheet" href="/static/css/local.css" type="text/css" media="all" />
|
||||
<script type="text/javascript" src="/static/simplewiki/js/bsn.AutoSuggest_c_2.0.js"></script>
|
||||
<!-- <link rel="stylesheet" media="screen,print" href="/static/simplewiki/css/base.css" /> -->
|
||||
<!-- <link rel="stylesheet" media="print" href="/static/simplewiki/css/base_print.css" /> -->
|
||||
<!-- <link rel="stylesheet" href="/static/simplewiki/css/autosuggest_inquisitor.css" /> -->
|
||||
<!-- <link rel="stylesheet" href="/static/css/local.css" type="text/css" media="all" /> -->
|
||||
<script type="text/javascript" src="/static/simplewiki/js/bsn.AutoSuggest_c_2.0.js"></script>
|
||||
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
%>
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function set_related_article_id(s) {
|
||||
document.getElementById('wiki_related_input_id').value = s.id;
|
||||
document.getElementById('wiki_related_input_submit').disabled=false;
|
||||
}
|
||||
%if wiki_article is not UNDEFINED:
|
||||
var x = window.onload;
|
||||
window.onload = function(){
|
||||
var options = {
|
||||
script: "${reverse("search_related", args=[wiki_article.get_url()] )}/?self=${wiki_article.pk}&",
|
||||
json: true,
|
||||
varname: "query",
|
||||
maxresults: 35,
|
||||
callback: set_related_article_id,
|
||||
noresults: "Nothing found!"
|
||||
};
|
||||
var as = new AutoSuggest('wiki_related_input', options);
|
||||
if (typeof x == 'function')
|
||||
x();
|
||||
}
|
||||
%endif
|
||||
</script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"]]}
|
||||
<script type="text/javascript">
|
||||
function set_related_article_id(s) {
|
||||
document.getElementById('wiki_related_input_id').value = s.id;
|
||||
document.getElementById('wiki_related_input_submit').disabled=false;
|
||||
}
|
||||
%if wiki_article is not UNDEFINED:
|
||||
var x = window.onload;
|
||||
window.onload = function(){
|
||||
var options = {
|
||||
script: "${reverse("search_related", args=[wiki_article.get_url()] )}/?self=${wiki_article.pk}&",
|
||||
json: true,
|
||||
varname: "query",
|
||||
maxresults: 35,
|
||||
callback: set_related_article_id,
|
||||
noresults: "Nothing found!"
|
||||
};
|
||||
var as = new AutoSuggest('wiki_related_input', options);
|
||||
if (typeof x == 'function')
|
||||
x();
|
||||
}
|
||||
%endif
|
||||
</script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"]]}
|
||||
});
|
||||
</script> <script type="text/javascript" src="/static/lib/mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
$.ajaxSetup ({
|
||||
// Disable caching of AJAX responses
|
||||
cache: false
|
||||
});
|
||||
</script> <script type="text/javascript" src="/static/lib/mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
$.ajaxSetup ({
|
||||
// Disable caching of AJAX responses
|
||||
cache: false
|
||||
});
|
||||
|
||||
$(".div_wiki_circuit").each(function(d,e) {
|
||||
id = $(this).attr("id");
|
||||
name = id.substring(17);
|
||||
//alert(name);
|
||||
$("#"+id).load("/edit_circuit/"+name);
|
||||
f=this;
|
||||
});
|
||||
$(".div_wiki_circuit").each(function(d,e) {
|
||||
id = $(this).attr("id");
|
||||
name = id.substring(17);
|
||||
//alert(name);
|
||||
$("#"+id).load("/edit_circuit/"+name);
|
||||
f=this;
|
||||
});
|
||||
|
||||
$("#wiki_create_form").hide();
|
||||
|
||||
$("#create-article").click(function() {
|
||||
$("#wiki_create_form").slideToggle();
|
||||
$(this).parent().toggleClass("active");
|
||||
});
|
||||
|
||||
update_schematics();});
|
||||
</script>
|
||||
|
||||
update_schematics();});
|
||||
</script>
|
||||
<%block name="wiki_head"/>
|
||||
</%block>
|
||||
|
||||
<%block name="bodyextra">
|
||||
<%block name="wiki_head"/>
|
||||
</%block>
|
||||
|
||||
<%include file="navigation.html" />
|
||||
|
||||
<section class="main-content">
|
||||
<h1><%block name="wiki_page_title"/></h1>
|
||||
<hr />
|
||||
<div class="wiki-wrapper">
|
||||
<%block name="wiki_panel">
|
||||
|
||||
<%block name="wiki_panel">
|
||||
<div id="wiki_panel">
|
||||
<%
|
||||
if (wiki_article is not UNDEFINED):
|
||||
baseURL = reverse("wiki_view", args=[wiki_article.get_url()])
|
||||
else:
|
||||
baseURL = reverse("wiki_view", args=[""])
|
||||
%>
|
||||
|
||||
<div id="wiki_panel">
|
||||
<div class="wiki_box">
|
||||
<div class="wiki_box_header">
|
||||
<div class="wiki_box_corner"></div>
|
||||
<div class="wiki_box_bar"></div>
|
||||
</div>
|
||||
<div class="wiki_box_contents" style="position: relative;">
|
||||
<ul class="action">
|
||||
<li>
|
||||
<div class="wiki_box_title">Search</div>
|
||||
<form method="POST" action='${reverse("wiki_search_articles", args=[""])}'>
|
||||
<div style="display:none">
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
|
||||
</div>
|
||||
<input type="text" name="value" id="wiki_search_input" style="width: 72%" value="${wiki_search_query if wiki_search_query is not UNDEFINED else '' |h}"/>
|
||||
<input type="submit" id="wiki_search_input_submit" value=Go! style="width: 20%" />
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_random", args=["wiki_articleget_url"])}'" value="Random article" class="button" />
|
||||
</li>
|
||||
|
||||
<div style="border: 2px outset #CCC; width: 250px; padding: 10px; background-color: #FFF; position: absolute; right: 100px; top: -80px; display: none; color: #000;" id="wiki_create_form">
|
||||
<%
|
||||
theaction = "this.wiki_article_name.value.replace(/([^a-zA-Z0-9\-])/g, '')+'/_create/'"
|
||||
if (wiki_article is not UNDEFINED):
|
||||
baseURL = reverse("wiki_view", args=[wiki_article.get_url()])
|
||||
else:
|
||||
baseURL = reverse("wiki_view", args=[""])
|
||||
|
||||
%>
|
||||
<form method="GET" onsubmit="this.action='${baseURL + "/' + " + theaction};">
|
||||
<h2>Create article</h2>
|
||||
<p>
|
||||
<label for="id_wiki_article_name">Title of article</label>
|
||||
<input type="text" name="wiki_article_name" id="id_wiki_article_name" /><br/>
|
||||
<label for="id_wiki_article_is_child">Create as a child of current article</label>
|
||||
<input type="checkbox" name="wiki_article_is_child" id="id_wiki_artcile_is_child" disabled="true" ${ 'checked="checked"' if wiki_article is not UNDEFINED else ""}>
|
||||
</p>
|
||||
<p>
|
||||
<input type="button" class="button" value="Cancel" style="display: inline-block; margin-right: 2px;" onclick="document.getElementById('wiki_create_form').style.display='none';" />
|
||||
<input type="submit" class="button" value="Next >" style="display: inline-block; margin-right: 2px; font-weight: bold;" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<p>
|
||||
|
||||
%if wiki_article is not UNDEFINED:
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_view", args=[wiki_article.get_url()])}'" value="View" style="width: 100%;" class="button" /><br />
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_edit", args=[wiki_article.get_url()])}'" value="Edit" style="width: 100%;" class="button" ${'disabled="true"' if not wiki_write else ""}/><br />
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_history", args=[wiki_article.get_url(),1])}'" value="History" style="width: 100%;" class="button" />
|
||||
%endif
|
||||
<input type="button" onclick="document.getElementById('wiki_create_form').style.display='block';" value="Create article" style="width: 100%; margin-bottom: 2px;" class="button" />
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_random", args=["wiki_articleget_url"])}'" value="Random article" style="width: 100%; margin-bottom: 2px;" class="button" />
|
||||
</p>
|
||||
%if wiki_article is not UNDEFINED:
|
||||
%if wiki_article.locked:
|
||||
<p><strong>This article has been locked</strong></p>
|
||||
%endif
|
||||
<p>
|
||||
<i>Last modified: ${wiki_article.modified_on.strftime("%b %d, %Y, %I:%M %p")}</i>
|
||||
</p>
|
||||
%endif
|
||||
</div>
|
||||
<div class="wiki_box_footer">
|
||||
<div class="wiki_box_corner"></div>
|
||||
<div class="wiki_box_bar"></div>
|
||||
</div>
|
||||
</div>
|
||||
<li class="create-article">
|
||||
<h3>
|
||||
<a href="#" id="create-article"/>Create Article</a>
|
||||
</h3>
|
||||
|
||||
</div>
|
||||
<div id="wiki_create_form">
|
||||
<%
|
||||
theaction = "this.wiki_article_name.value.replace(/([^a-zA-Z0-9\-])/g, '')+'/_create/'"
|
||||
if (wiki_article is not UNDEFINED):
|
||||
baseURL = reverse("wiki_view", args=[wiki_article.get_url()])
|
||||
else:
|
||||
baseURL = reverse("wiki_view", args=[""])
|
||||
%>
|
||||
|
||||
</%block>
|
||||
<form method="GET" onsubmit="this.action='${baseURL + "/' + " + theaction};">
|
||||
|
||||
<%block name="wiki_body"/>
|
||||
<div>
|
||||
<label for="id_wiki_article_name">Title of article</label>
|
||||
<input type="text" name="wiki_article_name" id="id_wiki_article_name" /><br/>
|
||||
<!-- <label for="id_wiki_article_is_child">Create as a child of current article</label> -->
|
||||
<!-- <input type="checkbox" name="wiki_article_is_child" id="id_wiki_artcile_is_child" disabled="true" ${ 'checked="checked"' if wiki_article is not UNDEFINED else ""}> -->
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<input type="submit" class="button" value="Create" style="display: inline-block; margin-right: 2px; font-weight: bold;" />
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</%block>
|
||||
|
||||
<section class="wiki-body">
|
||||
<header>
|
||||
%if wiki_article is not UNDEFINED:
|
||||
%if wiki_article.locked:
|
||||
<p><strong>This article has been locked</strong></p>
|
||||
%endif
|
||||
<p>Last modified: ${wiki_article.modified_on.strftime("%b %d, %Y, %I:%M %p")}</p>
|
||||
%endif
|
||||
|
||||
%if wiki_article is not UNDEFINED:
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_view", args=[wiki_article.get_url()])}'" value="View" />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_edit", args=[wiki_article.get_url()])}'" value="Edit" ${'disabled="true"' if not wiki_write else ""}/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_history", args=[wiki_article.get_url(),1])}'" value="History" class="button" />
|
||||
</li>
|
||||
</ul>
|
||||
%endif
|
||||
</header>
|
||||
|
||||
<h1 class="wiki-title"><%block name="wiki_page_title"/></h1>
|
||||
|
||||
<%block name="wiki_body"/>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</%block>
|
||||
</%block>
|
||||
|
||||
177
simplewiki_base.html.orig
Normal file
177
simplewiki_base.html.orig
Normal file
@@ -0,0 +1,177 @@
|
||||
##This file is based on the template from the SimpleWiki source which carries the GPL license
|
||||
|
||||
<%inherit file="main.html"/>
|
||||
|
||||
<%block name="title"><title>${"wiki_title"}</title></%block>
|
||||
|
||||
<%block name="headextra">
|
||||
<!-- <link rel="stylesheet" media="screen,print" href="/static/simplewiki/css/base.css" /> -->
|
||||
<!-- <link rel="stylesheet" media="print" href="/static/simplewiki/css/base_print.css" /> -->
|
||||
<!-- <link rel="stylesheet" href="/static/simplewiki/css/autosuggest_inquisitor.css" /> -->
|
||||
<!-- <link rel="stylesheet" href="/static/css/local.css" type="text/css" media="all" /> -->
|
||||
<script type="text/javascript" src="/static/simplewiki/js/bsn.AutoSuggest_c_2.0.js"></script>
|
||||
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
%>
|
||||
|
||||
<script type="text/javascript">
|
||||
function set_related_article_id(s) {
|
||||
document.getElementById('wiki_related_input_id').value = s.id;
|
||||
document.getElementById('wiki_related_input_submit').disabled=false;
|
||||
}
|
||||
%if wiki_article is not UNDEFINED:
|
||||
var x = window.onload;
|
||||
window.onload = function(){
|
||||
var options = {
|
||||
script: "${reverse("search_related", args=[wiki_article.get_url()] )}/?self=${wiki_article.pk}&",
|
||||
json: true,
|
||||
varname: "query",
|
||||
maxresults: 35,
|
||||
callback: set_related_article_id,
|
||||
noresults: "Nothing found!"
|
||||
};
|
||||
var as = new AutoSuggest('wiki_related_input', options);
|
||||
if (typeof x == 'function')
|
||||
x();
|
||||
}
|
||||
%endif
|
||||
</script>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
tex2jax: {inlineMath: [ ['$','$'], ["\\(","\\)"]],
|
||||
displayMath: [ ['$$','$$'], ["\\[","\\]"]]}
|
||||
});
|
||||
</script> <script type="text/javascript" src="/static/lib/mathjax/MathJax.js?config=TeX-AMS_HTML-full"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
$.ajaxSetup ({
|
||||
// Disable caching of AJAX responses
|
||||
cache: false
|
||||
});
|
||||
|
||||
$(".div_wiki_circuit").each(function(d,e) {
|
||||
id = $(this).attr("id");
|
||||
name = id.substring(17);
|
||||
//alert(name);
|
||||
$("#"+id).load("/edit_circuit/"+name);
|
||||
f=this;
|
||||
});
|
||||
|
||||
$("#wiki_create_form").hide();
|
||||
|
||||
$("#create-article").click(function() {
|
||||
$("#wiki_create_form").slideToggle();
|
||||
$(this).parent().toggleClass("active");
|
||||
});
|
||||
|
||||
update_schematics();});
|
||||
</script>
|
||||
|
||||
|
||||
<%block name="bodyextra">
|
||||
<%block name="wiki_head"/>
|
||||
</%block>
|
||||
|
||||
<%include file="navigation.html" />
|
||||
|
||||
<section class="main-content">
|
||||
<div class="wiki-wrapper">
|
||||
<%block name="wiki_panel">
|
||||
|
||||
<div id="wiki_panel">
|
||||
<%
|
||||
if (wiki_article is not UNDEFINED):
|
||||
baseURL = reverse("wiki_view", args=[wiki_article.get_url()])
|
||||
else:
|
||||
baseURL = reverse("wiki_view", args=[""])
|
||||
%>
|
||||
|
||||
<ul class="action">
|
||||
<li>
|
||||
<div class="wiki_box_title">Search</div>
|
||||
<form method="POST" action='${reverse("wiki_search_articles", args=[""])}'>
|
||||
<div style="display:none">
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
|
||||
</div>
|
||||
<input type="text" name="value" id="wiki_search_input" style="width: 72%" value="${wiki_search_query if wiki_search_query is not UNDEFINED else '' |h}"/>
|
||||
<input type="submit" id="wiki_search_input_submit" value=Go! style="width: 20%" />
|
||||
</form>
|
||||
</li>
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_random", args=["wiki_articleget_url"])}'" value="Random article" class="button" />
|
||||
</li>
|
||||
|
||||
<li class="create-article">
|
||||
<h3>
|
||||
<a href="#" id="create-article"/>Create Article</a>
|
||||
</h3>
|
||||
|
||||
<div id="wiki_create_form">
|
||||
<%
|
||||
theaction = "this.wiki_article_name.value.replace(/([^a-zA-Z0-9\-])/g, '')+'/_create/'"
|
||||
if (wiki_article is not UNDEFINED):
|
||||
baseURL = reverse("wiki_view", args=[wiki_article.get_url()])
|
||||
else:
|
||||
baseURL = reverse("wiki_view", args=[""])
|
||||
%>
|
||||
|
||||
<form method="GET" onsubmit="this.action='${baseURL + "/' + " + theaction};">
|
||||
|
||||
<div>
|
||||
<label for="id_wiki_article_name">Title of article</label>
|
||||
<input type="text" name="wiki_article_name" id="id_wiki_article_name" /><br/>
|
||||
<!-- <label for="id_wiki_article_is_child">Create as a child of current article</label> -->
|
||||
<!-- <input type="checkbox" name="wiki_article_is_child" id="id_wiki_artcile_is_child" disabled="true" ${ 'checked="checked"' if wiki_article is not UNDEFINED else ""}> -->
|
||||
</div>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<input type="submit" class="button" value="Create" style="display: inline-block; margin-right: 2px; font-weight: bold;" />
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</%block>
|
||||
|
||||
<section class="wiki-body">
|
||||
<header>
|
||||
%if wiki_article is not UNDEFINED:
|
||||
%if wiki_article.locked:
|
||||
<p><strong>This article has been locked</strong></p>
|
||||
%endif
|
||||
<p>Last modified: ${wiki_article.modified_on.strftime("%b %d, %Y, %I:%M %p")}</p>
|
||||
%endif
|
||||
|
||||
%if wiki_article is not UNDEFINED:
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_view", args=[wiki_article.get_url()])}'" value="View" />
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_edit", args=[wiki_article.get_url()])}'" value="Edit" ${'disabled="true"' if not wiki_write else ""}/>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<input type="button" onclick="javascript:location.href='${reverse("wiki_history", args=[wiki_article.get_url(),1])}'" value="History" class="button" />
|
||||
</li>
|
||||
</ul>
|
||||
%endif
|
||||
</header>
|
||||
|
||||
<h1 class="wiki-title"><%block name="wiki_page_title"/></h1>
|
||||
|
||||
<%block name="wiki_body"/>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</%block>
|
||||
@@ -5,17 +5,15 @@
|
||||
<%block name="wiki_page_title">
|
||||
Create article
|
||||
</%block>
|
||||
|
||||
<%block name="wiki_body">
|
||||
<form method="POST" id="wiki_revision">
|
||||
<div style="display:none">
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
|
||||
</div>
|
||||
<table id="wiki_revision_table">
|
||||
${ wiki_form }
|
||||
<tr>
|
||||
<td colspan="2" align="right">
|
||||
<input type="submit" value="Create article" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="display:none">
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
|
||||
</div>
|
||||
|
||||
${ wiki_form }
|
||||
|
||||
<input type="submit" value="Create article" /></td>
|
||||
</form>
|
||||
</%block>
|
||||
|
||||
@@ -11,12 +11,9 @@ ${ wiki_article.title }
|
||||
<div style="display:none">
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value="${csrf_token}"/>
|
||||
</div>
|
||||
<table id="wiki_revision_table">
|
||||
${wiki_form}
|
||||
<tr>
|
||||
<td colspan="2" align="right">
|
||||
<input type="submit" value="Edit article" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
${wiki_form}
|
||||
|
||||
<input type="submit" value="Edit article" /></td>
|
||||
</form>
|
||||
</%block>
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
<%inherit file="simplewiki_base.html"/>
|
||||
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
%>
|
||||
|
||||
<%block name="wiki_page_title">
|
||||
Oops...
|
||||
</%block>
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
<%inherit file="simplewiki_base.html"/>
|
||||
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
%>
|
||||
|
||||
<%block name="wiki_page_title">
|
||||
${ wiki_article.title }
|
||||
</%block>
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
<%inherit file="simplewiki_base.html"/>
|
||||
|
||||
<%!
|
||||
from django.core.urlresolvers import reverse
|
||||
%>
|
||||
|
||||
<%block name="wiki_page_title">
|
||||
%if wiki_search_query:
|
||||
Search results for ${wiki_search_query | h}
|
||||
@@ -12,7 +16,7 @@
|
||||
|
||||
<%block name="wiki_body">
|
||||
%for article in wiki_search_results:
|
||||
%if article.get_url:
|
||||
%if article is not UNDEFINED:
|
||||
<a href="${reverse("wiki_view", args=[article.get_url()])}">${article.get_url()}</a><br/>
|
||||
%else:
|
||||
<a href="${reverse("wiki_view", args=[''])}">/</a><br/>
|
||||
@@ -20,6 +24,6 @@
|
||||
%endfor
|
||||
|
||||
%if not wiki_search_results:
|
||||
No articles were found!
|
||||
No articles matching <b>${wiki_search_query if wiki_search_query is not UNDEFINED else ""} </b>!
|
||||
%endif
|
||||
</%block>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
##This file is based on the template from the SimpleWiki source which carries the GPL license
|
||||
|
||||
##This file has been converted to Mako, but not tested. It is because uploads are disabled for the wiki. If they are reenabled, this may contain bugs.
|
||||
<%!
|
||||
from django.template.defaultfilters import filesizeformat
|
||||
%>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<%inherit file="simplewiki_base.html"/>
|
||||
|
||||
<%block name="wiki_page_title">
|
||||
${ wiki_article.title }
|
||||
${ wiki_article.title }
|
||||
</%block>
|
||||
<%block name="wiki_body">
|
||||
|
||||
<div id="wiki_article">
|
||||
${ wiki_article.current_revision.contents_parsed| n}
|
||||
</div>
|
||||
<%block name="wiki_body">
|
||||
<div id="wiki_article">
|
||||
${ wiki_article.current_revision.contents_parsed| n}
|
||||
</div>
|
||||
</%block>
|
||||
|
||||
13
textinput.html
Normal file
13
textinput.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<span>
|
||||
<input type="text" name="input_${id}" id="input_${id}" value="${value}" />
|
||||
<span id="answer_${id}"></span>
|
||||
% if state == 'unsubmitted':
|
||||
<span class="ui-icon ui-icon-bullet" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'correct':
|
||||
<span class="ui-icon ui-icon-check" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'incorrect':
|
||||
<span class="ui-icon ui-icon-close" style="display:inline-block;" id="status_${id}"></span>
|
||||
% elif state == 'incomplete':
|
||||
<span class="ui-icon ui-icon-close" style="display:inline-block;" id="status_${id}"></span>
|
||||
% endif
|
||||
</span>
|
||||
Reference in New Issue
Block a user