blob: cebac2c45ba1dff1b2c6f2d0ced77828bf1c4a18 (
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
|
{% load static %}
<!doctype html>
<html>
<head>
<title>{{ page.heading }} | python.fossee.in</title>
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/bootstrap-theme.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/main.css'%}">
</head>
<body>
<div id="page-wrapper">
{% block page %}
{% block header %}
<div id="header-wrapper">
<div id="header-inner">
<div id="branding" class="pull-left">
<a href="http://python.fossee.in" style="text-decoration: none; color: #424242">
<img id="brand-logo" src="{% static 'images/pylogo.png' %}">
<span id="brand-text">Python</span>
</a>
</div>
<ul id="main-nav" class="nav nav-pills pull-right">
{% for nav in navs %}
{% with subnavs=nav.subnav_set.all %}
{% if nav.link|slice:":4" == "http" or nav.link == "#" %}
<li>
<a href="{{ nav.link }}">
{% else %}
<li class="dropdown">
{% if subnavs|length > 0 %}
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
{% else %}
<a href="{% url 'website:dispatcher' nav.link %}">
{% endif %}
{% endif %}
{{ nav.nav_name }} {% if subnavs|length > 0 %} <span class="caret"></span> {% endif %}
</a>
{% if subnavs|length > 0 %}
<ul class="dropdown-menu pull-right">
{% for subnav in subnavs %}
<li><a href="{% url 'website:dispatcher' subnav.link %}">{{ subnav.subnav_name }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endwith %}
{% endfor %}
</ul>
<div class="clearfix"></div>
</div> <!-- /header-inner -->
</div> <!-- /header-wrapper -->
{% endblock %}
{% block content %}
<div id="content-wrapper">
<div id="content-inner" class="row">
<div id="content" class="col-lg-10">
<h3>{{ page.heading }} </h3>
<p>
{{ page.content|safe }}
</p>
</div> <!-- /content -->
<div id="sidebar" class="col-lg-2">
{% for block in sidebar %}
{% if block.linkbox_name %}
<div class="block">
<h5 class="block-heading">{{ block.linkbox_name }}</h4>
<ul>
{% for link in block.link_set.all|dictsort:"position" %}
{% if link.link|slice:":4" == "http" or nav.link == "#" %}
<li><a href="{{link.link}}">{{ link.link_name }}</a></li>
{% else %}
<li><a href="{% url 'website:dispatcher' link.link %}">{{ link.link_name }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div> <!-- /block -->
{% endif %}
{% if block.textbox_name %}
<div class="block">
<h5 class="block-heading">{{ block.textbox_name }}</h4>
<p>
{{ block.content|safe }}
</p>
</div> <!-- /block -->
{% endif %}
{% endfor %}
</div> <!-- /sidebar -->
<div class="clearfix"></div>
</div> <!-- /content-inner -->
</div> <!-- /content-wrapper -->
{% endblock %}
<div id="extra-wrapper">
<div id="extra-inner" class="row">
<!-- /future use -->
</div> <!-- /extra-inner -->
</div> <!-- /extra-wrapper -->
{% block footer %}
<div id="footer-wrapper">
<div id="footer-inner">
{% for block in footer %}
{% if block.linkbox_name %}
<div class="foot col-lg-4">
<h5 class="foot-heading">{{ block.linkbox_name }}</h4>
<ul>
{% for link in block.link_set.all|dictsort:"position" %}
{% if link.link|slice:":4" == "http" or link.link == "#" %}
<li><a href="{{ link.link }}">{{ link.link_name }}</a></li>
{% else %}
<li><a href="{% url 'website:dispatcher' link.link %}">{{ link.link_name }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div> <!-- /foot -->
{% endif %}
{% if block.textbox_name %}
<div class="foot col-lg-4">
<h5 class="foot-heading">{{ block.textbox_name }}</h4>
<p>
{{ block.content|safe }}
</p>
</div> <!-- /foot -->
{% endif %}
{% endfor %}
<div class="clearfix"></div>
<img id="django-logo" src="{% static 'images/django-logo.png' %}">
</div> <!-- /footer-inner -->
</div> <!-- /footer-wrapper -->
<center>
Sponsored by:<br>
National Mission on Education through ICT<br>
MHRD<br>
<a href="http://www.sakshat.ac.in" target="_blank">http://www.sakshat.ac.in</a>
</center>
{% endblock %}
{% endblock %}
</div> <!-- /page-wrapper -->
<script src="{% static 'js/jquery.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script type="text/javascript">
</script>
</body>
</html>
|