From 42bc64ed5f9b0f50b6795fb030bbfcd786f5ef05 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Mon, 13 Jan 2014 22:35:56 -0500 Subject: [PATCH] Nicer profile page --- karmaworld/assets/css/dashboard.css | 13 +++- karmaworld/assets/css/global.css | 42 ++++++++++++- karmaworld/templates/header.html | 13 +++- karmaworld/templates/user_profile.html | 87 +++++++++++++++++++++++--- 4 files changed, 141 insertions(+), 14 deletions(-) diff --git a/karmaworld/assets/css/dashboard.css b/karmaworld/assets/css/dashboard.css index 5d63e1f..4e17480 100644 --- a/karmaworld/assets/css/dashboard.css +++ b/karmaworld/assets/css/dashboard.css @@ -8,14 +8,15 @@ /* STATS */ #stats_container { - height: 130px; + height: 180px; + margin-bottom: 20px; } .stat_lead_in { padding-top: 25px; font-family: "MuseoSlab-900"; - font-size: 8px; + font-size: 11px; text-transform: uppercase; } @@ -168,3 +169,11 @@ text-align: center; padding: 20px 0; } + +#no_activity +{ + font-family: "MuseoSlab-900"; + font-size: 10px; + color: #8e8e8e; + margin-bottom: 20px; +} \ No newline at end of file diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index 962c112..dfe23a9 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -107,7 +107,8 @@ input[type="text"]:focus, textarea:focus padding-bottom: 16px; } -#login_container a +#login_container > a, +#login_container > i { float: right; padding-left: 15px; @@ -119,6 +120,42 @@ input[type="text"]:focus, textarea:focus color: #f05a28; } +#user_dropdown_container +{ + position: relative; + top: 4px; + display: none; + z-index: 5; +} + +#user_dropdown +{ + list-style: none; + background-color: #424446; + padding: 10px; + margin: 10px; +} + +#user_dropdown li +{ + text-align: right; + font-size: 17px; + font-family: "MuseoSlab-500"; +} + +#user_dropdown li:hover +{ + text-align: right; + font-size: 17px; + font-family: "MuseoSlab-500"; + background-color: #909499; +} + +#user_dropdown li a +{ + color: inherit; +} + #login_box { margin-top: 15px; @@ -416,7 +453,6 @@ a.course_link, a.course_link:hover, a.school_link, a.school_link:hover, a.prof_l .row_alt_on { background: url(../img/dashboard_activity_alt_on_bg.gif); - padding: 5px 0; } .activity_details_action, .activity_details_action a @@ -424,6 +460,7 @@ a.course_link, a.course_link:hover, a.school_link, a.school_link:hover, a.prof_l font-family: "MuseoSlab-300"; font-size: 22px; line-height: 1.4em; + padding: 5px 0; } .note_name, .note_name a @@ -462,6 +499,7 @@ a.activity_target:hover font-size: 11px; text-transform: uppercase; line-height: 200%; + padding: 5px 0; } .activity_details_callout diff --git a/karmaworld/templates/header.html b/karmaworld/templates/header.html index 502cda2..8f3acea 100644 --- a/karmaworld/templates/header.html +++ b/karmaworld/templates/header.html @@ -37,7 +37,18 @@
{% if request.user.is_authenticated %} - Log Out + +
+ +
+ {% else %} Log In {% endif %} diff --git a/karmaworld/templates/user_profile.html b/karmaworld/templates/user_profile.html index 39654aa..acc53bd 100644 --- a/karmaworld/templates/user_profile.html +++ b/karmaworld/templates/user_profile.html @@ -1,17 +1,86 @@ -{% extends "account/base.html" %} +{% extends "base.html" %} {% load url from future %} {% load account %} -{% block head_title %} +{% block pagescripts %} + +{% endblock %} + +{% block title %} Your KarmaNotes Profile {% endblock %} {% block content %} -

Hello there,
{% user_display user %}.

-

Here are the notes that you've uploaded:

- +
+
+
+
+ {% user_display user %} +
+
+
+
+ you've uploaded +
+
+
+
+ {{ user.note_set.count }} +
+
+
+
+ notes +
+
+
+ +
+ +
+
+ latest activity +
+
+ + {% if not user.note_set.all %} +
+
+

Nothing to show here yet.

+
+
+ {% endif %} + + {% for note in user.note_set.all %} + +
+
+ +
+ +
+
+ {{ note.uploaded_at|date:"D b j Y" }} +
+
+ You uploaded {{ note.name }} +
+ +
+ +
+ +
+
+ + {% endfor %} + +
+ + + +
+ {% endblock %} -- 2.25.1