bhf 0.7.9 → 0.7.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6258a93fccb709c75facbf4c58f86773f25c8d45
4
- data.tar.gz: bf9b39ef971a4c9107135615df4debda7db5d616
3
+ metadata.gz: 1760a5dd4251d63c74014ef6eb690d7e67291e7d
4
+ data.tar.gz: ef7c4c323284ae9f150ba1e25542c5e95adf7329
5
5
  SHA512:
6
- metadata.gz: 3dce6785d36d190332c0eaea91c33e7d482df8075ade512648dce0decb4ddc072e68184f925dd0171d5d8e35f3f638b24b5e97ef67f79757d60eca0354a67988
7
- data.tar.gz: 03e40f0335a6097dfa8fb9cec8150c98b7014827dfbfced2211bc2f5c6306daee6fbca117bf4db54b0f42c02b10067bebaa50c911f4cb93d5861d514904149a1
6
+ metadata.gz: b31235afe58f6d896f19e3715121cef0f9efbceab24830515b46943ae3d5b148f14233e753ae2721153c998d3af320d15907307c4095f22d6a29b4346ec5fb4b
7
+ data.tar.gz: 55b4a65ba43ba95e03d8d73df3d2548c0ebeba555668578dd7552cef43a550d45c651c49e02450184eb421d0ce6fb9816a8127432ffbb5a7f15ecf66f2a303e9
File without changes
@@ -1,6 +1,6 @@
1
- @import reset
2
- @import typo
3
- @import functions
1
+ @import "reset.css"
2
+ @import "typo.css"
3
+ @import "functions.css.sass"
4
4
 
5
5
  $w1: #fff
6
6
  $w2: #F1F1F1
@@ -625,7 +625,7 @@ form
625
625
 
626
626
 
627
627
  footer
