| |
@@ -2,51 +2,26 @@
|
| |
|
| |
{% block title %}{{ hub.name }}{% endblock %}
|
| |
{% block content %}
|
| |
- <div class="header">
|
| |
- {% if hub.user_hub %}
|
| |
- <div class="padded center-block medium-wide">
|
| |
- <img src="{{ hub.avatar }}" class="avatar" />
|
| |
- <h3>{{ hub.name }}</h3>
|
| |
- <h5>{{ hub.summary }}</h5>
|
| |
- <div class="clearfix"></div>
|
| |
- </div>
|
| |
- {% else %}
|
| |
- <div class="img-wrap">
|
| |
- <img src="{{ hub.header_img }}" />
|
| |
- </div>
|
| |
- <h3 class="team">{{ hub.name }}</h3>
|
| |
- {% endif %}
|
| |
- </div>
|
| |
|
| |
- {%- with messages = get_flashed_messages(with_categories=true) -%}
|
| |
- {%- if category, messages -%}
|
| |
- <div class="container">
|
| |
- <div class="row">
|
| |
- <div class="col-md-6 col-md-offset-3">
|
| |
- <ul id="flashes" class="list-group">
|
| |
- {%- for category, message in messages -%}
|
| |
- <div class="alert {%
|
| |
- if category == 'error' %}alert-warning{%
|
| |
- else %}alert-info{%
|
| |
- endif %} alert-dismissible" role="alert">
|
| |
- <button type="button" class="close" data-dismiss="alert"
|
| |
- aria-label="Close">
|
| |
- <span aria-hidden="true">×</span>
|
| |
- <span class="sr-only">Close</span>
|
| |
- </button>
|
| |
- {{ message }}
|
| |
- </div>
|
| |
- {%- endfor -%}
|
| |
- </ul>
|
| |
- </div>
|
| |
+ <header class="p-t-2">
|
| |
+ <div class="container">
|
| |
+
|
| |
+ <!-- Left side of header -->
|
| |
+ <div class="col-md-8">
|
| |
+ {% if hub.user_hub %}
|
| |
+ <img src="{{ hub.avatar }}" class="avatar" />
|
| |
+ <h2 class="user m-b-0">{{ hub.name }}</h2>
|
| |
+ <h5 class="m-t-1 m-b-1">{{ hub.summary }}</h5>
|
| |
+ <div class="clearfix"></div>
|
| |
+ {% else %}
|
| |
+ <h2 class="team">{{ hub.name }}</h2>
|
| |
+ <h5 class="m-t-1 m-b-1">{{ hub.summary }}</h5>
|
| |
+ {% endif %}
|
| |
</div>
|
| |
- </div>
|
| |
- {%- endif -%}
|
| |
- {%- endwith -%}
|
| |
|
| |
- <div class="container">
|
| |
- {% if g.auth.logged_in and hub.is_admin(g.auth.user) %}
|
| |
- <div class="row">
|
| |
+ <!-- right side of header -->
|
| |
+ <div class="col-md-4 header-right">
|
| |
+ {% if g.auth.logged_in and hub.is_admin(g.auth.user) %}
|
| |
{% if not edit %}
|
| |
<div class="dropdown edit pull-xs-right showpointer">
|
| |
<span class="dropdown-toggle edit-this-page" type="button"
|
| |
@@ -75,11 +50,43 @@
|
| |
Save changes
|
| |
</div>
|
| |
{% endif %}
|
| |
+ {% endif %}
|
| |
</div>
|
| |
- {% endif %}
|
| |
+ </div>
|
| |
+
|
| |
+ </header>
|
| |
+
|
| |
|
| |
+ {%- with messages = get_flashed_messages(with_categories=true) -%}
|
| |
+ {%- if category, messages -%}
|
| |
+ <div class="container">
|
| |
+ <div class="row">
|
| |
+ <div class="col-md-6 col-md-offset-3">
|
| |
+ <ul id="flashes" class="list-group">
|
| |
+ {%- for category, message in messages -%}
|
| |
+ <div class="alert {%
|
| |
+ if category == 'error' %}alert-warning{%
|
| |
+ else %}alert-info{%
|
| |
+ endif %} alert-dismissible" role="alert">
|
| |
+ <button type="button" class="close" data-dismiss="alert"
|
| |
+ aria-label="Close">
|
| |
+ <span aria-hidden="true">×</span>
|
| |
+ <span class="sr-only">Close</span>
|
| |
+ </button>
|
| |
+ {{ message }}
|
| |
+ </div>
|
| |
+ {%- endfor -%}
|
| |
+ </ul>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ </div>
|
| |
+ {%- endif -%}
|
| |
+ {%- endwith -%}
|
| |
|
| |
+ <div class="container">
|
| |
+
|
| |
<div class="row">
|
| |
+
|
| |
<div class="col-md-{{ hub.left_width }}">
|
| |
<!--
|
| |
First, before the proper widgets.. a cobweb built-in widget.
|
| |
This makes the bookmarks bar vertical and cleans up some style issues that the vertical bookmarks bar exposed.