diff options
author | Dave Arter <davea@mysociety.org> | 2015-12-14 13:04:59 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2016-03-29 17:49:37 +0100 |
commit | ecb7e0ff7f75344d313c152a47790b32cbcf32b4 (patch) | |
tree | 9c84541e92a5c6e8ecb5e9d5171d0932962a47ac /templates/web | |
parent | dedeb93becf9fc5b6cdb05972f3fcd7064678164 (diff) |
[Angus] Cobrand module, templates & design
This adds a cobrand for Angus Council that fits in with their
existing styling on angus.gov.uk
Diffstat (limited to 'templates/web')
-rw-r--r-- | templates/web/angus/angus_search.html | 6 | ||||
-rw-r--r-- | templates/web/angus/around/intro.html | 1 | ||||
-rw-r--r-- | templates/web/angus/footer.html | 27 | ||||
-rw-r--r-- | templates/web/angus/front/footer-marketing.html | 24 | ||||
-rw-r--r-- | templates/web/angus/header.html | 68 | ||||
-rw-r--r-- | templates/web/angus/main_menu.html | 24 | ||||
-rw-r--r-- | templates/web/angus/post_header_extra.html | 14 | ||||
-rw-r--r-- | templates/web/angus/report/new/after_category.html | 0 | ||||
-rw-r--r-- | templates/web/angus/report/new/category_at_top.html | 1 |
9 files changed, 165 insertions, 0 deletions
diff --git a/templates/web/angus/angus_search.html b/templates/web/angus/angus_search.html new file mode 100644 index 000000000..f519b8f4f --- /dev/null +++ b/templates/web/angus/angus_search.html @@ -0,0 +1,6 @@ +<form action="//www.angus.gov.uk/site/scripts/google_results.aspx" method="get" id="search" class="form form__search"> + <div> + <input size="18" maxlength="40" class="field" name="q" id="SearchSite" placeholder="Explore Angus Council" type="text"> + <input value="Search" class="button button__primary" type="submit"> + </div> +</form> diff --git a/templates/web/angus/around/intro.html b/templates/web/angus/around/intro.html new file mode 100644 index 000000000..45e94194a --- /dev/null +++ b/templates/web/angus/around/intro.html @@ -0,0 +1 @@ +<h1>Report, view, or discuss local issues</h1> diff --git a/templates/web/angus/footer.html b/templates/web/angus/footer.html new file mode 100644 index 000000000..a09c7ce2f --- /dev/null +++ b/templates/web/angus/footer.html @@ -0,0 +1,27 @@ + </div><!-- .content role=main --> + </div><!-- .container --> + </div><!-- .table-cell --> + + <div class="nav-wrapper"> + <div class="nav-wrapper-2"> + <div id="main-nav" role="navigation"> + [% INCLUDE 'main_menu.html' extra_class = 'nav-menu--main' %] + </div> + </div> + </div> + +<!-- [% INCLUDE 'debug_footer.html' %] --> + </div> <!-- .wrapper --> + + [% IF pagefooter %] + <div class="angus_footer"> + <footer role="contentinfo"> + [% INCLUDE 'front/footer-marketing.html' %] + </footer> + </div> + [% END %] + + [% TRY %][% PROCESS 'footer_extra.html' %][% CATCH file %][% END %] + +</body> +</html> diff --git a/templates/web/angus/front/footer-marketing.html b/templates/web/angus/front/footer-marketing.html new file mode 100644 index 000000000..59413121d --- /dev/null +++ b/templates/web/angus/front/footer-marketing.html @@ -0,0 +1,24 @@ +<div class="tablewrapper bordered"> + <p class="social"><a href="https://twitter.com/anguscouncil" class="icon-twitter" title="Follow Angus Council on Twitter">Twitter</a> <a href="https://www.facebook.com/AngusCouncil" class="icon-facebook" title="Join Angus Council on Facebook">Facebook</a> <a href="https://www.youtube.com/channel/UCtdcoPEFDA_CikJMiJjiDtA" class="icon-youtube" title="Watch Angus Council videos on YouTube">YouTube</a></p> + <ul> + <li> + <a href="http://www.angus.gov.uk/info/19999/council_and_democracy/172/contact_us "><strong>Contact the Council</strong></a> + </li> + <li> + <a href="http://www.angus.gov.uk/socialmedia">Social media</a> + </li> + <li> + <a href="http://www.angus.gov.uk/whats_new">Recently published</a> + </li> + <li> + <a href="http://www.angus.gov.uk/site_map">Site map</a> + </li> + <li> + <a href="http://www.angus.gov.uk/terms">Terms and disclaimer</a> + </li> + <li> + <a href="http://www.angus.gov.uk/cookies">Cookies</a> + </li> + </ul> + <p><span class="copyright">All content © Angus Council.</span></p> +</div>
\ No newline at end of file diff --git a/templates/web/angus/header.html b/templates/web/angus/header.html new file mode 100644 index 000000000..d1a40574e --- /dev/null +++ b/templates/web/angus/header.html @@ -0,0 +1,68 @@ +[% + SET html_att = ' lang="' _ lang_code _ '"'; + # For a right-to-left language, use the following line in your own header: + # SET html_att = html_att _ ' dir="rtl"'; +-%] +<!doctype html> +<!--[if lt IE 7]><html class="no-js ie6 iel8"[% html_att %]><![endif]--> +<!--[if IE 7]> <html class="no-js ie7 iel8"[% html_att %]><![endif]--> +<!--[if IE 8]> <html class="no-js ie8 iel8"[% html_att %]><![endif]--> +<!--[if IE 9]> <html class="no-js ie9"[% html_att %]><![endif]--> +<!--[if gt IE 9]><!--><html class="no-js"[% html_att %]><!--<![endif]--> + <head> + <meta name="viewport" content="initial-scale=1.0"> + + <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> + <meta name="HandHeldFriendly" content="true"> + <meta name="mobileoptimized" content="0"> + + [% INCLUDE 'header_opengraph.html' %] + <link rel="stylesheet" href="[% version('/cobrands/angus/base.css') %]"> + <link rel="stylesheet" href="[% version('/cobrands/angus/layout.css') %]" media="(min-width:48em)"> + [% extra_css %] + <!--[if (lt IE 9) & (!IEMobile)]> + <link rel="stylesheet" href="[% version('/cobrands/angus/layout.css') %]"> + <![endif]--> + + <script src="[% version('/js/modernizr.custom.js') %]" charset="utf-8"></script> + <script src="[% version('/cobrands/angus/position_map.js') %]" charset="utf-8"></script> + [% INCLUDE 'common_header_tags.html', js_override = '/cobrands/fixmystreet/fixmystreet.js' %] + [% extra_js %] + + [% IF c.req.uri.host == 'osm.fixmystreet.com' %] + <link rel="canonical" href="https://www.fixmystreet.com[% c.req.uri.path_query %]"> + [% END %] + + [% TRY %][% PROCESS 'header_extra.html' %][% CATCH file %][% END %] + + </head> + [% TRY %][% PROCESS 'set_body_class.html' %][% CATCH file %][% END %] + <body class="[% bodyclass | html IF bodyclass %]"> + + <div class="wrapper"> + <div class="table-cell"> + <header id="site-header" role="banner"> + <div class="container"> + [% INCLUDE 'header_logo.html' %] + <a href="#main-nav" id="nav-link">Main Navigation</a> + + [% INCLUDE 'angus_search.html' %] + </div> + </header> + + [% IF c.user_exists %] + <div id="user-meta"> + <p> + [% tprintf(loc('Hi %s'), c.user.name || c.user.email) %] + <a href="/auth/sign_out">[% loc('sign out') %]</a> + </p> + </div> + [% END %] + + [% INCLUDE 'post_header_extra.html' %] + [% pre_container_extra %] + + <div class="container"> + <div class="content[% " $mainclass" | html IF mainclass %]" role="main"> + + <!-- [% INCLUDE 'debug_header.html' %] --> diff --git a/templates/web/angus/main_menu.html b/templates/web/angus/main_menu.html new file mode 100644 index 000000000..3a07c61cd --- /dev/null +++ b/templates/web/angus/main_menu.html @@ -0,0 +1,24 @@ +[% + SET base = ""; + SET base = c.cobrand.base_url IF admin; +%] +<ul class="nav-menu [% extra_class %]"> + <li><[% IF c.req.uri.path == '/' + %]span[% ELSE %]a href="[% base %]/"[% END %] class="report-a-problem-btn" + >[% loc("Report a problem") %]</[% c.req.uri.path == '/' ? 'span' : 'a' %]></li>[% + %]<li><[% IF c.req.uri.path == '/my' + %]span[% ELSE %]a href="[% base %]/my"[% END + %]>[% loc("Your reports") %]</[% c.req.uri.path == '/my' ? 'span' : 'a' %]></li>[% + %]<li><[% IF c.req.uri.path == '/reports/Angus' + %]span[% ELSE %]a href="[% base %]/reports/Angus"[% END + %]>[% loc("All reports") %]</[% c.req.uri.path == '/reports/Angus' ? 'span' : 'a' %]></li>[% + %]<li><[% IF c.req.uri.path == '/alert' + %]span[% ELSE %]a href="[% base %]/alert[% pc ? '/list?pc=' : '' %][% pc | uri %]"[% END + %]>[% loc("Local alerts") %]</[% c.req.uri.path == '/alert' ? 'span' : 'a' %]></li>[% + %]<li><[% IF c.req.uri.path == '/faq' + %]span[% ELSE %]a href="[% base %]/faq"[% END + %]>[% loc("Help") %]</[% c.req.uri.path == '/faq' ? 'span' : 'a' %]></li>[% + %]<li class="nav-menu__item--privacy"><[% IF c.req.uri.path == '/privacy' + %]span[% ELSE %]a href="[% base %]/privacy"[% END + %]>[% loc("Privacy") %]</[% c.req.uri.path == '/privacy' ? 'span' : 'a' %]></li> +</ul> diff --git a/templates/web/angus/post_header_extra.html b/templates/web/angus/post_header_extra.html new file mode 100644 index 000000000..16a82de3e --- /dev/null +++ b/templates/web/angus/post_header_extra.html @@ -0,0 +1,14 @@ +<div class="angus_nav"> + <div class="container"> + <ul> + <li><a href="http://www.angus.gov.uk/">Home</a></li> + <li><a href="/">FixMyStreet</a></li> + </ul> + </div> +</div> + +<div class="wrapper wrapper__main_menu"> + <div class="container"> + [% INCLUDE 'main_menu.html' extra_class = 'nav-menu--breadcrumb' %] + </div> +</div> diff --git a/templates/web/angus/report/new/after_category.html b/templates/web/angus/report/new/after_category.html new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/templates/web/angus/report/new/after_category.html diff --git a/templates/web/angus/report/new/category_at_top.html b/templates/web/angus/report/new/category_at_top.html new file mode 100644 index 000000000..8002eb37a --- /dev/null +++ b/templates/web/angus/report/new/category_at_top.html @@ -0,0 +1 @@ +[% PROCESS "report/new/category_wrapper.html" %]
\ No newline at end of file |