From 4327dd92c06a9ba55ea7959609814382fdf3f8b0 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Oct 16 2014 21:24:59 +0000 Subject: Minor changes on user settigns page, add profile button --- diff --git a/progit/static/images/profile_button.png b/progit/static/images/profile_button.png new file mode 100644 index 0000000..461990c Binary files /dev/null and b/progit/static/images/profile_button.png differ diff --git a/progit/static/images/profile_button_hover.png b/progit/static/images/profile_button_hover.png new file mode 100644 index 0000000..73bb7ed Binary files /dev/null and b/progit/static/images/profile_button_hover.png differ diff --git a/progit/static/progit.css b/progit/static/progit.css index e7d64a4..1c8568c 100644 --- a/progit/static/progit.css +++ b/progit/static/progit.css @@ -47,6 +47,7 @@ table.list thead th, .project_list > header, [id=fork_button]:hover, [id=settings_button]:hover, +[id=profile_button]:hover, .fgradient{ color: white; background: #426ead; /* Old browsers */ @@ -77,7 +78,8 @@ div.horizontal-menu li { height: 100%; } -div.horizontal-menu a { +div.horizontal-menu a, +#profile_button a { color: #4D4D4D; display: block; font-size: 1.1em; @@ -544,12 +546,13 @@ a.user_settings { float: right; } -#fork_button, #settings_button { +#fork_button, #settings_button, #profile_button { border-radius: 10px; } #fork_button a, -#settings_button a { +#settings_button a, +#profile_button a { background-position: 8px 50%; background-repeat: no-repeat; margin-top: .2em; @@ -565,8 +568,13 @@ a.user_settings { background-image: url(images/settings_button.png); } +#profile_button a { + background-image: url(images/profile_button.png); +} + #fork_button:hover a, -#settings_button:hover a { +#settings_button:hover a, +#profile_button:hover a { color: white; } @@ -577,3 +585,11 @@ a.user_settings { #settings_button:hover a { background-image: url(images/settings_button_hover.png); } + +#profile_button:hover a { + background-image: url(images/profile_button_hover.png); +} + +#profile_button { + display: inline-block; +} diff --git a/progit/templates/user_settings.html b/progit/templates/user_settings.html index 64dbec3..a39e94a 100644 --- a/progit/templates/user_settings.html +++ b/progit/templates/user_settings.html @@ -1,16 +1,15 @@ {% extends "master.html" %} {% from "_formhelper.html" import render_field_in_cell %} -{% block title %}Settings {{username}}{% endblock %} +{% block title %}{{ user.user }}'s settings{% endblock %} {%block tag %}users{% endblock %} {% block content %} - -

Setting {{ user.user }}

- -
+
+

{{ user.user }}'s settings

+
@@ -43,11 +42,11 @@ {{ form.csrf_token }}

- + - {% endblock %}