bhf 0.4.2.2 → 0.4.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. data/app/controllers/bhf/application_controller.rb +2 -2
  2. data/app/controllers/bhf/embed_entries_controller.rb +8 -8
  3. data/app/controllers/bhf/entries_controller.rb +10 -10
  4. data/app/controllers/bhf/pages_controller.rb +2 -2
  5. data/app/helpers/bhf/application_helper.rb +3 -3
  6. data/app/helpers/bhf/entries_helper.rb +4 -4
  7. data/app/views/bhf/_user.haml +2 -2
  8. data/app/views/bhf/application/index.haml +1 -1
  9. data/app/views/bhf/entries/_form.haml +5 -5
  10. data/app/views/bhf/entries/_validation_errors.haml +1 -1
  11. data/app/views/bhf/entries/form/belongs_to/_account_scope.haml +1 -1
  12. data/app/views/bhf/entries/form/belongs_to/_radio.haml +1 -1
  13. data/app/views/bhf/entries/form/belongs_to/_select.haml +2 -2
  14. data/app/views/bhf/entries/form/belongs_to/_static.haml +1 -1
  15. data/app/views/bhf/entries/form/column/_array.haml +2 -2
  16. data/app/views/bhf/entries/form/column/_date.haml +1 -1
  17. data/app/views/bhf/entries/form/column/_file.haml +2 -2
  18. data/app/views/bhf/entries/form/column/_markdown.haml +2 -2
  19. data/app/views/bhf/entries/form/column/_multiple_fields.haml +1 -1
  20. data/app/views/bhf/entries/form/column/_number.haml +1 -1
  21. data/app/views/bhf/entries/form/column/_static.haml +1 -1
  22. data/app/views/bhf/entries/form/column/_wysiwyg.haml +1 -1
  23. data/app/views/bhf/entries/form/embeds_many/_static.haml +5 -5
  24. data/app/views/bhf/entries/form/embeds_one/_static.haml +5 -5
  25. data/app/views/bhf/entries/form/has_and_belongs_to_many/_account_scope.haml +1 -1
  26. data/app/views/bhf/entries/form/has_and_belongs_to_many/_static.haml +1 -1
  27. data/app/views/bhf/entries/form/has_many/_static.haml +4 -4
  28. data/app/views/bhf/entries/form/has_one/_account_scope.haml +1 -1
  29. data/app/views/bhf/entries/form/has_one/_static.haml +4 -4
  30. data/app/views/bhf/helper/_flash.haml +1 -1
  31. data/app/views/bhf/helper/_frontend_edit.haml +1 -1
  32. data/app/views/bhf/helper/_node.haml +3 -3
  33. data/app/views/bhf/helper/_reflection_node.haml +2 -2
  34. data/app/views/bhf/pages/_platform.haml +15 -15
  35. data/app/views/bhf/pages/_search.haml +7 -7
  36. data/app/views/bhf/pages/macro/belongs_to/_default.haml +1 -1
  37. data/app/views/bhf/pages/macro/column/_date.haml +1 -1
  38. data/app/views/bhf/pages/macro/column/_text.haml +1 -1
  39. data/app/views/bhf/pages/macro/embeds_many/_default.haml +1 -1
  40. data/app/views/bhf/pages/macro/embeds_one/_default.haml +1 -1
  41. data/app/views/bhf/pages/macro/has_and_belongs_to_many/_default.haml +1 -1
  42. data/app/views/bhf/pages/macro/has_many/_default.haml +1 -1
  43. data/app/views/bhf/pages/macro/has_one/_default.haml +1 -1
  44. data/app/views/bhf/pages/show.haml +1 -1
  45. data/app/views/kaminari/bhf/_next_page.html.haml +1 -1
  46. data/app/views/kaminari/bhf/_page.html.haml +1 -1
  47. data/app/views/kaminari/bhf/_prev_page.html.haml +1 -1
  48. data/app/views/layouts/bhf/application.haml +10 -11
  49. data/app/views/layouts/bhf/quick_edit.haml +2 -2
  50. data/config/routes.rb +6 -6
  51. data/lib/bhf/active_record/upload.rb +1 -1
  52. data/lib/bhf/form.rb +1 -1
  53. data/lib/bhf/i18n.rb +3 -3
  54. data/lib/bhf/mongoid/document.rb +2 -2
  55. data/lib/bhf/pagination.rb +14 -14
  56. data/lib/bhf/platform.rb +17 -17
  57. data/lib/bhf/view_helpers.rb +1 -1
  58. data/vendor/assets/images/bhf/ajax_loader.gif +0 -0
  59. data/vendor/assets/images/bhf/bg.png +0 -0
  60. data/vendor/assets/images/bhf/mooeditable-toolbarbuttons-tango.png +0 -0
  61. data/vendor/assets/images/bhf/pictos.png +0 -0
  62. data/vendor/assets/images/bhf/small_ajax_loader.gif +0 -0
  63. data/vendor/assets/images/bhf/small_ajax_loader_h.gif +0 -0
  64. data/vendor/assets/images/bhf/wmd-buttons.png +0 -0
  65. data/vendor/assets/images/logo_bhf.png +0 -0
  66. data/vendor/assets/javascripts/bhf/application.js +280 -0
  67. data/vendor/assets/javascripts/bhf/classes/AjaxEdit.js +104 -0
  68. data/vendor/assets/javascripts/bhf/classes/Ajaxify.js +63 -0
  69. data/vendor/assets/javascripts/bhf/classes/ArrayFields.js +25 -0
  70. data/vendor/assets/javascripts/bhf/classes/BrowserUpdate.js +185 -0
  71. data/vendor/assets/javascripts/bhf/classes/Datepicker.js +38 -0
  72. data/vendor/assets/javascripts/bhf/classes/MooEditable.js +1549 -0
  73. data/vendor/assets/javascripts/bhf/classes/MultipleFields.js +50 -0
  74. data/vendor/assets/javascripts/bhf_includes/wmd.js +1 -1
  75. data/vendor/assets/stylesheets/bhf/MooEditable.css.scss +176 -0
  76. data/vendor/assets/stylesheets/bhf/application.css.sass +1067 -0
  77. data/vendor/assets/stylesheets/bhf/functions.css.sass +137 -0
  78. data/vendor/assets/stylesheets/bhf/reset.css.sass +32 -0
  79. data/vendor/assets/stylesheets/bhf/typo.css.scss +62 -0
  80. metadata +24 -3
