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
roomlist
Commits
182b6bf0
Commit
182b6bf0
authored
Dec 05, 2015
by
Daniel W Bond
Browse files
Merge branch 'master' of git.gmu.edu:srct/roomlist
parents
713e7680
6432f9b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
roomlist/accounts/models.py
View file @
182b6bf0
...
@@ -211,9 +211,9 @@ class Student(TimeStampedModel):
...
@@ -211,9 +211,9 @@ class Student(TimeStampedModel):
#print("profile_image")
#print("profile_image")
if
len
(
fb_uid
)
>
0
:
if
len
(
fb_uid
)
>
0
:
return
"http://graph.facebook.com/{}/picture?width=175&height=175"
.
format
(
fb_uid
[
0
].
uid
)
return
"http
s
://graph.facebook.com/{}/picture?width=175&height=175"
.
format
(
fb_uid
[
0
].
uid
)
return
"http://
www
.gravatar.com/avatar/{}?s=175&d=mm"
.
format
(
hashlib
.
md5
(
self
.
user
.
email
).
hexdigest
())
return
"http
s
://
secure
.gravatar.com/avatar/{}?s=175&d=mm"
.
format
(
hashlib
.
md5
(
self
.
user
.
email
).
hexdigest
())
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'detail_student'
,
kwargs
=
{
'slug'
:
self
.
slug
})
return
reverse
(
'detail_student'
,
kwargs
=
{
'slug'
:
self
.
slug
})
...
...
roomlist/templates/layouts/base.html
View file @
182b6bf0
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<meta
name=
"description"
content=
"Find your on campus neighbors"
>
{% load staticfiles %}
<meta
name=
"description"
content=
"Find your on campus neighbors"
>
{% load staticfiles %}
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<link
href=
"/static/css/bootstrap.min.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"/static/css/bootstrap.min.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"/static/css/style.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"/static/css/style.css"
rel=
"stylesheet"
media=
"screen"
>
<link
href=
"/static/css/font-awesome.min.css"
rel=
"stylesheet"
>
<link
href=
"/static/css/font-awesome.min.css"
rel=
"stylesheet"
>
...
...
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