Newer
Older
Matthew Mongeau
committed
<%! from django.core.urlresolvers import reverse %>
<%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/>
<section class="container">
<section class="dashboard">
<section class="sidebar">
<header class="profile">
<section class="user-info">
<div class="avatar">
<img src="${static.url('images/profile.jpg')}" />
</div>
<section class="info">
<h3>Location: <span>${ user.profile.location }</span></h3>
<h3>Language: <span>${ user.profile.language }</span></h3>
</li>
</ul>
</section>
</section>
<section class="meta-info">
</section>
</header>
</section>
Galen Frechette
committed
<section class="my-courses">
<ol class="filters">
<li class="selected">
<h2>All <span class="count">3</span></h2>
</li>
<li>
<h2>Current <span class="count">3</span></h2>
</li>
<li>
<h2>Upcoming <span class="count">0</span></h2>
</li>
<li>
<h2>Completed <span class="count">0</span></h2>
</li>
</ol>
</nav>
Matthew Mongeau
committed
% if len(courses) > 0:
% for course in courses:
<article class="my-course">
<a href="${reverse('info', args=[course.id])}">
Matthew Mongeau
committed
<div class="cover">
<div class="shade"></div>
<div class="arrow"></div>
<img src="${static.url('images/history.png')}" />
Matthew Mongeau
committed
<section class="info">
<hgroup>
<h2>${course.title}</h2>
% for instructor in course.instructors:
<p>${instructor}, ${course.institution}</p>
% endfor
</hgroup>
<div class="edit">options</div>
<section class="meta">
<div class="complete">
<p>60% complete</p>
</div>
<div class="progress">
<div class="meter">
<div class="meter-fill"></div>
</div>
</div>
<div class="end-date">
<p>End date: <time>6/10/12</time></p>
</div>
</section>
</section>
</a>
</article>
% endfor
% else:
<p>You are not enrolled in any courses. <a href="${reverse('courses')}">Find some here</a>.</p>
% endif
Galen Frechette
committed
<article class="my-course">
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<div class="cover">
<div class="shade"></div>
<div class="arrow"></div>
<img src="${static.url('images/python.png')}" />
</div>
<section class="info">
<hgroup>
<h2>CS 102 Python</h2>
<p>Adam Smith, Harvard University</p>
</hgroup>
<div class="edit">options</div>
<section class="meta">
<div class="complete">
<p>60% complete</p>
</div>
<div class="progress">
<div class="meter">
<div class="meter-fill"></div>
</div>
</div>
<div class="end-date">
<p>End date: <time>6/10/12</time></p>
</div>
</section>
</section>
</a>
</article>
</section>
</section>
</section>