bhf 1.0.0.beta2 → 1.0.0.beta3

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: 85e5844f6e0702d76d497fa8f8acce1657e9f4c3
4
- data.tar.gz: a08b7268c1284022db5abd03efcd7068253a2f6f
3
+ metadata.gz: 41fa77404e15a9747fc8842577826bcdb831b1c2
4
+ data.tar.gz: 12fb996fa607b4bb10e96f9ea5e7208b7acaeb20
5
5
  SHA512:
6
- metadata.gz: 0bcd8d72a4ccd41de2ff74849c3adf2c31e85ab4efb66921226e880568fd905ddc50a5a79cde630ec28c0774f9aafc42c176228bfcd27ee10c4aa715b6ea0378
7
- data.tar.gz: 3432f7a79e22c4150567c88de9fc8cbd2c85ddaef60bac95d5f41be6eee40ed2b124d7ecf42902626ea022e19329d5aa7496c666dba0dcf55055c8d138768e60
6
+ metadata.gz: 0045ed97911d792a3e5b0588284de54ab2d74ab04d7549d9b77373ec469acdeb72204243b1cfda21d504bd5b28050b3a3b55593e4e483d13f73342f4ec425970
7
+ data.tar.gz: 37a81fac11198ecc8060299dde43df7900fb4617fe83026d50e42e83ee69befc82f8d76df4580cdce3f15bcef4920f891f1fc6de1279c007502c67fe36a420f8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.beta2
1
+ 1.0.0.beta3
@@ -1,6 +1,6 @@
1
- @import "reset.css.sass"
2
- @import "typo.css.scss"
3
- @import "functions.css.sass"
1
+ @import "reset.sass"
2
+ @import "typo.scss"
3
+ @import "functions.sass"
4
4
 
5
5
  $w1: #fff
6
6
 
@@ -869,7 +869,7 @@ input[type="submit"].alt_button,
869
869
 
870
870
  // MooEditable
871
871
 
872
- @import "MooEditable.css.scss"
872
+ @import "MooEditable.scss"
873
873
 
874
874
  .mooeditable-container
875
875
  @extend .default_input
@@ -35,5 +35,9 @@ module Bhf
35
35
  Bhf.configuration.paperclip_image_types.include?(type)
36
36
  end
37
37
 
38
+ def main_logo(area)
39
+ Bhf.configuration.logo.call(area)
40
+ end
41
+
38
42
  end
39
43
  end
@@ -22,4 +22,4 @@
22
22
  - unless @platform.hide_create
23
23
  = f.submit t('bhf.helpers.form.buttons.and_add'), name: :return_to_new, class: 'alt_button'
24
24
 
25
- = link_to t('bhf.helpers.entry.cancel'), params[:return_to] ? params[:return_to] : page_path(@platform.page_name), class: 'cancel', data: ( {no_turbolink: true} if params[:return_to])
25
+ = link_to t('bhf.helpers.entry.cancel'), (params[:return_to] ? params[:return_to] : page_path(@platform.page_name)), class: 'cancel', data: ({turbolinks: false} if params[:return_to])
@@ -15,12 +15,9 @@
15
15
  = render partial: 'bhf/helper/flash', locals: {flash: flash}
16
16
  %header
17
17
  %h1
18
- - logo = if params[:bhf_area]
19
- - "logo_#{params[:bhf_area]}_bhf.svg"
20
- - else
21
- - 'logo_bhf.svg'
18
+ - logo = main_logo(params[:bhf_area])
22
19
 
23
- = link_to image_tag(logo), @root_link ? @root_link : main_app.root_url, data: {no_turbolink: true}
20
+ = link_to image_tag(logo), @root_link ? @root_link : main_app.root_url, data: {turbolinks: false}
24
21
 
25
22
  - if @areas && @areas.length > 1
26
23
  = select_tag :area_select, options_from_collection_for_select(@areas, 'path', 'name', main_app.bhf_path(params[:bhf_area])), class: 'icon'
data/bhf.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: bhf 1.0.0.beta2 ruby lib
5
+ # stub: bhf 1.0.0.beta3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "bhf".freeze
9
- s.version = "1.0.0.beta2"
9
+ s.version = "1.0.0.beta3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Anton Pawlik".freeze]
14
- s.date = "2018-05-07"
14
+ s.date = "2018-05-10"
15
15
  s.description = "A simple to use Rails-Engine-Gem that offers an admin interface for trusted user. Easy integratable and highly configurable and agnostic. Works with ActiveRecord and Mongoid.".freeze
16
16
  s.email = "anton.pawlik@gmail.com".freeze
