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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8877a7d38ebb9d4f4651d722563d085628f049c6
4
- data.tar.gz: ab9b72c6a03035a3e5c640853a041b403d377d2a
3
+ metadata.gz: fb835d0b818179a59a877d8157a74d240e643362
4
+ data.tar.gz: 583b5f2f88fb49b55e7672d71851973cef9d35bc
5
5
  SHA512:
6
- metadata.gz: e0727631827f8e1f18ba6c534a0d8663fa50096608d4698418ab1dd3a1a15f702b484b57d0c65ece49dafd91a7703175e8f7764e94e3e69baccdad4997ab4560
7
- data.tar.gz: b9808b52be5304be1609e76b0d24074bea38ea8ea392158856a48291f4fff74d3e6f9110f2f7451946e6a04bb71c7dbc556d71b907e72c03e1222d521f298f6c
6
+ metadata.gz: b4282b9150b1c26a2290c64a964f21447dfe7b5906a01c435c57b5b281e4c5516606a60fa1128744fb58a0ae392d5032660dcd4a4c47817167a473e93ef59a07
7
+ data.tar.gz: 0b431d9cd5f38e9d8ed3d4f605d9df8813b014e96010316feaf9eebef581a4aad2a78df240228fd25c2fb650667a661d840b44d4ddb4dcea00ac8387a038f336
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.4.3
2
+
3
+ * Allow customisation of app's home page
4
+
1
5
  # 1.4.2
2
6
 
3
7
  * Track events using universal analytics as well as classic analytics
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", root_path, :class => 'navbar-brand' %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module GovukAdminTemplate
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
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.2
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-08 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails