Get SASS compilation working

Main thing that was missing was including the main CSS file in the template.

There are a few hacky bits here, like moving the whole of toolkit inside the
stylesheets directory.

Would arguably be cleaner using something that isn’t Flask Assets, but that’s
something for later.
This commit is contained in:
Chris Hill-Scott
2015-12-10 15:57:32 +00:00
parent 2f980ab622
commit a5f4580a7f
8 changed files with 431 additions and 432 deletions

View File

@@ -1,5 +1,10 @@
{% extends "govuk_template.html" %}
{% block head %}
{% assets "css_all" %}
<link rel="stylesheet" href="{{ ASSET_URL }}" />
{% endassets %}
{% endblock %}
{% block page_title %}
GOV.UK notifications admin
@@ -12,9 +17,9 @@ GOV.UK notifications admin
{% block inside_header %}
<div class="phase-banner-beta">
<strong class="phase-tag">BETA</strong>
</div>
{% endblock %}
@@ -27,4 +32,3 @@ GOV.UK notifications admin
{% else %}
{% set homepage_url = url_for('main.dashboard') %}
{% endif %}

View File

@@ -1,7 +1,8 @@
{% extends "admin_template.html" %}
{% from "components/sms-message.html" import sms_message %}
{% block page_title %}
GOV.UK Notify | Send text messages
GOV.UK Notify | Send text messages
{% endblock %}
{% block content %}
@@ -11,7 +12,7 @@ GOV.UK Notify | Send text messages
<h1 class="heading-xlarge">Send text messages</h1>
<p>This page will be where we construct text messages</p>
{{ sms_message("hi") }}
<p>
<a class="button" href="check-sms" role="button">Continue</a>
</p>