628
- padding: 20px 0
628
+ padding: 20px 0 60px 0
629
629
  +text-shadow(#000, -1)
630
630
  text-align: center
631
631
  color: gray
@@ -689,21 +689,22 @@ input[type="submit"].alt_button,
689
689
  outline: 0
690
690
 
691
691
  #flash_massages
692
- display: block
693
- padding: 5px 20px
694
- margin: -45px 0 10px 0
695
- border: 1px solid $b1
696
- +bg-gradient($b1, $b2)
697
- color: $w1
698
- +text-shadow(#0068B3)
699
- overflow: hidden
700
- height: 100%
692
+ position: fixed
701
693
  +transition-duration(0.6)
702
- +transition-delay
694
+ bottom: -45px
703
695
  opacity: 0
696
+ width: 100%
697
+ font-size: 1.2em
704
698
  &.show
699
+ bottom: 0
705
700
  opacity: 1
706
- margin-top: 0px
701
+ ul
702
+ display: block
703
+ padding: 15px 20px 15px 20px
704
+ border: 1px solid $b1
705
+ +bg-gradient($b1, $b2)
706
+ color: $w1
707
+ +text-shadow(#0068B3)
707
708
 
708
709
 
709
710
  .pagination
@@ -779,7 +780,7 @@ input[type="submit"].alt_button,
779
780
 
780
781
  // MooEditable
781
782
 
782
- @import MooEditable
783
+ @import "MooEditable.css"
783
784
 
784
785
  .mooeditable-container
785
786
  @extend .default_input
@@ -1,5 +1,6 @@
1
1
  - f = {notice: (flash[:notice] if flash[:notice]), error: (flash[:error] if flash[:error])}.reject {|k, v| v.blank?}
2
2
  - unless f.blank?
3
- %ul#flash_massages.show
4
- - f.each do |type, msg|
5
- %li{class: type}= msg.to_s.html_safe
3
+ #flash_massages.show
4
+ %ul
5
+ - f.each do |type, msg|
6
+ %li{class: type}= msg.to_s.html_safe
@@ -1,7 +1,7 @@
1
1
  - platform.pagination.template = self
2
2
  - referral_id = nil
3
3
  - if flash[:referral_entry]
4
- - referral_id = flash[:referral_entry][:platform] == platform.name && flash[:referral_entry][:id]
4
+ - referral_id = (flash[:referral_entry][:platform] == platform.name && flash[:referral_entry][:id])
5
5
 
6
6
  - if platform.custom_partial
7
7
  = render partial: "bhf/pages/#{platform.custom_partial}", locals: {platform: platform}
@@ -8,6 +8,7 @@
8
8
  = stylesheet_link_tag css
9
9
  %body
10
10
 
11
+ = render partial: 'bhf/helper/flash', locals: {flash: flash}
11
12
  %header
12
13
  %h1
13
14
  - logo = if params[:bhf_area] && Rails.application.assets.find_asset("logo_#{params[:bhf_area]}_bhf.svg")
@@ -29,7 +30,6 @@
29
30
 
30
31
  #content
31
32
  #main
32
- = render partial: 'bhf/helper/flash', locals: {flash: flash}
33
33
  = yield
34
34
 
35
35
  %footer
@@ -28,7 +28,7 @@ en:
28
28
  logout:
29
29
  link: Logout
30
30
  activated:
31
- success: "%{model} was activated successfuly"
31
+ success: "%{model} was activated successfully"
32
32
  error: "%{model} error"
33
33
  validation:
34
34
  header: '%{error} prohibited this "%{name}" from being saved:'
@@ -77,14 +77,14 @@ en:
77
77
  notices:
78
78
  messages:
79
79
  duplicate:
80
- success: "%{model} was duplicated successfuly"
80
+ success: "%{model} was duplicated successfully"
81
81
  error: "%{model} error"
82
82
  create:
83
- success: "%{model} was created successfuly"
83
+ success: "%{model} was created successfully"
84
84
  error: "%{model} error"
85
85
  update:
86
- success: "%{model} was updated successfuly"
86
+ success: "%{model} was updated successfully"
87
87
  error: "%{model} error"
88
88
  destory:
89
- success: "%{model} was deleted successfuly"
89
+ success: "%{model} was deleted successfully"
90
90
  error: "%{model} error"
data/lib/bhf.rb CHANGED
@@ -1,3 +1,17 @@
1
+ require 'haml'
2
+ require 'sass'
3
+ require 'turbolinks'
4
+ require 'kaminari'
5
+ require 'bhf/active_record/active_record'
6
+ require 'bhf/mongoid/document'
7
+ require 'bhf/data'
8
+ require 'bhf/platform'
9
+ require 'bhf/config_parser'
10
+ require 'bhf/settings'
11
+ require 'bhf/pagination'
12
+ require 'bhf/form'
13
+
14
+
1
15
  module Bhf
2
16
  class Engine < Rails::Engine
3
17
 
@@ -15,7 +29,7 @@ module Bhf
15
29
  abstract_config: []
16
30
  )
17
31
 
18
- initializer 'bhf.helper' do |app|
32
+ initializer 'bhf.helper' do
19
33
  ActiveSupport.on_load :action_controller do
20
34
  helper Bhf::FrontendHelper
21
35
  end
@@ -30,15 +44,4 @@ module Bhf
30
44
  end
31
45
  end
32
46
  end
33
- end
34
-
35
- require 'haml'
36
- require 'kaminari'
37
- require 'bhf/active_record/active_record'
38
- require 'bhf/mongoid/document'
39
- require 'bhf/data'
40
- require 'bhf/platform'
41
- require 'bhf/config_parser'
42
- require 'bhf/settings'
43
- require 'bhf/pagination'
44
- require 'bhf/form'
47
+ end
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.9
4
+ version: 0.7.11
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-06-02 00:00:00.000000000 Z
11
+ date: 2014-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -118,6 +118,7 @@ files:
118
118
  - app/assets/javascripts/bhf/mootools-more-1.5.0.js
119
119
  - app/assets/javascripts/bhf/mootools_ujs.js
120
120
  - app/assets/stylesheets/bhf/MooEditable.css.scss
121
+ - app/assets/stylesheets/bhf/application.css.css
121
122
  - app/assets/stylesheets/bhf/application.css.sass
122
123
  - app/assets/stylesheets/bhf/functions.css.sass
123
124
  - app/assets/stylesheets/bhf/reset.css.sass