Skip to content

Commit

Permalink
Add MOJ internal service header (#405)
Browse files Browse the repository at this point in the history
* Add MOJ internal service header

The main links are now in a primary nav component.

This should go below the phase banner as the banner is supposed to touch
the black header.

I've also changed the phase from alpha -> beta, and changed the
capitalization in the service name.

* Remove commented out html
  • Loading branch information
MatMoore authored Jun 10, 2024
1 parent 61765b4 commit d0b6db0
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 58 deletions.
2 changes: 1 addition & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
}
}
# Define a service name setting for page titles
SERVICE_NAME = "Find MOJ Data"
SERVICE_NAME = "Find MOJ data"
GOV_UK_SUFFIX = "GOV.UK"

MAX_RESULTS = 10_000
Expand Down
22 changes: 0 additions & 22 deletions templates/base/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,7 @@
{% endblock %}

{% include "base/navigation.html" %}

<div class="govuk-width-container app-width-container">
<div class="govuk-phase-banner" role="region">
<p class="govuk-phase-banner__content">
<strong class="govuk-tag govuk-phase-banner__content__tag">Alpha</strong>
{% if ENV == "dev" %}
<strong class="govuk-tag govuk-tag--yellow govuk-phase-banner__content__tag">{{ ENV|title }}</strong>
{% endif %}
{% if ENV == "test" %}
<strong class="govuk-tag govuk-tag--green govuk-phase-banner__content__tag">{{ ENV|title }}</strong>
{% endif %}
{% if ENV == "preprod" %}
<strong class="govuk-tag govuk-tag--blue govuk-phase-banner__content__tag">{{ ENV|title }}</strong>
{% endif %}
<!--<span class="govuk-phase-banner__text">
This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.
</span>-->
<span class="govuk-phase-banner__text">
This service is currently in development and feedback is being gathered through user research.
</span>
</p>
</div>

{% block breadcrumbs %}
{% endblock breadcrumbs %}

Expand Down
Loading

0 comments on commit d0b6db0

Please sign in to comment.