summaryrefslogtreecommitdiff
path: root/yaksh/templates/user.html
blob: 1fb61d6d46625d9a4a8e828a6f792ab730a50be9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends "base.html" %}
{% block css%}
    <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/dashboard.css" type="text/css" />
{% endblock %}
{% block nav %}
    <nav class="navbar navbar-fixed-top navbar-inverse">
      <div class="container">
        <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
                  <span class="icon-bar"></span>
              </button>

          <a class="navbar-brand" href="{{ URL_ROOT }}/exam/manage/">
            <img src="{{ URL_ROOT }}/static/yaksh/images/yaksh_crane.png" alt="YAKSH" style="max-width: 5%">
          </img>
          </a>
        </div>
        <div class= "collapse navbar-collapse" id="navbar">
          <ul class="nav navbar-nav navbar-right">
              <li><a href="{{ URL_ROOT }}/exam/viewprofile"> {{ user.get_full_name.title }} </a></li>
              <li><a style='cursor:pointer' id='logout' onClick='location.replace("{{URL_ROOT}}/exam/logout/");'> <span class="glyphicon glyphicon-log-out">Logout </span></a></li>
          </ul>
        </div><!-- /.navbar -->
      </div><!-- /.container -->
    </nav><!-- /.navbar -->
{% endblock %}
{% block content %}
<div class="row">
    <div class="col-sm-3 col-md-2 sidebar">
      <ul class="nav nav-sidebar">
        <li><a href="{{ URL_ROOT }}/exam/quizzes"> Home </a></li>
        <li><a href="{{ URL_ROOT }}/exam/quizzes/enrolled/"> Enrolled Courses </a></li>
        <li><a href="{{ URL_ROOT }}/exam/viewprofile"> Profile </a></li>
        <li><a href="{{ URL_ROOT }}/exam/reset/changepassword"> Change Password </a></li>
      </ul>
    </div>
    <div class="col-sm-8 col-sm-offset-3 col-md-9 col-md-offset-2 main">
    <div class="row">
        {% block main %}
        {% endblock %}
    </div>
    </div>
</div>
{% endblock %}
{% if user %}
  {% block info %}
  <h5>{{user.get_full_name|title}}({{user.profile.roll_number}}) Logged in as {{user.username}}</h5>
  {% endblock %}
{% endif %}