@@ -0,0 +1,137 @@
1
+ =right
2
+ float: right
3
+
4
+ =left
5
+ float: left
6
+
7
+
8
+
9
+ // Borders
10
+
11
+ =border-radius($radius: 4)
12
+ border-radius: $radius + px
13
+ -moz-border-radius: $radius + px
14
+
15
+ =border-diagonal-left-radius($radius: 4)
16
+ border-radius: 0px
17
+ border-bottom-right-radius: $radius + px
18
+ border-top-left-radius: $radius + px
19
+ -moz-border-radius: 0px
20
+ -moz-border-radius-bottomright: $radius + px
21
+ -moz-border-radius-topleft: $radius + px
22
+
23
+ =border-top-radius($radius: 4)
24
+ border-radius: 0px
25
+ border-top-right-radius: $radius + px
26
+ border-top-left-radius: $radius + px
27
+ -moz-border-radius: 0px
28
+ -moz-border-radius-topleft: $radius + px
29
+ -moz-border-radius-topright: $radius + px
30
+
31
+ =border-top-left-radius($radius: 4)
32
+ border-radius: 0px
33
+ border-top-left-radius: $radius + px
34
+ -moz-border-radius: 0px
35
+ -moz-border-radius-topleft: $radius + px
36
+
37
+ =border-top-right-radius($radius: 4)
38
+ border-radius: 0px
39
+ border-top-right-radius: $radius + px
40
+ -moz-border-radius: 0px
41
+ -moz-border-radius-topright: $radius + px
42
+
43
+ =border-bottom-radius($radius: 4)
44
+ border-radius: 0px
45
+ border-bottom-right-radius: $radius + px
46
+ border-bottom-left-radius: $radius + px
47
+ -moz-border-radius: 0px
48
+ -moz-border-radius-bottomright: $radius + px
49
+ -moz-border-radius-bottomleft: $radius + px
50
+
51
+ =border-bottom-left-radius($radius: 4)
52
+ border-radius: 0px
53
+ border-bottom-left-radius: $radius + px
54
+ -moz-border-radius: 0px
55
+ -moz-border-radius-bottomleft: $radius + px
56
+
57
+ =border-bottom-right-radius($radius: 4)
58
+ border-radius: 0px
59
+ border-bottom-right-radius: $radius + px
60
+ -moz-border-radius: 0px
61
+ -moz-border-radius-bottomright: $radius + px
62
+
63
+ =border-left-radius($radius: 4)
64
+ border-radius: 0px
65
+ border-top-left-radius: $radius + px
66
+ border-bottom-left-radius: $radius + px
67
+ -moz-border-radius: 0px
68
+ -moz-border-radius-topleft: $radius + px
69
+ -moz-border-radius-bottomleft: $radius + px
70
+
71
+ =border-right-radius($radius: 4)
72
+ border-radius: 0px
73
+ border-top-right-radius: $radius + px
74
+ border-bottom-right-radius: $radius + px
75
+ -moz-border-radius: 0px
76
+ -moz-border-radius-topright: $radius + px
77
+ -moz-border-radius-bottomright: $radius + px
78
+
79
+ =box-shadow($x: 0, $y: 0, $blur: 0, $color: #000000)
80
+ box-shadow: $x + px $y + px $blur + px $color
81
+ -moz-box-shadow: $x + px $y + px $blur + px $color
82
+ -webkit-box-shadow: $x + px $y + px $blur + px $color
83
+
84
+ =box-inner-shadow($x: 0, $y: 0, $blur: 0, $color: #000000)
85
+ box-shadow: inset $x + px $y + px $blur + px $color
86
+ -moz-box-shadow: inset $x + px $y + px $blur + px $color
87
+ -webkit-box-shadow: inset $x + px $y + px $blur + px $color
88
+
89
+
90
+ =border-image($url, $top: 0, $bottom: 0, $left: 0, $right: 0, $repeat_x: stretch, $repeat_y: stretch)
91
+ border-image-source: url($url)
92
+ border-image-slice: $top $left $bottom $right
93
+ border-image-repeat: $repeat_x $repeat_y
94
+ -webkit-border-image-source: url($url)
95
+ -webkit-border-image-slice: $top $left $bottom $right
96
+ -webkit-border-image-repeat: $repeat_x $repeat_y
97
+ -moz-border-image-source: url($url)
98
+ -moz-border-image-slice: $top $left $bottom $right
99
+ -moz-border-image-repeat: $repeat_x $repeat_y
100
+
101
+
102
+ // Border box
103
+
104
+ =box-model($model: border-box)
105
+ box-sizing: $model
106
+ -ms-box-sizing: $model
107
+ -moz-box-sizing: $model
108
+ -webkit-box-sizing: $model
109
+
110
+ // Gradient
111
+
112
+ =bg-gradient($c1, $c2)
113
+ background: $c1
114
+ background: -moz-linear-gradient(top, $c1, $c2)
115
+ background: -webkit-gradient(linear, left top, left bottom, from($c1), to($c2))
116
+
117
+ // Text
118
+
119
+ =text-shadow($color: #000, $top: 1, $left: 0, $blur: 0)
120
+ text-shadow: $color $left + px $top + px $blur + px
121
+
122
+ // Transitions
123
+
124
+ =transition-duration($sec: 0.5)
125
+ transition-duration: $sec + s
126
+ -moz-transition-duration: $sec + s
127
+ -webkit-transition-duration: $sec + s
128
+
129
+ =transition-property($prop)
130
+ transition-property: $prop
131
+ -moz-transition-property: $prop
132
+ -webkit-transition-property: $prop
133
+
134
+ =transition-delay($sec: 0.5)
135
+ transition-delay: $sec + s
136
+ -moz-transition-delay: $sec + s
137
+ -webkit-transition-delay: $sec + s
@@ -0,0 +1,32 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, font, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td
10
+ margin: 0
11
+ padding: 0
12
+ border: 0
13
+ outline: 0
14
+ font-size: 100%
15
+ vertical-align: baseline
16
+ background: transparent
17
+ body
18
+ line-height: 1
19
+ ol, ul
20
+ list-style: none
21
+
22
+
23
+ // remember to highlight inserts somehow!
24
+ ins
25
+ text-decoration: none
26
+ del
27
+ text-decoration: line-through
28
+
29
+
30
+ // tables still need 'cellspacing="0"' in the markup
31
+ table
32
+ border-spacing: 0
@@ -0,0 +1,62 @@
1
+ /*
2
+ 960 Grid System ~ Text CSS.
3
+ Learn more ~ http://960.gs/
4
+
5
+ Licensed under GPL and MIT.
6
+ */
7
+
8
+ /* `Basic HTML
9
+ ----------------------------------------------------------------------------------------------------*/
10
+
11
+ textarea,
12
+ input,
13
+ button,
14
+ body {
15
+ font: 14px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
16
+ }
17
+
18
+ a:focus {
19
+ outline: 1px dotted;
20
+ }
21
+
22
+ hr {
23
+ border: 0 #C8C8C8 solid;
24
+ border-top-width: 1px;
25
+ clear: both;
26
+ height: 0;
27
+ margin-bottom: 20px;
28
+ }
29
+
30
+ /* `Headings
31
+ ----------------------------------------------------------------------------------------------------*/
32
+
33
+ h1 {
34
+ font-size: 25px;
35
+ }
36
+
37
+ h2 {
38
+ font-size: 23px;
39
+ }
40
+
41
+ h3 {
42
+ font-size: 21px;
43
+ }
44
+
45
+ h4 {
46
+ font-size: 19px;
47
+ }
48
+
49
+ h5 {
50
+ font-size: 17px;
51
+ }
52
+
53
+ h6 {
54
+ font-size: 15px;
55
+ }
56
+
57
+ /* `Spacing
58
+ ----------------------------------------------------------------------------------------------------*/
59
+
60
+ ol {
61
+ list-style: decimal;
62
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 99
4
+ hash: 97
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 2
10
- - 2
11
- version: 0.4.2.2
10
+ - 3
11
+ version: 0.4.2.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Anton Pawlik
@@ -159,10 +159,31 @@ files:
159
159
  - lib/bhf/view_helpers.rb
160
160
  - lib/engine.rb
161
161
  - lib/rails/generators/bhf/templates/initializer.rb
162
+ - vendor/assets/images/bhf/ajax_loader.gif
163
+ - vendor/assets/images/bhf/bg.png
164
+ - vendor/assets/images/bhf/mooeditable-toolbarbuttons-tango.png
165
+ - vendor/assets/images/bhf/pictos.png
166
+ - vendor/assets/images/bhf/small_ajax_loader.gif
167
+ - vendor/assets/images/bhf/small_ajax_loader_h.gif
168
+ - vendor/assets/images/bhf/wmd-buttons.png
169
+ - vendor/assets/images/logo_bhf.png
170
+ - vendor/assets/javascripts/bhf/application.js
171
+ - vendor/assets/javascripts/bhf/classes/AjaxEdit.js
172
+ - vendor/assets/javascripts/bhf/classes/Ajaxify.js
173
+ - vendor/assets/javascripts/bhf/classes/ArrayFields.js
174
+ - vendor/assets/javascripts/bhf/classes/BrowserUpdate.js
175
+ - vendor/assets/javascripts/bhf/classes/Datepicker.js
176
+ - vendor/assets/javascripts/bhf/classes/MooEditable.js
177
+ - vendor/assets/javascripts/bhf/classes/MultipleFields.js
162
178
  - vendor/assets/javascripts/bhf/mootools-core-1.3.2-full-compat-yc.js
163
179
  - vendor/assets/javascripts/bhf/mootools-more-1.3.2.1.js
164
180
  - vendor/assets/javascripts/bhf_includes/showdown.js
165
181
  - vendor/assets/javascripts/bhf_includes/wmd.js
182
+ - vendor/assets/stylesheets/bhf/MooEditable.css.scss
183
+ - vendor/assets/stylesheets/bhf/application.css.sass
184
+ - vendor/assets/stylesheets/bhf/functions.css.sass
185
+ - vendor/assets/stylesheets/bhf/reset.css.sass
186
+ - vendor/assets/stylesheets/bhf/typo.css.scss
166
187
  - README.md
167
188
  has_rdoc: true
168
189
  homepage: http://github.com/antpaw/bahnhof