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 +4 -4
- data/VERSION +1 -1
- data/app/assets/images/{logo_bhf.svg → bhf/logo_bhf.svg} +0 -0
- data/app/assets/stylesheets/bhf/{MooEditable.css.scss → MooEditable.scss} +0 -0
- data/app/assets/stylesheets/bhf/{application.css.sass → application.sass} +4 -4
- data/app/assets/stylesheets/bhf/{functions.css.sass → functions.sass} +0 -0
- data/app/assets/stylesheets/bhf/{reset.css.sass → reset.sass} +0 -0
- data/app/assets/stylesheets/bhf/{typo.css.scss → typo.scss} +0 -0
- data/app/helpers/bhf/application_helper.rb +4 -0
- data/app/views/bhf/entries/_form.html.haml +1 -1
- data/app/views/layouts/bhf/application.haml +2 -5
- data/bhf.gemspec +9 -9
- data/config/locales/de.yml +6 -0
- data/lib/bhf.rb +5 -0
- data/lib/rails/generators/bhf/templates/initializer.rb +1 -0
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41fa77404e15a9747fc8842577826bcdb831b1c2
|
|
4
|
+
data.tar.gz: 12fb996fa607b4bb10e96f9ea5e7208b7acaeb20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0045ed97911d792a3e5b0588284de54ab2d74ab04d7549d9b77373ec469acdeb72204243b1cfda21d504bd5b28050b3a3b55593e4e483d13f73342f4ec425970
|
|
7
|
+
data.tar.gz: 37a81fac11198ecc8060299dde43df7900fb4617fe83026d50e42e83ee69befc82f8d76df4580cdce3f15bcef4920f891f1fc6de1279c007502c67fe36a420f8
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.0.
|
|
1
|
+
1.0.0.beta3
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import "reset.
|
|
2
|
-
@import "typo.
|
|
3
|
-
@import "functions.
|
|
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.
|
|
872
|
+
@import "MooEditable.scss"
|
|
873
873
|
|
|
874
874
|
.mooeditable-container
|
|
875
875
|
@extend .default_input
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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: (
|
|
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 =
|
|
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: {
|
|
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.
|
|
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.
|
|
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-
|
|
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.
|
|
60
|
-
"app/assets/stylesheets/bhf/application.
|
|
61
|
-
"app/assets/stylesheets/bhf/functions.
|
|
62
|
-
"app/assets/stylesheets/bhf/reset.
|
|
63
|
-
"app/assets/stylesheets/bhf/typo.
|
|
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",
|
data/config/locales/de.yml
CHANGED
|
@@ -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 }
|
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.
|
|
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-
|
|
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.
|
|
201
|
-
- app/assets/stylesheets/bhf/application.
|
|
202
|
-
- app/assets/stylesheets/bhf/functions.
|
|
203
|
-
- app/assets/stylesheets/bhf/reset.
|
|
204
|
-
- app/assets/stylesheets/bhf/typo.
|
|
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
|