Commit 8338031f by Calen Pennington

Switch to mako templates

parent a333612c
...@@ -4,26 +4,26 @@ ...@@ -4,26 +4,26 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link rel="stylesheet" href="{{ STATIC_URL }}/css/base-style.css"> <link rel="stylesheet" href="${ STATIC_URL }/css/base-style.css">
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/js/markitup/skins/simple/style.css" /> <link rel="stylesheet" type="text/css" href="${ STATIC_URL }/js/markitup/skins/simple/style.css" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}/js/markitup/sets/wiki/style.css" /> <link rel="stylesheet" type="text/css" href="${ STATIC_URL }/js/markitup/sets/wiki/style.css" />
<title>{% block title %}{% endblock %}</title> <title><%block name="title"></%block></title>
<meta name="viewport" content="width=device-width,initial-scale=1"> <meta name="viewport" content="width=device-width,initial-scale=1">
</head> </head>
<body> <body>
{% include "widgets/header.html"%} <%include file="widgets/header.html"/>
{% block content %}{% endblock %} <%block name="content"></%block>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}/js/markitup/jquery.markitup.js"></script> <script type="text/javascript" src="${ STATIC_URL }/js/markitup/jquery.markitup.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}/js/markitup/sets/wiki/set.js"></script> <script type="text/javascript" src="${ STATIC_URL }/js/markitup/sets/wiki/set.js"></script>
<script src="{{ STATIC_URL }}/js/main.js"></script> <script src="${ STATIC_URL }/js/main.js"></script>
<script src="{{ STATIC_URL }}/js/jquery.inlineedit.js"></script> <script src="${ STATIC_URL }/js/jquery.inlineedit.js"></script>
<script src="{{ STATIC_URL }}/js/jquery.leanModal.min.js"></script> <script src="${ STATIC_URL }/js/jquery.leanModal.min.js"></script>
<script src="{{ STATIC_URL }}/js/jquery.tablednd.js"></script> <script src="${ STATIC_URL }/js/jquery.tablednd.js"></script>
</body> </body>
</html> </html>
......
{% extends "base.html" %} <%inherit file="base.html" />
{% block title %}Course Manager{% endblock %} <%block name="title">Course Manager</%block>
{% block content %} <%block name="content">
<section class="main-container"> <section class="main-container">
{% include "widgets/navigation.html"%} <%include file="widgets/navigation.html"/>
<section class="main-content"> <section class="main-content">
{% include "widgets/week-edit.html"%} <%include file="widgets/week-edit.html"/>
{% include "widgets/week-new.html"%} <%include file="widgets/week-new.html"/>
{% include "widgets/video-edit.html"%} <%include file="widgets/video-edit.html"/>
{% include "widgets/video-new.html"%} <%include file="widgets/video-new.html"/>
{% include "widgets/problem-edit.html"%} <%include file="widgets/problem-edit.html"/>
{% include "widgets/problem-new.html"%} <%include file="widgets/problem-new.html"/>
</section> </section>
</section> </section>
{% endblock %} </%block>
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
Speed Speed
<li class="speed"> <li class="speed">
0.75x 0.75x
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li class="speed">Normal <li class="speed">Normal
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li class="speed">1.25x <li class="speed">1.25x
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li class="speed">1.5x <li class="speed">1.5x
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li style="background: #eee;" ><a href="#upload" rel="leanModal" class="new-upload">+</a></li> <li style="background: #eee;" ><a href="#upload" rel="leanModal" class="new-upload">+</a></li>
</ul> </ul>
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
</p> </p>
</div> </div>
<div class="caption-box"> <div class="caption-box">
{% include "widgets/captions.html" %} <%include file="captions.html"/>
{% include "widgets/save-captions.html" %} <%include file="save-captions.html"/>
</div> </div>
</li> </li>
...@@ -9,16 +9,16 @@ ...@@ -9,16 +9,16 @@
Speed Speed
<li class="speed"> <li class="speed">
0.75x 0.75x
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li class="speed">Normal <li class="speed">Normal
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li class="speed">1.25x <li class="speed">1.25x
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li class="speed">1.5x <li class="speed">1.5x
{% include "widgets/speed-tooltip.html" %} <%include file="speed-tooltip.html"/>
</li> </li>
<li style="background: #eee;" ><a href="#upload" rel="leanModal" class="new-upload">+</a></li> <li style="background: #eee;" ><a href="#upload" rel="leanModal" class="new-upload">+</a></li>
</ul> </ul>
...@@ -30,6 +30,6 @@ ...@@ -30,6 +30,6 @@
</p> </p>
</div> </div>
<div style="margin-top: 30px;"> <div style="margin-top: 30px;">
{% include "widgets/captions.html" %} <%include file="captions.html"/>
</div> </div>
</li> </li>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
<section class="used-videos" style="overflow: visible;"> <section class="used-videos" style="overflow: visible;">
<ul id="used"> <ul id="used">
<div class="title"><h4>Video clip in use</h4></div> <div class="title"><h4>Video clip in use</h4></div>
{% include "widgets/video-box.html" %} <%include file="video-box.html"/>
</ul> </ul>
<p class="no-video">No video clip used. Select one from the list below, <a>upload</a> a new one or <a>import</a> an already uploaded video.</p> <p class="no-video">No video clip used. Select one from the list below, <a>upload</a> a new one or <a>import</a> an already uploaded video.</p>
</section> </section>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<div class="step no-title"> <div class="step no-title">
<section class="meta unused-videos"style="overflow: visible;" > <section class="meta unused-videos"style="overflow: visible;" >
<ul id="unused"> <ul id="unused">
{% include "widgets/video-box-unused.html" %} <%include file="video-box-unused.html"/>
</ul> </ul>
</section> </section>
</div> </div>
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
<aside id="video-selector" class="hidden"> <aside id="video-selector" class="hidden">
<input type="text" placeholder="Search video files..." /> <input type="text" placeholder="Search video files..." />
<ul class="raw-videos"> <ul class="raw-videos">
{% include "widgets/raw-videos.html" %} <%include file="raw-videos.html"/>
</ul> </ul>
</aside> </aside>
...@@ -140,7 +140,7 @@ ...@@ -140,7 +140,7 @@
</div> </div>
<div id="view"> <div id="view">
<img src="{{ STATIC_URL }}/img/video.jpg" /> <img src="${ STATIC_URL }/img/video.jpg" />
</div> </div>
<div id="upload"> <div id="upload">
......
{% block content %} <%block name="content">
<section class="week-edit"> <section class="week-edit">
<header> <header>
<h1 class="editable">Week 3</h1> <h1 class="editable">Week 3</h1>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<li>Problem title 13</li> <li>Problem title 13</li>
<li>Problem title 14</li> <li>Problem title 14</li>
<li>Video 3</li> <li>Video 3</li>
{% include "widgets/new-module.html"%} <%include file="new-module.html"/>
</ul> </ul>
</section> </section>
...@@ -80,4 +80,4 @@ ...@@ -80,4 +80,4 @@
</section> </section>
</section> </section>
</section> </section>
{% endblock %} </%block>
{% block content %} <%block name="content">
<section class="week-new"> <section class="week-new">
<header> <header>
<h1>Week 6</h1> <h1>Week 6</h1>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<h2>Scratchpad</h2> <h2>Scratchpad</h2>
</header> </header>
<ul> <ul>
{% include "widgets/new-module.html"%} <%include file="new-module.html"/>
</ul> </ul>
</section> </section>
</section> </section>
...@@ -59,4 +59,4 @@ ...@@ -59,4 +59,4 @@
</section> </section>
</section> </section>
</section> </section>
{% endblock %} </%block>
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