Commit 99f4f732 by Reda Lemeden

Fixed the layout of the graph gradebook

--HG--
branch : bridger-grades
parent d8b59614
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<script type="text/javascript" src="/static/js/flot/jquery.flot.js"></script> <script type="text/javascript" src="/static/js/flot/jquery.flot.js"></script>
<script type="text/javascript" src="/static/js/flot/jquery.flot.stack.js"></script> <script type="text/javascript" src="/static/js/flot/jquery.flot.stack.js"></script>
<script type="text/javascript" src="/static/js/flot/jquery.flot.symbol.js"></script> <script type="text/javascript" src="/static/js/flot/jquery.flot.symbol.js"></script>
% for s in students: % for s in students:
<script> <script>
${profile_graphs.body(s['grade_info']['grade_summary'], "grade-detail-graph-" + str(s['id']))} ${profile_graphs.body(s['grade_info']['grade_summary'], "grade-detail-graph-" + str(s['id']))}
...@@ -15,12 +14,17 @@ ...@@ -15,12 +14,17 @@
<%include file="navigation.html" args="active_page=''" /> <%include file="navigation.html" args="active_page=''" />
<section class="main-content"> <section class="main-content">
<div class="gradebook-wrapper"> <div class="gradebook-wrapper">
<section class="gradebook-content"> <section class="gradebook-content">
<h1>Gradebook</h1>
<ol>
% for s in students: % for s in students:
<li>
<h2><a href=/profile/${s['id']}>${s['username']}</a></h2> <h2><a href=/profile/${s['id']}>${s['username']}</a></h2>
<div id="grade-detail-graph-${s['id']}" style="width:1000px;height:300px;"></div> <div id="grade-detail-graph-${s['id']}" style="width:1000px;height:300px;"></div>
</li>
% endfor % endfor
</ol>
</section> </section>
</div> </div>
</section> </section>
...@@ -7,5 +7,31 @@ div.gradebook-wrapper { ...@@ -7,5 +7,31 @@ div.gradebook-wrapper {
h1 { h1 {
@extend .top-header; @extend .top-header;
} }
> ol {
list-style: none;
margin-top: lh();
> li {
@extend .clearfix;
border-bottom: 1px solid #e3e3e3;
display: table;
padding: lh() 0;
width: 100%;
&:last-child {
border-bottom: 0px;
}
h2 {
border-right: 1px dashed #ddd;
@include box-sizing(border-box);
display: table-cell;
margin: 0;
padding: 0;
width: flex-grid(2, 9);
vertical-align: top;
}
}
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment