diff --git a/profile.html b/profile.html
index fd5b3ef0ab..a126ad1fe9 100644
--- a/profile.html
+++ b/profile.html
@@ -108,7 +108,7 @@ $(function() {
%>
- ${ section['section'] } ${"({0}/{1}) {2}".format( earned, total, percentageString )}
+ ${ section['section'] } ${"({0:g}/{1:g}) {2}".format( earned, total, percentageString )}
${section['subtitle']}
%if 'due' in section and section['due']!="":
due ${section['due']}
@@ -118,7 +118,7 @@ $(function() {
${ "Problem Scores: " if section['graded'] else "Practice Scores: "}
%for score in section['scores']:
- ${ score[0] }/${ score[1] }
+ ${"{0:g}/{1:g}".format(score[0],score[1])}
%endfor
%endif
diff --git a/profile_graphs.js b/profile_graphs.js
index 502c3c1469..5ffbde5521 100644
--- a/profile_graphs.js
+++ b/profile_graphs.js
@@ -58,7 +58,7 @@ $(function () {
color: colors[${sectionIndex}].toString(),
});
ticks = ticks.concat( [ [${tickIndex}, "${section['totallabel']}"] ] );
- detail_tooltips["${section['category']} Average"] = [ "${section['totalscore']['summary']}" ];
+ detail_tooltips["${section['category']} Total"] = [ "${section['totalscore']['summary']}" ];
<% tickIndex += 1 + sectionSpacer %>
%else: ##This is for sections like midterm or final, which have no smaller components
diff --git a/sass/wiki/_wiki.scss b/sass/wiki/_wiki.scss
index 5de3851cd0..850099fc4e 100644
--- a/sass/wiki/_wiki.scss
+++ b/sass/wiki/_wiki.scss
@@ -3,7 +3,10 @@ div.wiki-wrapper {
width: 100%;
section.wiki-body {
+ @extend .clearfix;
@extend .content;
+ position: relative;
+
header {
@extend .topbar;
@@ -73,27 +76,70 @@ div.wiki-wrapper {
}
}
- h1.wiki-title {
- font-weight: bold;
- padding-bottom: 10px;
- margin-bottom: 20px;
- border-bottom: 1px solid #ccc;
- }
+ h2.wiki-title {
+ margin-top: 0;
+ margin-bottom: 15px;
+ width: flex-grid(4, 9);
+ padding-right: flex-gutter(9);
+ border-right: 1px dashed #ddd;
+ @include box-sizing(border-box);
+ display: table-cell;
+ vertical-align: top;
+
+ @media screen and (max-width:1120px) {
+ display: block;
+ width: auto;
+ border-right: 0;
+ }
+
+ @media print {
+ display: block;
+ width: auto;
+ border-right: 0;
+ }
+ }
p {
line-height: 1.6em;
}
- ul.article-list {
- margin-left: 15px;
+ section.results {
+ display: table-cell;
+ width: flex-grid(5, 9);
+ padding-left: flex-gutter(9);
- li {
- margin: 10px 0;
- list-style-image: url('/static/images/bullet-triangle.png');
+ @media screen and (max-width:1120px) {
+ display: block;
+ width: auto;
+ padding: 0;
+ }
- h3 {
- font-size: 18px;
- font-weight: normal;
+ @media print {
+ display: block;
+ width: auto;
+ padding: 0;
+
+ canvas, img {
+ page-break-inside: avoid;
+ }
+ }
+
+ ul.article-list {
+ margin-left: 15px;
+
+ li {
+ list-style: none;
+ margin: 0;
+ padding: 10px 0;
+ border-bottom: 1px solid #eee;
+
+ &:last-child {
+ border-bottom: 0;
+ }
+ h3 {
+ font-size: 18px;
+ font-weight: normal;
+ }
}
}
}
diff --git a/simplewiki_base.html b/simplewiki_base.html
index 996e59a9cd..0f08d612c8 100644
--- a/simplewiki_base.html
+++ b/simplewiki_base.html
@@ -127,8 +127,8 @@
-
-
+
+
@@ -163,8 +163,7 @@
%endif
- <%block name="wiki_page_title"/>
-
+ <%block name="wiki_page_title"/>
<%block name="wiki_body"/>
diff --git a/simplewiki_create.html b/simplewiki_create.html
index a2161a22a7..6903c5ecd2 100644
--- a/simplewiki_create.html
+++ b/simplewiki_create.html
@@ -5,7 +5,7 @@
<%block name="title">Create Article - MITx 6.002 Wiki %block>
<%block name="wiki_page_title">
-Create article
+Create article
%block>
<%block name="wiki_body">
diff --git a/simplewiki_edit.html b/simplewiki_edit.html
index 54fe13fe24..50cc33d20c 100644
--- a/simplewiki_edit.html
+++ b/simplewiki_edit.html
@@ -5,7 +5,7 @@
<%block name="title">${"Edit " + wiki_title + " - " if wiki_title is not UNDEFINED else ""}MITx 6.002 Wiki %block>
<%block name="wiki_page_title">
-${ wiki_article.title }
+${ wiki_article.title }
%block>
<%block name="wiki_head">
diff --git a/simplewiki_error.html b/simplewiki_error.html
index 8b7324a998..73408349eb 100644
--- a/simplewiki_error.html
+++ b/simplewiki_error.html
@@ -10,7 +10,7 @@
<%block name="wiki_page_title">
-Oops...
+Oops...
%block>
diff --git a/simplewiki_history.html b/simplewiki_history.html
index ddee16c1f6..9b7c9e11db 100644
--- a/simplewiki_history.html
+++ b/simplewiki_history.html
@@ -9,7 +9,9 @@
%>
<%block name="wiki_page_title">
+
${ wiki_article.title }
+
%block>
<%block name="wiki_body">
diff --git a/simplewiki_searchresults.html b/simplewiki_searchresults.html
index ee67f365ff..0b47bc08a2 100644
--- a/simplewiki_searchresults.html
+++ b/simplewiki_searchresults.html
@@ -9,14 +9,17 @@ from django.core.urlresolvers import reverse
%>
<%block name="wiki_page_title">
+
%if wiki_search_query:
Search results for ${wiki_search_query | h}
%else:
Displaying all articles
%endif
+
%block>
<%block name="wiki_body">
+
%for article in wiki_search_results:
<% article_deleted = not article.current_revision.deleted == 0 %>
@@ -27,4 +30,5 @@ Displaying all articles
No articles matching ${wiki_search_query if wiki_search_query is not UNDEFINED else ""} !
%endif
+
%block>
diff --git a/simplewiki_view.html b/simplewiki_view.html
index ef7b02d6b2..0421214a59 100644
--- a/simplewiki_view.html
+++ b/simplewiki_view.html
@@ -5,7 +5,7 @@
<%block name="title">${wiki_title + " - " if wiki_title is not UNDEFINED else ""}MITx 6.002 Wiki %block>
<%block name="wiki_page_title">
- ${ wiki_article.title } ${'- Deleted Revision! ' if wiki_current_revision_deleted else ''}
+ ${ wiki_article.title } ${'- Deleted Revision! ' if wiki_current_revision_deleted else ''}
%block>
<%block name="wiki_body">