pugin 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/pugin/components/_navigation-letter.haml +1 -1
- data/app/views/pugin/layouts/_layout.html.haml +3 -3
- data/lib/pugin.rb +1 -1
- data/lib/pugin/version.rb +1 -1
- data/spec/views/pugin/components/_status.html.haml_spec.rb +4 -4
- metadata +2 -3
- data/app/views/pugin/layouts/pugin-sinatra.haml +0 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fd93d852e019501812a0c9ba9e2cd28428f0c08
|
4
|
+
data.tar.gz: e8f27061981f0816cfeeb04250f5e8d343d68374
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b199a602830752635372e892fb9bc2b3fd1e5299c18f6196380dd8943e484e53512865dd3999f43c23b4f57f3d4d229a74a7e21da6bfd2b66055e42f312687df
|
7
|
+
data.tar.gz: 80cc5e28cbe557f9562a319d7740dd1edc8926f8efac615dbc376460b39bdd13e3915743b4a86e5576d938cfbad66380a95b595636c35ea3f75a951f76730618
|
@@ -5,7 +5,7 @@
|
|
5
5
|
- if @letters.empty? || !local_assigns[:all_path]
|
6
6
|
%span= I18n.t('pugin.components.navigation-letter.all').capitalize
|
7
7
|
- else
|
8
|
-
= link_to "#{I18n.t('pugin.components.navigation-letter.all').capitalize}", send(all_path, local_assigns.fetch(:route_args, nil))
|
8
|
+
= link_to "#{I18n.t('pugin.components.navigation-letter.all').capitalize}", send(all_path, *local_assigns.fetch(:route_args, nil))
|
9
9
|
- ('a'..'z').each do |letter|
|
10
10
|
%li{ data: { letter: letter }, class: ('active' if (params[:letter] == letter)) }
|
11
11
|
- if @letters.include?(letter.upcase)
|
@@ -10,9 +10,9 @@
|
|
10
10
|
- if ENV['GTM_KEY']
|
11
11
|
= render partial: 'pugin/javascript/google_tag_manager'
|
12
12
|
- unless Pugin.alternates.empty?
|
13
|
-
/
|
14
|
-
/
|
15
|
-
/
|
13
|
+
/ ========================
|
14
|
+
/ See below for data views
|
15
|
+
/ ========================
|
16
16
|
- Pugin.alternates.each do |alternate|
|
17
17
|
%link{rel: 'alternate', type: alternate[:type], href: alternate[:href]}
|
18
18
|
%body
|
data/lib/pugin.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'pugin/version'
|
2
2
|
|
3
3
|
module Pugin
|
4
|
-
ASSET_VERSION = '1.6.
|
4
|
+
ASSET_VERSION = '1.6.4'.freeze
|
5
5
|
ASSET_LOCATION_URL = ENV.fetch('ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1live.pugin-website')
|
6
6
|
STATIC_ASSET_LOCATION_URL = ENV.fetch('STATIC_ASSET_LOCATION_URL', 'https://s3-eu-west-1.amazonaws.com/web1live.static-assets')
|
7
7
|
class << self
|
data/lib/pugin/version.rb
CHANGED
@@ -19,7 +19,7 @@ describe 'pugin/components/_status.html.haml', type: :view do
|
|
19
19
|
<div class='status--banner'>
|
20
20
|
<div class='container'>
|
21
21
|
<p>
|
22
|
-
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.
|
22
|
+
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.4/icons/caution-circle-white.svg'>
|
23
23
|
<span class='sr-only'>caution</span>
|
24
24
|
This is a test website, so may be inaccurate.
|
25
25
|
<a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
|
@@ -46,7 +46,7 @@ DATA
|
|
46
46
|
<div class='status--banner'>
|
47
47
|
<div class='container'>
|
48
48
|
<p>
|
49
|
-
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.
|
49
|
+
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.4/icons/caution-circle-white.svg'>
|
50
50
|
<span class='sr-only'>caution</span>
|
51
51
|
This is a test website, so may be inaccurate.
|
52
52
|
<a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
|
@@ -76,7 +76,7 @@ DATA
|
|
76
76
|
<div class='status--banner'>
|
77
77
|
<div class='container'>
|
78
78
|
<p>
|
79
|
-
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.
|
79
|
+
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.4/icons/caution-circle-white.svg'>
|
80
80
|
<span class='sr-only'>caution</span>
|
81
81
|
This is a test website, so may be inaccurate.
|
82
82
|
<a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
|
@@ -108,7 +108,7 @@ DATA
|
|
108
108
|
<div class='status--banner'>
|
109
109
|
<div class='container'>
|
110
110
|
<p>
|
111
|
-
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.
|
111
|
+
<img alt='' aria-hidden='true' aria-label='caution' class='icon--inline' src='https://s3-eu-west-1.amazonaws.com/web1live.pugin-website/1.6.4/icons/caution-circle-white.svg'>
|
112
112
|
<span class='sr-only'>caution</span>
|
113
113
|
This is a test website, so may be inaccurate.
|
114
114
|
<a href='http://www.smartsurvey.co.uk/s/ukparliament-beta-website-feedback/'>Give feedback</a>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Rayner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -208,7 +208,6 @@ files:
|
|
208
208
|
- app/views/pugin/javascript/_has_js.haml
|
209
209
|
- app/views/pugin/javascript/_pingdom.haml
|
210
210
|
- app/views/pugin/layouts/_layout.html.haml
|
211
|
-
- app/views/pugin/layouts/pugin-sinatra.haml
|
212
211
|
- app/views/pugin/layouts/pugin.html.erb
|
213
212
|
- app/views/pugin/parties/list/_list.html.haml
|
214
213
|
- app/views/pugin/parties/list/current/current_party.html.haml
|
@@ -1,21 +0,0 @@
|
|
1
|
-
!!! 5
|
2
|
-
%html{lang:'en'}
|
3
|
-
%head
|
4
|
-
- title = yield_content :title
|
5
|
-
%title= ( title.nil? || title.empty? ) ? I18n.t('pugin.layouts.pugin.website_brand') : title + ' - ' + I18n.t('pugin.layouts.pugin.website_brand')
|
6
|
-
%link{rel: 'stylesheet', href: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/stylesheets/main.css" }
|
7
|
-
%meta{name: 'viewport', content: 'width=device-width, initial-scale=1.0'}
|
8
|
-
%meta{'http-equiv': 'X-UA-Compatible', content: 'IE=edge'}
|
9
|
-
%link{rel: 'shortcut icon', type: 'image/x-icon', href: "#{Pugin::STATIC_ASSET_LOCATION_URL}/favicon.ico"}
|
10
|
-
- if ENV['GTM_KEY']
|
11
|
-
= partial '/pugin/javascript/_google_tag_manager'
|
12
|
-
%body.no-js
|
13
|
-
- if ENV['GTM_KEY']
|
14
|
-
= partial '/pugin/javascript/_google_tag_manager_noscript'
|
15
|
-
= partial '/pugin/elements/_skip-content'
|
16
|
-
= partial '/pugin/components/_status'
|
17
|
-
= partial '/pugin/components/_header'
|
18
|
-
%main
|
19
|
-
= yield
|
20
|
-
= partial '/pugin/components/_footer'
|
21
|
-
%script{src: "#{Pugin::ASSET_LOCATION_URL}/#{Pugin::ASSET_VERSION}/javascripts/main.js"}
|