course_info.html 2.38 KB
Newer Older
1
<%!
2
    from django.utils.translation import ugettext as _
3
    from django.template.defaultfilters import escapejs
4
%>
5
<%inherit file="base.html" />
Mark Hoeber committed
6
<%def name="online_help_token()"><% return "updates" %></%def>
7 8
<%namespace name='static' file='static_content.html'/>

9
<!-- TODO decode course # from context_course into title -->
David Baumgold committed
10
<%block name="title">${_("Course Updates")}</%block>
11
<%block name="bodyclass">is-signedin course course-info updates view-updates</%block>
12

13
<%block name="header_extras">
14
<link rel="stylesheet" type="text/css" href="${static.url('js/vendor/timepicker/jquery.timepicker.css')}" />
15
% for template_name in ["course_info_update", "course_info_handouts"]:
16 17 18 19 20
  <script type="text/template" id="${template_name}-tpl">
    <%static:include path="js/${template_name}.underscore" />
  </script>
% endfor
</%block>
21

22 23 24 25
<%block name="requirejs">
  require(["js/factories/course_info"], function(CourseInfoFactory) {
      CourseInfoFactory("${updates_url}", "${handouts_locator | escapejs}", "${base_asset_url}");
  });
26 27 28
</%block>

<%block name="content">
29
  <div class="wrapper-mast wrapper">
30
    <header class="mast has-actions has-subtitle">
Brian Talbot committed
31
      <h1 class="page-header">
David Baumgold committed
32 33
        <small class="subtitle">${_("Content")}</small>
        <span class="sr">&gt; </span>${_("Course Updates")}
Brian Talbot committed
34
      </h1>
35 36

      <nav class="nav-actions">
David Baumgold committed
37
        <h3 class="sr">${_('Page Actions')}</h3>
38 39
        <ul>
          <li class="nav-item">
David Baumgold committed
40
            <a href="#" class=" button new-button new-update-button"><i class="icon-plus"></i> ${_('New Update')}</a>
41 42 43 44 45 46
          </li>
        </ul>
      </nav>
    </header>
  </div>

47 48 49
  <div class="wrapper-content wrapper">
    <section class="content">
      <div class="introduction">
50
        <p clas="copy">${_('Use course updates to notify students of important dates or exams, highlight particular discussions in the forums, announce schedule changes, and respond to student questions. You add or edit updates in HTML.')}</p>
51 52 53 54
      </div>
    </section>
  </div>

55 56
  <div class="main-wrapper">
    <div class="inner-wrapper">
57
      <div class="course-info-wrapper">
Tom Giannattasio committed
58 59
        <div class="main-column window">
          <article class="course-updates" id="course-update-view">
60 61 62
            <ol class="update-list" id="course-update-list"></ol>
          </article>
        </div>
63
        <div class="sidebar course-handouts" id="course-handouts-view"></div>
64
      </div>
65 66
    </div>
  </div>
Brian Talbot committed
67
</%block>