govuk_admin_template 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/app/views/layouts/govuk_admin_template.html.erb +2 -1
- data/lib/govuk_admin_template/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fb835d0b818179a59a877d8157a74d240e643362
|
|
4
|
+
data.tar.gz: 583b5f2f88fb49b55e7672d71851973cef9d35bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4282b9150b1c26a2290c64a964f21447dfe7b5906a01c435c57b5b281e4c5516606a60fa1128744fb58a0ae392d5032660dcd4a4c47817167a473e93ef59a07
|
|
7
|
+
data.tar.gz: 0b431d9cd5f38e9d8ed3d4f605d9df8813b014e96010316feaf9eebef581a4aad2a78df240228fd25c2fb650667a661d840b44d4ddb4dcea00ac8387a038f336
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -72,6 +72,7 @@ The gem [uses nested layouts](http://guides.rubyonrails.org/layouts_and_renderin
|
|
|
72
72
|
`content_for` | Description
|
|
73
73
|
--------------- | -------------
|
|
74
74
|
`:app_title` | Name of your admin application
|
|
75
|
+
`:app_home_path` | Path to the home page of your application, defaults to `root_path`
|
|
75
76
|
`:content` | Main content
|
|
76
77
|
`:head` | HTML to include in the `<head>` of your application
|
|
77
78
|
`:page_title` | Page title
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<%
|
|
2
2
|
environment_style = GovukAdminTemplate.environment_style
|
|
3
3
|
environment_label = GovukAdminTemplate.environment_label
|
|
4
|
+
app_home_path = content_for?(:app_home_path) ? yield(:app_home_path) : root_path
|
|
4
5
|
%>
|
|
5
6
|
<!DOCTYPE html>
|
|
6
7
|
<!--[if lte IE 7]><html class="no-js lte-ie7" lang="en"><![endif]-->
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
<span class="icon-bar"></span>
|
|
55
56
|
</a>
|
|
56
57
|
<% end %>
|
|
57
|
-
<%= link_to content_for?(:app_title) ? yield(:app_title) : "GOV.UK",
|
|
58
|
+
<%= link_to content_for?(:app_title) ? yield(:app_title) : "GOV.UK", app_home_path, :class => 'navbar-brand' %>
|
|
58
59
|
<% if environment_label %>
|
|
59
60
|
<div class="environment-label">
|
|
60
61
|
<%= environment_label %>
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_admin_template
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-12-
|
|
11
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|