bhf 0.7.0.rc3 → 0.7.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aeb67ca0285c67ab14c38924a9155bb202501b5b
|
|
4
|
+
data.tar.gz: cdaabaadf3e5efcd91d5a4064e76895fa2db1f64
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3881d098482897fd0d275067eff3820e4365516c3563e1cda9215a4e0874d6e6fe40d6ffe91e1cd284acbdd09f0eba66eb98f4b3e85bae11b2a1fe3bbda4ea57
|
|
7
|
+
data.tar.gz: 9ba56eea1635a5655f812ca33c9882a6a888a935aef98303f7bae1602831e8969f74a7e1cfca0841708fd078f016f054eb97339f4bd4bd28c54d9249277a9764
|
|
Binary file
|
|
Binary file
|
|
@@ -57,7 +57,23 @@ class Bhf::ApplicationController < ActionController::Base
|
|
|
57
57
|
|
|
58
58
|
def set_title
|
|
59
59
|
@app_title = Rails.application.class.to_s.split('::').first
|
|
60
|
-
|
|
60
|
+
# TODO: add area i18ned title
|
|
61
|
+
@title = if Bhf::Engine.config.page_title
|
|
62
|
+
Bhf::Engine.config.page_title
|
|
63
|
+
else
|
|
64
|
+
if params[:bhf_area]
|
|
65
|
+
t("bhf.areas.page_title.#{params[:bhf_area]}",
|
|
66
|
+
area: params[:bhf_area],
|
|
67
|
+
title: @app_title,
|
|
68
|
+
default: t('bhf.areas.default_page_title',
|
|
69
|
+
title: @app_title,
|
|
70
|
+
area: t("bhf.areas.links.#{params[:bhf_area]}", default: params[:bhf_area])
|
|
71
|
+
)
|
|
72
|
+
)
|
|
73
|
+
else
|
|
74
|
+
t('bhf.default_page_title', title: @app_title)
|
|
75
|
+
end
|
|
76
|
+
end.html_safe
|
|
61
77
|
end
|
|
62
78
|
|
|
63
79
|
def set_areas
|
|
@@ -10,8 +10,12 @@
|
|
|
10
10
|
%header
|
|
11
11
|
|
|
12
12
|
%h1
|
|
13
|
-
- logo = Rails.application.assets.find_asset(
|
|
14
|
-
|
|
13
|
+
- logo = if params[:bhf_area] && Rails.application.assets.find_asset("logo_#{params[:bhf_area]}_bhf.svg")
|
|
14
|
+
- "logo_#{params[:bhf_area]}_bhf.svg"
|
|
15
|
+
- else
|
|
16
|
+
- Rails.application.assets.find_asset('logo_bhf.png') ? 'logo_bhf.png' : 'logo_bhf.svg'
|
|
17
|
+
|
|
18
|
+
= link_to image_tag(logo), main_app.root_url, :'data-no-turbolink' => true
|
|
15
19
|
|
|
16
20
|
- if @areas and @areas.length > 1
|
|
17
21
|
= select_tag :area_select, options_from_collection_for_select(@areas, 'path', 'name', main_app.bhf_path(params[:bhf_area])), class: 'icon'
|
data/config/locales/en.yml
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bhf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Anton Pawlik
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-04-
|
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -228,9 +228,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
228
228
|
version: '0'
|
|
229
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
requirements:
|
|
231
|
-
- - "
|
|
231
|
+
- - ">="
|
|
232
232
|
- !ruby/object:Gem::Version
|
|
233
|
-
version:
|
|
233
|
+
version: '0'
|
|
234
234
|
requirements: []
|
|
235
235
|
rubyforge_project: nowarning
|
|
236
236
|
rubygems_version: 2.2.1
|