mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 13:39:41 -04:00
Move switch service out of black header
Also following the pattern work that Tim and Stephen have done.
This commit is contained in:
@@ -46,7 +46,7 @@
|
|||||||
.align-with-heading {
|
.align-with-heading {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: $gutter;
|
margin-top: 13px;
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
padding-right: 2px;
|
padding-right: 2px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,14 +56,16 @@ a {
|
|||||||
|
|
||||||
.column-main {
|
.column-main {
|
||||||
|
|
||||||
> .heading-large {
|
> .heading-large,
|
||||||
margin-top: $gutter;
|
> .heading-medium {
|
||||||
|
margin: 10px 0 15px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
> .grid-row {
|
> .grid-row:first-child {
|
||||||
|
|
||||||
.heading-large {
|
.heading-large,
|
||||||
margin-top: $gutter;
|
.heading-medium {
|
||||||
|
margin: 10px 0 15px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,17 +2,35 @@
|
|||||||
|
|
||||||
padding: 0 $gutter 0 0;
|
padding: 0 $gutter 0 0;
|
||||||
|
|
||||||
|
&-service {
|
||||||
|
|
||||||
|
padding: 11px 0 9px 0;
|
||||||
|
border-bottom: 1px solid $border-colour;
|
||||||
|
margin: 0 0 10px;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
@include bold-19;
|
||||||
|
margin: 0 0 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-switch {
|
||||||
|
@include core-16;
|
||||||
|
text-align: right;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 13px 0 9px 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
@include core-19;
|
@include core-19;
|
||||||
margin: 10px 0 0 0;
|
margin: 10px 0 0 0;
|
||||||
list-style-type: none;
|
list-style-type: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
|
||||||
@include bold-19;
|
|
||||||
margin: $gutter 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
||||||
&:link,
|
&:link,
|
||||||
|
|||||||
@@ -11,6 +11,11 @@
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
> .heading-medium {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.keyline-block {
|
.keyline-block {
|
||||||
|
|||||||
@@ -45,9 +45,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('main.user_profile') }}">{{ current_user.name }}</a>
|
<a href="{{ url_for('main.user_profile') }}">{{ current_user.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="{{ url_for('main.choose_service') }}">Switch service</a>
|
|
||||||
</li>
|
|
||||||
{% if current_user.has_permissions(admin_override=True) %}
|
{% if current_user.has_permissions(admin_override=True) %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url_for('main.platform_admin') }}">Platform admin</a>
|
<a href="{{ url_for('main.platform_admin') }}">Platform admin</a>
|
||||||
|
|||||||
@@ -42,9 +42,6 @@
|
|||||||
{% endcall %}
|
{% endcall %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<nav class="navigation">
|
<nav class="navigation">
|
||||||
<h2 class="navigation-service-name">
|
|
||||||
{{ current_service.name }}
|
|
||||||
</h2>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">Dashboard</a></li>
|
<li><a href="{{ url_for('.service_dashboard', service_id=current_service.id) }}">Dashboard</a></li>
|
||||||
{% if current_user.has_permissions(['view_activity', 'manage_templates', 'manage_api_keys'], admin_override=True, any_=True) %}
|
{% if current_user.has_permissions(['view_activity', 'manage_templates', 'manage_api_keys'], admin_override=True, any_=True) %}
|
||||||
|
|||||||
@@ -1,6 +1,12 @@
|
|||||||
{% extends "admin_template.html" %}
|
{% extends "admin_template.html" %}
|
||||||
|
|
||||||
{% block fullwidth_content %}
|
{% block fullwidth_content %}
|
||||||
|
<div class="navigation-service">
|
||||||
|
<h2 class="navigation-service-name">
|
||||||
|
{{ current_service.name }}
|
||||||
|
</h2>
|
||||||
|
<a href="{{ url_for('main.choose_service') }}" class="navigation-service-switch">Switch service</a>
|
||||||
|
</div>
|
||||||
<div class="grid-row">
|
<div class="grid-row">
|
||||||
<div class="column-one-third">
|
<div class="column-one-third">
|
||||||
{% include "main_nav.html" %}
|
{% include "main_nav.html" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user