17
17
  s.extra_rdoc_files = [
@@ -27,13 +27,13 @@ Gem::Specification.new do |s|
27
27
  "VERSION",
28
28
  "app/assets/images/bhf/ajax_loader.gif",
29
29
  "app/assets/images/bhf/bg.png",
30
+ "app/assets/images/bhf/logo_bhf.svg",
30
31
  "app/assets/images/bhf/mooeditable-toolbarbuttons-tango.png",
31
32
  "app/assets/images/bhf/pictos.png",
32
33
  "app/assets/images/bhf/pictos_2x.png",
33
34
  "app/assets/images/bhf/small_ajax_loader.gif",
34
35
  "app/assets/images/bhf/small_ajax_loader_h.gif",
35
36
  "app/assets/images/bhf/wmd-buttons.png",
36
- "app/assets/images/logo_bhf.svg",
37
37
  "app/assets/javascripts/bhf/application.js",
38
38
  "app/assets/javascripts/bhf/classes/Ajaxify.js",
39
39
  "app/assets/javascripts/bhf/classes/ArrayFields.js",
@@ -56,11 +56,11 @@ Gem::Specification.new do |s|
56
56
  "app/assets/javascripts/bhf/mootools-core-1.5.0-full-compat.js",
57
57
  "app/assets/javascripts/bhf/mootools-more-1.5.0.js",
58
58
  "app/assets/javascripts/bhf/mootools_ujs.js",
59
- "app/assets/stylesheets/bhf/MooEditable.css.scss",
60
- "app/assets/stylesheets/bhf/application.css.sass",
61
- "app/assets/stylesheets/bhf/functions.css.sass",
62
- "app/assets/stylesheets/bhf/reset.css.sass",
63
- "app/assets/stylesheets/bhf/typo.css.scss",
59
+ "app/assets/stylesheets/bhf/MooEditable.scss",
60
+ "app/assets/stylesheets/bhf/application.sass",
61
+ "app/assets/stylesheets/bhf/functions.sass",
62
+ "app/assets/stylesheets/bhf/reset.sass",
63
+ "app/assets/stylesheets/bhf/typo.scss",
64
64
  "app/controllers/bhf/application_controller.rb",
65
65
  "app/controllers/bhf/embed_entries_controller.rb",
66
66
  "app/controllers/bhf/entries_controller.rb",
@@ -1,5 +1,8 @@
1
1
  de:
2
2
  bhf:
3
+ page_title: "%{title} – Admin"
4
+ areas:
5
+ page_title: "%{area} – %{title} – Admin"
3
6
  helpers:
4
7
  boolean:
5
8
  'true': 'ja'
@@ -70,6 +73,9 @@ de:
70
73
  copy: 'Gemacht von <a href="http://twitter.com/antpaw">@antpaw</a>'
71
74
  info: 'Mehr Informationen auf <a href="http://antpaw.github.io/bhf">GitHub</a>'
72
75
 
76
+ attributes:
77
+ _id: 'id'
78
+
73
79
  activerecord:
74
80
  notices:
75
81
  messages:
data/lib/bhf.rb CHANGED
@@ -22,6 +22,10 @@ module Bhf
22
22
  include Bhf::Mongoid::Document
23
23
  end
24
24
  end
25
+
26
+ initializer 'bhf.assets.precompile' do |app|
27
+ app.config.assets.precompile += %w( bhf/logo_bhf.svg )
28
+ end
25
29
  end
26
30
 
27
31
 
@@ -34,6 +38,7 @@ module Bhf
34
38
  class Configuration
35
39
  include ActiveSupport::Configurable
36
40
 
41
+ config_accessor(:logo) { lambda { |area| 'bhf/logo_bhf.svg' }}
37
42
  config_accessor(:on_login_fail) { :root_url }
38
43
  config_accessor(:logout_path) { :logout_path }
39
44
  config_accessor(:session_auth_name) { :is_admin }
@@ -3,6 +3,7 @@ Bhf.configure do |config|
3
3
  # config.js << 'bhf'
4
4
  # config.abstract_settings << 'abstract'
5
5
 
6
+ # config.logo = lambda { |area| 'my_logo.svg' }
6
7
  # config.on_login_fail = :root_url
7
8
  # config.logout_path = :logout_path
8
9
 
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: 1.0.0.beta2
4
+ version: 1.0.0.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-07 00:00:00.000000000 Z
11
+ date: 2018-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -168,13 +168,13 @@ files:
168
168
  - VERSION
169
169
  - app/assets/images/bhf/ajax_loader.gif
170
170
  - app/assets/images/bhf/bg.png
171
+ - app/assets/images/bhf/logo_bhf.svg
171
172
  - app/assets/images/bhf/mooeditable-toolbarbuttons-tango.png
172
173
  - app/assets/images/bhf/pictos.png
173
174
  - app/assets/images/bhf/pictos_2x.png
174
175
  - app/assets/images/bhf/small_ajax_loader.gif
175
176
  - app/assets/images/bhf/small_ajax_loader_h.gif
176
177
  - app/assets/images/bhf/wmd-buttons.png
177
- - app/assets/images/logo_bhf.svg
178
178
  - app/assets/javascripts/bhf/application.js
179
179
  - app/assets/javascripts/bhf/classes/Ajaxify.js
180
180
  - app/assets/javascripts/bhf/classes/ArrayFields.js
@@ -197,11 +197,11 @@ files:
197
197
  - app/assets/javascripts/bhf/mootools-core-1.5.0-full-compat.js
198
198
  - app/assets/javascripts/bhf/mootools-more-1.5.0.js
199
199
  - app/assets/javascripts/bhf/mootools_ujs.js
200
- - app/assets/stylesheets/bhf/MooEditable.css.scss
201
- - app/assets/stylesheets/bhf/application.css.sass
202
- - app/assets/stylesheets/bhf/functions.css.sass
203
- - app/assets/stylesheets/bhf/reset.css.sass
204
- - app/assets/stylesheets/bhf/typo.css.scss
200
+ - app/assets/stylesheets/bhf/MooEditable.scss
201
+ - app/assets/stylesheets/bhf/application.sass
202
+ - app/assets/stylesheets/bhf/functions.sass
203
+ - app/assets/stylesheets/bhf/reset.sass
204
+ - app/assets/stylesheets/bhf/typo.scss
205
205
  - app/controllers/bhf/application_controller.rb
206
206
  - app/controllers/bhf/embed_entries_controller.rb
207
207
  - app/controllers/bhf/entries_controller.rb