moj_internal_template 0.1.1 → 0.1.2

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: f48bb26c4a814acd750bcb0a3f7bf96222cd598a
4
- data.tar.gz: a408399a1a772789031ddf90eb4d5bef73b7a54c
3
+ metadata.gz: 866336e3ff759c7290ea517540326afb4340f252
4
+ data.tar.gz: 0fa9890379f29de423baf9d46ce1534c8e33d3ea
5
5
  SHA512:
6
- metadata.gz: 36437ceba2202bd69363d28b16cc655a647d21f00b8416f6274d54c68ab71f2c8a04f1d9600279dee6e0d066964dbf4b3cb9abb51cdaa53e1a982e4e09705e14
7
- data.tar.gz: 02182e91c9b27f30bd6cbc7d939186c5421f304f35bafd89a6cd305adb2a8fed4e4f6cfe7b614aab934475b8eb2d2f0a7c5b9f3985d85101a8f25c49fdacc738
6
+ metadata.gz: b29fab8ef334a43f76b34df2775c3dbda5ae5cc8cfbe6f847953ef50b43d3203f738ef2dd39ddf3a1e1371be7942895dbb8fa88d43aa426d851acfe956ce5f26
7
+ data.tar.gz: ecd2dc444c45f6160c89c709d53cbd7db0aeb31ef928acc53b292a46c74ee75c2e67b0813c6aa34577e522f62fee654374ddc12d9693497af1562b98a53f0e1e
@@ -2,4 +2,10 @@ module MojHelper
2
2
  def config_item(key)
3
3
  Rails.configuration.send(key)
4
4
  end
5
+
6
+ def logo_image
7
+ image_tag('moj_logo_horizontal_36x246.png',
8
+ class: 'content',
9
+ width: 36, height: 246, alt: 'Ministry of Justice')
10
+ end
5
11
  end
@@ -64,8 +64,13 @@
64
64
  <div class="header-wrapper">
65
65
  <div class="header-global">
66
66
  <div class="header-logo">
67
- <a href="/" title="Go to the homepage" id="logo" class="content"><img src="<%= asset_path 'moj_logo_horizontal_36x246.png' %>"
68
- width="36" height="246" alt="Ministry of Justice"></a>
67
+ <div id="logo">
68
+ <% if @disable_logo_link -%>
69
+ <%= logo_image %>
70
+ <% else -%>
71
+ <a href="/" title="Go to the homepage"><%= logo_image %></a>
72
+ <% end -%>
73
+ </div>
69
74
  </div>
70
75
  <div class="header-app-name">
71
76
  <%= config_item(:app_title) %>
@@ -1,3 +1,3 @@
1
1
  module MojInternalTemplate
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moj_internal_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Battley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-13 00:00:00.000000000 Z
11
+ date: 2014-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails