Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
934cf61e
Commit
934cf61e
authored
Jan 27, 2015
by
Daniel W Bond
Browse files
preliminary work on student page
parent
052b4523
Changes
2
Hide whitespace changes
Inline
Side-by-side
bookshare/core/templates/profile.html
View file @
934cf61e
{% extends 'layouts/base.html' %}
{% load website_extras %}
{% comment %}
{% load website_extras %}
{% endcomment %}
{% block title %}
SRCT Bookshare
•
Seller Profile
SRCT Bookshare
•
{{ student.user.first_name }} {{ student.user.last_name }}
{% endblock %}
{% block content %}
{% load gravatar %}
<script>
function
insert_target
(
source
,
target
){
var
element
=
document
.
getElementById
(
source
);
...
...
@@ -15,30 +17,36 @@ function insert_target( source, target ){
</script>
<div
class=
"page-header"
id=
"banner"
>
<legend>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<h1>
{{ seller.user.first_name }} {{ seller.user.last_name }}
{% if seller.user = request.user %}
(me)
<div
class=
"col-md-1"
>
<img
class=
"img-circle img-responsive"
src=
"{% gravatar_url student.user.email 75 %}"
>
</div>
<div
class=
"col-lg-7 col-md-6"
>
<h2><strong>
{{ student.user.first_name }} {{ student.user.last_name }}
</strong></h2>
</div>
<div
class=
"col-lg-2 col-md-3"
>
{% if student.rating %}
<h3><a
href=
"#students-ratings-history"
>
<i
class=
"fa fa-star"
></i>
<i
class=
"fa fa-star"
></i>
<i
class=
"fa fa-star"
></i>
<i
class=
"fa fa-star-o"
></i>
<i
class=
"fa fa-star-o"
></i>
</h3></a>
{% else %}
<em>
{{ student.user.first_name }} has no ratings yet.
</em>
{% endif %}
<span
class=
"pull-right"
>
<a
href=
"mailto:{{ seller.user.email }}"
>
{ contact }
</a>
</span></h1>
<p
class=
"lead"
>
{% if seller.rating %}
<span
class=
"glyphicon glyphicon-star"
></span>
<span
class=
"glyphicon glyphicon-star"
></span>
<span
class=
"glyphicon glyphicon-star"
></span>
<span
class=
"glyphicon glyphicon-star-empty"
></span>
<span
class=
"glyphicon glyphicon-star-empty"
></span>
{% else %}
No ratings yet.
{% endif %}
</p>
</div>
<div
class=
"col-md-2"
>
<h3><a
href=
"mailto:{{ student.user.email }}"
><i
class=
"fa fa-envelope"
></i>
{{ student.user.username }}
</a></h3>
</div>
</div>
</legend>
</div>
{% comment %}
<div
class=
"row"
>
<div
class=
"col-md-12"
>
...
...
@@ -283,4 +291,6 @@ aria-labelledby="DeleteLookoutLabel" aria-hidden="true">
{% include 'create_lookout_modal.html' %}
{% endcomment %}
{% endblock %}
bookshare/core/urls.py
View file @
934cf61e
...
...
@@ -7,6 +7,6 @@ urlpatterns = patterns('',
DetailStudent
.
as_view
(
model
=
Student
,
context_object_name
=
'student'
,
template_name
=
'
detailStudent
'
),
template_name
=
'
profile.html
'
),
name
=
'profile'
),
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment