From 039023bd0dbbd1bd5fdce50c11cef77f64b006fd Mon Sep 17 00:00:00 2001 From: Máirín Duffy Date: Sep 28 2016 19:04:33 +0000 Subject: issue #256 - fixing hubs template so vertical nav doesn't obscure header --- diff --git a/hubs/static/css/style.css b/hubs/static/css/style.css index fe40b05..77714a6 100644 --- a/hubs/static/css/style.css +++ b/hubs/static/css/style.css @@ -80,8 +80,8 @@ /* line up header with cards below */ header .container { - padding-left: 1.75rem !important; - } + padding-left: 1.75rem !important; + } header img.avatar { width: 70px; @@ -277,11 +277,8 @@ font-size: 32pt; .nav { background-color: #fcfcfc; + min-height: 180px; padding: 1.5rem; - position: absolute; - z-index: 3; - min-height: 200px; - float: left; } /* navbar fedora-bootstrap overrides to make it vertical */ diff --git a/hubs/templates/hubs.html b/hubs/templates/hubs.html index 3ab75a9..9de8638 100644 --- a/hubs/templates/hubs.html +++ b/hubs/templates/hubs.html @@ -3,24 +3,25 @@ {% block title %}{{ hub.name }}{% endblock %} {% block content %} -
- -
-
-
- - -
- {% if hub.user_hub %} - -

{{ hub.name }}

-
{{ hub.summary }}
-
- {% else %} -

{{ hub.name }}

-
{{ hub.summary }}
- {% endif %} -
- - -
- {% if g.auth.logged_in and hub.is_admin(g.auth.user) %} - {% if not edit %} + +
+
+ + +
+ {% if hub.user_hub %} + +

{{ hub.name }}

+
{{ hub.summary }}
+
+ {% else %} +

{{ hub.name }}

+
{{ hub.summary }}
+ {% endif %} +
+ + +
+ {% if g.auth.logged_in and hub.is_admin(g.auth.user) %} + {% if not edit %} - {% else %} + {% else %}
Save changes
- {% endif %} - {% endif %} + {% endif %} + {% endif %} +
+
-
- -
- - -{%- with messages = get_flashed_messages(with_categories=true) -%} - {%- if category, messages -%} -
-
-
-
    - {%- for category, message in messages -%} - - {%- endfor -%} -
-
-
-
- {%- endif -%} -{%- endwith -%} - -
- -
- -
- - {% if hub.archived or hub.last_refreshed | days_since > 31 %} -
    -
  • -
    - {% if hub.archived %} - - {% else %} - - {% endif %} + + Close + + {{ message }} +
    + {%- endfor -%} +
-
- {% if hub.archived %} - This hub has been archived and locked. - {% else %} - Cobweb alert! This hub was last active {{ - hub.last_refreshed | days_since }} days ago. +
+ {%- endif -%} + {%- endwith -%} + + +
+ + {% if hub.archived or hub.last_refreshed | days_since > 31 %} +
    +
  • +
    + {% if hub.archived %} + + {% else %} + + {% endif %} +
    +
    + {% if hub.archived %} + This hub has been archived and locked. + {% else %} + Cobweb alert! This hub was last active {{ + hub.last_refreshed | days_since }} days ago. + {% endif %} +
    +
  • +
{% endif %} + + {% if edit %} +
+
+ +
- - - {% endif %} + {% endif %} - {% if edit %} -
-
-
-

- - Add a widget - -

+
+ {% for widget in hub.left_widgets %} +
+ {% endfor %}
-
- {% endif %} -
- {% for widget in hub.left_widgets %} -
- {% endfor %} -
-
- -
- {% if edit %} - + {% endif %} + +
+ {% for widget in hub.right_widgets %} +
+ {% endfor %}
-
- {% endif %} -
- {% for widget in hub.right_widgets %} -
- {% endfor %} -
+
+ +
- - + + + + + +