From f3162a3bf43bb7aa49196e72ecac27385c103c57 Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Wed, 9 Apr 2014 21:19:20 -0400 Subject: [PATCH] Messages on page headers, link colors, some nicer account pages --- karmaworld/assets/css/global.css | 56 ++++++++- karmaworld/templates/404.html | 0 karmaworld/templates/500.html | 0 karmaworld/templates/account/base.html | 4 + karmaworld/templates/account/email.html | 110 +++++++++--------- karmaworld/templates/account/login.html | 46 ++++---- karmaworld/templates/base.html | 2 +- karmaworld/templates/footer.html | 2 +- karmaworld/templates/header.html | 17 ++- karmaworld/templates/notes/note_detail.html | 2 +- .../templates/notes/search_results.html | 2 +- .../templates/socialaccount/connections.html | 65 +++++------ karmaworld/templates/user_profile.html | 12 +- 13 files changed, 186 insertions(+), 132 deletions(-) delete mode 100644 karmaworld/templates/404.html delete mode 100644 karmaworld/templates/500.html diff --git a/karmaworld/assets/css/global.css b/karmaworld/assets/css/global.css index bbe8c05..65468d2 100644 --- a/karmaworld/assets/css/global.css +++ b/karmaworld/assets/css/global.css @@ -37,6 +37,7 @@ p { #header-login-nav { text-align: right; + color: #ffffff; background: #000000; padding: 3px 0 3px 0; } @@ -77,7 +78,8 @@ label.inline-label display: inline; } -button { +button, +.button { color: white; border: none; padding: 10px; @@ -92,13 +94,17 @@ button.important { } button:hover, -button:focus { +button:focus, +.button:hover, +.button:focus { background: #f1592a; } button.disabled, button.disabled:hover, -button.disabled:focus { +button.disabled:focus +.button.disable:hover, +.button.disabled:focus, { background: #333333; color: #bcbdc0; cursor: default; @@ -108,16 +114,37 @@ button.inline-button { display: inline; } +.joyride-content-wrapper .button { + background-color: #008CBA; +} + +a, +a:hover, +a:focus, +a:visited { + color: #802e16; +} + a { - color: inherit; text-decoration: none; } -a:hover { - color: #802e16; +a:hover, +a:focus { text-decoration: underline; } +a.inherit-color { + color: inherit; +} + +.inherit-color a { + color: inherit; +} + +.underline a { + text-decoration: underline; +} span.table-school { font-weight: bold; @@ -154,6 +181,10 @@ table.dataTable div.data-table-entry { margin: 20px 0 20px 0; } +table.dataTable a { + color: inherit; +} + .even { background: #fafafa; border-top: 1px solid #f0f0f0; @@ -202,4 +233,17 @@ dl.tabs dd a { div.tabs-content { margin-top: -1px; border-top: 1px solid #dfdfdf; +} + +div.message-container { + margin: 20px 0 0 0; +} + +ul.socialaccount_providers { + list-style-type: none; +} + +ul.socialaccount_providers li{ + display: inline; + margin: 0 5px 0 5px; } \ No newline at end of file diff --git a/karmaworld/templates/404.html b/karmaworld/templates/404.html deleted file mode 100644 index e69de29..0000000 diff --git a/karmaworld/templates/500.html b/karmaworld/templates/500.html deleted file mode 100644 index e69de29..0000000 diff --git a/karmaworld/templates/account/base.html b/karmaworld/templates/account/base.html index fee6871..fa9f975 100644 --- a/karmaworld/templates/account/base.html +++ b/karmaworld/templates/account/base.html @@ -9,4 +9,8 @@ + {% block extra_body %} + {% endblock %} {% endblock %} + + diff --git a/karmaworld/templates/account/email.html b/karmaworld/templates/account/email.html index d25882e..d37dd3d 100644 --- a/karmaworld/templates/account/email.html +++ b/karmaworld/templates/account/email.html @@ -6,69 +6,65 @@ {% block head_title %}{% trans "Account" %}{% endblock %} {% block content %} -

{% trans "E-mail Addresses" %}

-{% if user.emailaddress_set.all %} -

{% trans 'The following e-mail addresses are associated with your account:' %}

- -
-{% csrf_token %} -
- - {% for emailaddress in user.emailaddress_set.all %} -
- -
- {% endfor %} - -
- - - -
- -
-
+

{% trans "E-mail Addresses" %}

+ {% if user.emailaddress_set.all %} +

{% trans 'The following e-mail addresses are associated with your account:' %}

+ +
+ {% csrf_token %} +
+ + {% for emailaddress in user.emailaddress_set.all %} +
+ +
+ {% endfor %} + +
+ + + +
+ +
+
-{% else %} -

{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

+ {% else %} +

{% trans 'Warning:'%} {% trans "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}

+ {% endif %} -{% endif %} +

{% trans "Add E-mail Address" %}

-

{% trans "Add E-mail Address" %}

- -
- {% csrf_token %} - {{ form.as_p}} - -
+
+ {% csrf_token %} + {{ form.as_p}} + +
{% endblock %} - {% block extra_body %} - + {% endblock %} diff --git a/karmaworld/templates/account/login.html b/karmaworld/templates/account/login.html index 6857607..4897ff4 100644 --- a/karmaworld/templates/account/login.html +++ b/karmaworld/templates/account/login.html @@ -8,35 +8,33 @@ {% block content %} -

{% trans "Sign In" %}

+

{% trans "Sign In" %}

-{% if socialaccount.providers %} -

You can sign in to KarmaNotes with any of the existing accounts you might have below. -Or, sign up for a KarmaNotes account and sign in below.

+ {% if socialaccount.providers %} +

You can sign in to KarmaNotes with any of the existing accounts you might have below. + Or, sign up for a KarmaNotes account and sign in below.

-
+
-
    - {% include "socialaccount/snippets/provider_list.html" with process="login" %} -
+
    + {% include "socialaccount/snippets/provider_list.html" with process="login" %} +
- +
-
- -{% else %} -

{% blocktrans %}If you have not created an account yet, then please -sign up first.{% endblocktrans %}

-{% endif %} - -
- {% csrf_token %} - {{ form.as_p }} - {% if redirect_field_value %} - + {% else %} +

{% blocktrans %}If you have not created an account yet, then please + sign up first.{% endblocktrans %}

{% endif %} - {% trans "Forgot Password?" %} - -
+ +
+ {% csrf_token %} + {{ form.as_p }} + {% if redirect_field_value %} + + {% endif %} + {% trans "Forgot Password?" %} + +
{% endblock %} diff --git a/karmaworld/templates/base.html b/karmaworld/templates/base.html index 52b25b9..109c495 100644 --- a/karmaworld/templates/base.html +++ b/karmaworld/templates/base.html @@ -4,7 +4,7 @@ - KarmaNotes -- {% block title %}{% endblock %} + KarmaNotes -- {% block title %}{% endblock %}{% block head_title %}{% endblock %} diff --git a/karmaworld/templates/footer.html b/karmaworld/templates/footer.html index 331cbf3..f07d114 100644 --- a/karmaworld/templates/footer.html +++ b/karmaworld/templates/footer.html @@ -1,6 +1,6 @@ {% load url from future %} -