From 8b8698eff5bda8afa94a5e597756125bb11cf150 Mon Sep 17 00:00:00 2001 From: jpope Date: Sun, 5 Jan 2014 20:47:36 -0600 Subject: [PATCH] start moving more to skeleton --- mediagoblin/static/css/base.css | 9 - mediagoblin/templates/mediagoblin/base.html | 194 ++++++++++---------- 2 files changed, 98 insertions(+), 105 deletions(-) diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index f998bbb3..ae4c42fc 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -105,17 +105,8 @@ input, textarea { /* website structure */ -.container { - margin: auto; -/* width: 96%;*/ - max-width: 940px; -} - header { width: 100%; - max-width: 940px; - margin-left: auto; - margin-right: auto; padding: 0; margin-bottom: 42px; border-bottom: 1px solid #333; diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html index ecc24f89..2d6f03d9 100644 --- a/mediagoblin/templates/mediagoblin/base.html +++ b/mediagoblin/templates/mediagoblin/base.html @@ -54,110 +54,112 @@ {% include 'mediagoblin/bits/body_start.html' %} {% block mediagoblin_body %} {% block mediagoblin_header %} -
- {%- include "mediagoblin/bits/logo.html" -%} - {% block mediagoblin_header_title %}{% endblock %} -
- {%- if request.user %} - {% if request.user and - request.user.has_privilege('active') and - not request.user.is_banned() %} +
+
+ {%- include "mediagoblin/bits/logo.html" -%} + {% block mediagoblin_header_title %}{% endblock %} +
+ {%- if request.user %} + {% if request.user and + request.user.has_privilege('active') and + not request.user.is_banned() %} - {% set notification_count = get_notification_count(request.user.id) %} - {% if notification_count %} - - {{ notification_count }} + {% set notification_count = get_notification_count(request.user.id) %} + {% if notification_count %} + + {{ notification_count }} + {% endif %} + + + {% elif request.user and not request.user.has_privilege('active') %} + {# the following link should only appear when verification is needed #} + + {% trans %}Verify your email!{% endtrans %} + or {% trans %}log out{% endtrans %} + {% elif request.user and request.user.is_banned() %} + {% trans %}log out{% endtrans %} + {% endif %} + {%- elif auth %} + - - {% elif request.user and not request.user.has_privilege('active') %} - {# the following link should only appear when verification is needed #} - - {% trans %}Verify your email!{% endtrans %} - or {% trans %}log out{% endtrans %} - {% elif request.user and request.user.is_banned() %} - {% trans %}log out{% endtrans %} - {% endif %} - {%- elif auth %} - - {%- trans %}Log in{% endtrans -%} - - {%- endif %} -
-
- {% if request.user and request.user.has_privilege('active') %} -
-

- - {% trans user_url=request.urlgen('mediagoblin.user_pages.user_home', - user=request.user.username), - user_name=request.user.username -%} - {{ user_name }}'s account - {%- endtrans %} - - · - {%- trans %}Change account settings{% endtrans -%} - · - - {%- trans %}Media processing panel{% endtrans -%} + > + {%- trans %}Log in{% endtrans -%} - · - {% template_hook("blog_dashboard_home") %} - {% trans %}Log out{% endtrans %} -

- - {%- trans %}Add media{% endtrans -%} - - - {%- trans %}Create new collection{% endtrans -%} - - {% if request.user.has_privilege('admin','moderator') %} + {%- endif %} +
+
+ {% if request.user and request.user.has_privilege('active') %} +

- Moderation powers: - - {%- trans %}Media processing panel{% endtrans -%} - + + {% trans user_url=request.urlgen('mediagoblin.user_pages.user_home', + user=request.user.username), + user_name=request.user.username -%} + {{ user_name }}'s account + {%- endtrans %} + · - - {%- trans %}User management panel{% endtrans -%} - + {%- trans %}Change account settings{% endtrans -%} · - - {%- trans %}Report management panel{% endtrans -%} + + {%- trans %}Media processing panel{% endtrans -%} + · + {% template_hook("blog_dashboard_home") %} + {% trans %}Log out{% endtrans %}

- {% endif %} - {% include 'mediagoblin/fragments/header_notifications.html' %} -
- {% endif %} -
+ + {%- trans %}Add media{% endtrans -%} + + + {%- trans %}Create new collection{% endtrans -%} + + {% if request.user.has_privilege('admin','moderator') %} +

+ Moderation powers: + + {%- trans %}Media processing panel{% endtrans -%} + + · + + {%- trans %}User management panel{% endtrans -%} + + · + + {%- trans %}Report management panel{% endtrans -%} + +

+ {% endif %} + {% include 'mediagoblin/fragments/header_notifications.html' %} +
+ {% endif %} +
+ {% endblock %}
{% include 'mediagoblin/bits/above_content.html' %} -- 2.25.1