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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
|
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<title>
{% block title %}
Python Textbook Companion Project | FOSSEE, IIT Bombay
{% endblock %}
</title>
{% block meta %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
{% endblock %}
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}" type="text/css" />
<link rel ="stylesheet" href="{% static 'css/responsive.css' %}" type="text/css"/>
<style>
.module-list {
float: left;
height: 220px;
margin-top: 20px;
margin-bottom: 20px;
margin-left: 50px;
padding: 10px;
padding-bottom: 25px;
position: relative;
width: 300px;
background: #2c3e50;
}
.module-list img {
height: 220px;
}
.module-list img:hover{
height: 220px;
border-radius: 15px;
}
.module-list a{
color: #ffffff;
}
.navbar .container {
max-width: 1100px;
}
#content-wrap{
max-width: 1100px;
margin: 0 auto;
}
input[type="text"] {
width: 100%;
}
input[type="password"] {
width: 100%;
}
</style>
{% block css %}
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
</style>
{% endblock %}
</head>
<body>
<div class="navbar navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="/">Python Textbook Companion</a>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://fossee.in" target="_blank">FOSSEE</a></li>
<li><a href="http://python.fossee.in" target="_blank">Python Team</a></li>
</ul>
</li>
<li><a href="{% url 'tbc:InternshipForms' %}">Internship Forms</a></li>
{% if user %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ user.first_name }}<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="{% url 'tbc:SubmitProposal' %}">Submit Proposal</a></li>
<li><a href="{% url 'tbc:SubmitSample' %}">Submit Sample Notebook</a></li>
<li><a href="{% url 'tbc:SubmitCode' %}">Submit Codes</a></li>
<li><a href="{% url 'tbc:UpdateBook' %}">Update Submission</a></li>
<li><a href="{% url 'tbc:UpdatePassword' %}">Update Password</a></li>
<li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
</ul>
</li>
{% endif %}
{% if reviewer %}
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ reviewer.first_name }} {{ reviewer.last_name }} <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="{% url 'tbc:BookReview' %}">Review Books</a></li>
<li><a href="{% url 'tbc:ReviewProposals' %}">Review Proposals</a></li>
<li><a href="{% url 'tbc:UserLogout' %}">Logout</a></li>
</ul>
</li>
{% endif %}
{% if anonymous %}
<li><a href="{% url 'tbc:UserLogin' %}">Login</a></li>
<li><a href="{% url 'tbc:UserRegister' %}">Sign Up</a></li>
{% endif %}
</ul> <!--/.nav -->
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
{% block content %}
{% if up %}
<center>
<div class="alert" style="width:500px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>Book has been uploaded successfully !</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if login %}
<center>
<div class="alert" style="width:150px;height:23px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>Login Successful !</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if logout %}
<center>
<div class="alert" style="width:300px;height:23px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>You have logged out successfully !</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if update_book %}
<center>
<div class="alert" style="width:300px;height:23px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>Book has been updated successfully !</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if not_found %}
<center>
<div class="alert" style="width:650px;height:23px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>It seems that currently there is no book that you can update ! Please submit one.</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if proposal_submitted %}
<center>
<div class="alert" style="width:650px;height:40px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>Thank you for showing interest in contributing to Python TBC. <br>We have recevied your proposal. Please be patient we will get back to you within few days.</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if proposal_pending %}
<center>
<div class="alert" style="width:650px;height:40px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>You either have a proposal pending or you are already working on a book. You cannot submit a proposal at this moment.</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if no_book_alloted %}
<center>
<div class="alert" style="width:400px;height:25px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>There is no book alloted to you. You cannot submit codes.</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
{% if sample_notebook %}
<center>
<div class="alert" style="width:550px;height:40px;">
<a class="close" data-dismiss="alert" href="#">×</a>
<p>Sample notebook has been submitted successfully. Please be patient while the reviewer reviews your codes & get backs to you.</p>
</div>
</center>
<div class="clearfix"></div>
{% endif %}
<div class="row-fluid">
<center><h3>Recent Submissions</h3></center>
{% for item in items %}
<div class ="module-list">
<a href="{% url 'tbc:BookDetails' item.book.id %}"><img src="{% static 'uploads/' %}{{ item.image.image }}"></a>
<center><a href="{% url 'tbc:BookDetails' item.book.id %}">{{ item.book.title }}</a></center>
</div>
{% endfor %}
</div>
<br>
<center>
<a class="btn btn-primary" href="{% url 'tbc:BrowseBooks' %}">Browse All Books</a>
</center>
<br>
<!--
<input type=text> <input type=submit value=Search>
-->
{% endblock %}
<hr>
<footer>
<center><p>© FOSSEE - IIT Bombay 2013</p></center>
<center><img src="{% static 'images/fossee.png' %}" width=100 height=70></center>
</footer>
</div> <!-- /container -->
<script src="{% static 'js/jquery.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<!-- google analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-44697375-2', 'fossee.in');
ga('send', 'pageview');
</script>
<!-- / google analytics -->
{% block script %}
{% endblock %}
</body>
</html>
|