blob: 6047fc59ffc07db9d7d17efe0500d18dc443a12b (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
{% extends "base.html" %}
{% load static %}
{% block nav %}
<nav class="navbar navbar-expand-sm navbar-dark bg-primary fixed-top">
<a class="navbar-brand" href="{% url 'yaksh:index' %}">
<img src="{% static 'yaksh/images/yaksh_banner.png' %}" alt="YAKSH">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'yaksh:show_questions' %}">
Questions
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'yaksh:courses' %}">
Courses
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'yaksh:grade_user' %}">
Quizzes
</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{% url 'yaksh:view_notifications' %}">
<i class="fa fa-bell" style="size: 18px"></i> Notifications
{% if request.custom_notifications > 0 %}
<span class="badge badge-success badge-pill">
{{request.custom_notifications}}
</span>
{% endif %}
</a>
</li>
<li class="nav-item dropdown my-lg-0" style="font-size: 1.2rem">
<a class="dropdown-toggle nav-link" id="user_dropdown" data-toggle="dropdown" href="#">{{user.get_full_name|title}}
</a>
<div class="dropdown-menu dropdown-menu-right">
<a class="dropdown-item" href="{% url 'yaksh:edit_profile' %}">
<i class="fa fa-user"></i> My Profile
</a>
<div class="dropdown-divider"></div>
{% if user.profile.is_moderator %}
<a class="dropdown-item" href="{% url 'yaksh:toggle_moderator' %}"><i class="fa fa-exchange"></i>
Switch To Student
</a>
<div class="dropdown-divider"></div>
{% endif %}
<a class="dropdown-item" href="{% url 'password_change' %}">
<i class="fa fa-key"></i> Change Password
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" id="user_logout" href="{% url 'yaksh:logout' %}">
<i class="fa fa-sign-out"></i> Logout
</a>
</div>
</li>
</ul>
</div>
</nav>
<!-- iframe div for video embed -->
<div id="iframe_div" style="display: none;">
<iframe class="embed-responsive-item" id="video_frame" width="640" height="480" allowfullscreen>
</iframe>
</div>
<!-- end iframe div -->
<!-- Dialog to video embed -->
<div id="dialog_iframe" title="Embed Video URL" style="display: none;">
<div class="input-group mb-3">
<input id="url" name="url" type="text" required="true" class="form-control" placeholder="Enter video link">
<div class="input-group-append">
<input type="button" id="submit_info" name="submit_info" class="btn btn-primary" value="Submit" />
</div>
</div>
<div id="error_div" style="display: none;">
<b> Please enter URL</b>
</div>
<div id="copy_div">
<br>
<label>Paste HTML to embed in website:</label>
<textarea id="html_text" class="form-control" rows="5" cols="100"></textarea>
<br>
<a class="btn btn-secondary" id="copy" data-toggle="tooltip" title="Copy to Clipboard">
<i class="fa fa-clipboard" aria-hidden="true"></i>
</a>
</div>
</div>
<!-- end dialog -->
{% endblock %}
{% block content %}
<div class="container">
{% block main %}
{% endblock %}
</div>
{% endblock %}
{% block footer %}
{% endblock %}
|