activeadmin 1.0.0.pre1 → 1.0.0.pre2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +18 -16
  3. data/CHANGELOG.md +18 -1013
  4. data/Gemfile +18 -11
  5. data/LICENSE +0 -5
  6. data/README.md +0 -2
  7. data/activeadmin.gemspec +3 -1
  8. data/app/assets/javascripts/active_admin/application.js.coffee +8 -3
  9. data/app/assets/javascripts/active_admin/base.js.coffee +1 -6
  10. data/app/assets/javascripts/active_admin/jquery_ui.js.erb +11 -0
  11. data/app/assets/javascripts/active_admin/lib/flash.js.coffee +1 -1
  12. data/app/assets/javascripts/active_admin/lib/modal_dialog.js.coffee +11 -3
  13. data/app/assets/javascripts/active_admin/lib/per_page.js.coffee +5 -1
  14. data/app/assets/stylesheets/active_admin/_base.scss +1 -4
  15. data/app/assets/stylesheets/active_admin/_forms.scss +13 -8
  16. data/app/assets/stylesheets/active_admin/components/_buttons.scss +0 -5
  17. data/app/assets/stylesheets/active_admin/mixins/_all.scss +0 -1
  18. data/app/assets/stylesheets/active_admin/mixins/_sections.scss +0 -1
  19. data/app/assets/stylesheets/active_admin/mixins/_typography.scss +1 -1
  20. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +1 -1
  21. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -5
  22. data/app/views/layouts/active_admin_logged_out.html.erb +4 -0
  23. data/config/locales/ar.yml +14 -2
  24. data/config/locales/de-CH.yml +2 -0
  25. data/config/locales/de.yml +15 -0
  26. data/config/locales/en.yml +10 -2
  27. data/config/locales/es.yml +26 -4
  28. data/config/locales/fr.yml +5 -0
  29. data/config/locales/id.yml +135 -0
  30. data/config/locales/ja.yml +21 -3
  31. data/config/locales/ko.yml +66 -36
  32. data/config/locales/nl.yml +14 -1
  33. data/config/locales/pt-BR.yml +11 -0
  34. data/config/locales/ru.yml +15 -1
  35. data/config/locales/sv-SE.yml +45 -5
  36. data/config/locales/uk.yml +16 -4
  37. data/config/locales/zh-CN.yml +5 -0
  38. data/config/locales/zh-TW.yml +32 -1
  39. data/docs/0-installation.md +7 -1
  40. data/docs/1-general-configuration.md +9 -0
  41. data/docs/10-custom-pages.md +10 -0
  42. data/docs/12-arbre-components.md +1 -1
  43. data/docs/14-gotchas.md +2 -2
  44. data/docs/2-resource-customization.md +5 -3
  45. data/docs/3-index-pages.md +7 -0
  46. data/docs/3-index-pages/index-as-table.md +4 -0
  47. data/docs/6-show-pages.md +1 -1
  48. data/docs/7-sidebars.md +8 -0
  49. data/features/index/batch_actions.feature +21 -2
  50. data/features/index/pagination.feature +16 -12
  51. data/features/meta_tags.feature +21 -0
  52. data/features/registering_assets.feature +1 -2
  53. data/features/show/columns.feature +40 -0
  54. data/features/show/default_content.feature +2 -1
  55. data/features/step_definitions/asset_steps.rb +3 -3
  56. data/features/step_definitions/batch_action_steps.rb +11 -2
  57. data/features/step_definitions/column_steps.rb +8 -0
  58. data/features/step_definitions/configuration_steps.rb +2 -2
  59. data/features/step_definitions/factory_steps.rb +3 -2
  60. data/features/step_definitions/meta_tag_steps.rb +3 -0
  61. data/features/step_definitions/pagination_steps.rb +8 -0
  62. data/features/step_definitions/table_steps.rb +2 -1
  63. data/lib/active_admin.rb +3 -3
  64. data/lib/active_admin/application.rb +66 -16
  65. data/lib/active_admin/batch_actions.rb +0 -1
  66. data/lib/active_admin/batch_actions/controller.rb +2 -2
  67. data/lib/active_admin/batch_actions/resource_extension.rb +3 -1
  68. data/lib/active_admin/callbacks.rb +1 -1
  69. data/lib/active_admin/csv_builder.rb +2 -2
  70. data/lib/active_admin/dependency.rb +18 -16
  71. data/lib/active_admin/devise.rb +1 -1
  72. data/lib/active_admin/dsl.rb +1 -1
  73. data/lib/active_admin/event.rb +8 -17
  74. data/lib/active_admin/filters/active.rb +29 -0
  75. data/lib/active_admin/filters/forms.rb +6 -1
  76. data/lib/active_admin/filters/humanized.rb +68 -0
  77. data/lib/active_admin/filters/resource_extension.rb +48 -1
  78. data/lib/active_admin/form_builder.rb +4 -4
  79. data/lib/active_admin/generators/boilerplate.rb +37 -0
  80. data/lib/active_admin/helpers/routes/url_helpers.rb +1 -1
  81. data/lib/active_admin/inputs.rb +1 -0
  82. data/lib/active_admin/inputs/filters/date_picker_input.rb +13 -0
  83. data/lib/active_admin/inputs/filters/date_range_input.rb +1 -1
  84. data/lib/active_admin/menu.rb +1 -0
  85. data/lib/active_admin/menu_item.rb +1 -1
  86. data/lib/active_admin/namespace.rb +5 -5
  87. data/lib/active_admin/orm/active_record/comments.rb +10 -1
  88. data/lib/active_admin/orm/active_record/comments/comment.rb +1 -1
  89. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +11 -0
  90. data/lib/active_admin/resource.rb +9 -3
  91. data/lib/active_admin/resource/action_items.rb +13 -3
  92. data/lib/active_admin/resource/belongs_to.rb +6 -2
  93. data/lib/active_admin/resource/pagination.rb +4 -0
  94. data/lib/active_admin/resource_collection.rb +3 -1
  95. data/lib/active_admin/resource_controller/data_access.rb +6 -11
  96. data/lib/active_admin/resource_controller/decorators.rb +1 -1
  97. data/lib/active_admin/resource_dsl.rb +8 -2
  98. data/lib/active_admin/sidebar_section.rb +4 -12
  99. data/lib/active_admin/version.rb +1 -1
  100. data/lib/active_admin/view_factory.rb +1 -2
  101. data/lib/active_admin/view_helpers.rb +0 -1
  102. data/lib/active_admin/view_helpers/display_helper.rb +3 -4
  103. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +3 -3
  104. data/lib/active_admin/views/components/active_admin_form.rb +3 -3
  105. data/lib/active_admin/views/components/columns.rb +9 -4
  106. data/lib/active_admin/views/components/dropdown_menu.rb +0 -2
  107. data/lib/active_admin/views/components/paginated_collection.rb +35 -13
  108. data/lib/active_admin/views/components/panel.rb +1 -3
  109. data/lib/active_admin/views/components/sidebar_section.rb +6 -1
  110. data/lib/active_admin/views/components/status_tag.rb +3 -2
  111. data/lib/active_admin/views/components/table_for.rb +2 -1
  112. data/lib/active_admin/views/index_as_table.rb +2 -2
  113. data/lib/active_admin/views/pages/base.rb +4 -0
  114. data/lib/active_admin/views/pages/show.rb +1 -1
  115. data/lib/generators/active_admin/assets/assets_generator.rb +1 -1
  116. data/lib/generators/active_admin/assets/templates/{active_admin.css.scss → active_admin.scss} +0 -0
  117. data/lib/generators/active_admin/devise/devise_generator.rb +7 -19
  118. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +29 -0
  119. data/lib/generators/active_admin/page/templates/page.rb +1 -1
  120. data/lib/generators/active_admin/resource/resource_generator.rb +6 -0
  121. data/lib/generators/active_admin/resource/templates/admin.rb +34 -13
  122. data/spec/rails_helper.rb +6 -2
  123. data/spec/requests/memory_spec.rb +1 -3
  124. data/spec/support/active_admin_request_helpers.rb +27 -0
  125. data/spec/support/detect_rails_version.rb +1 -1
  126. data/spec/support/rails_template.rb +7 -0
  127. data/spec/unit/application_spec.rb +29 -4
  128. data/spec/unit/batch_actions/resource_spec.rb +5 -0
  129. data/spec/unit/belongs_to_spec.rb +14 -0
  130. data/spec/unit/comments_spec.rb +24 -2
  131. data/spec/unit/controller_filters_spec.rb +25 -28
  132. data/spec/unit/dsl_spec.rb +1 -1
  133. data/spec/unit/filters/humanized_spec.rb +56 -0
  134. data/spec/unit/filters/resource_spec.rb +1 -1
  135. data/spec/unit/form_builder_spec.rb +71 -11
  136. data/spec/unit/generators/install_spec.rb +3 -2
  137. data/spec/unit/pretty_format_spec.rb +15 -1
  138. data/spec/unit/resource_collection_spec.rb +17 -0
  139. data/spec/unit/resource_controller_spec.rb +2 -2
  140. data/spec/unit/resource_registration_spec.rb +3 -3
  141. data/spec/unit/resource_spec.rb +53 -2
  142. data/spec/unit/view_factory_spec.rb +0 -2
  143. data/spec/unit/view_helpers/display_name_spec.rb +6 -4
  144. data/spec/unit/views/components/{batch_action_popover_spec.rb → batch_action_selector_spec.rb} +9 -13
  145. data/spec/unit/views/components/columns_spec.rb +17 -0
  146. data/spec/unit/views/components/paginated_collection_spec.rb +16 -2
  147. data/spec/unit/views/components/panel_spec.rb +1 -5
  148. data/spec/unit/views/components/sidebar_section_spec.rb +21 -0
  149. data/spec/unit/views/components/status_tag_spec.rb +15 -1
  150. data/spec/unit/views/components/table_for_spec.rb +45 -0
  151. data/tasks/parallel_tests.rake +1 -1
  152. data/tasks/test.rake +4 -4
  153. metadata +29 -30
  154. data/app/assets/javascripts/active_admin/lib/popover.js.coffee +0 -68
  155. data/app/assets/stylesheets/active_admin/components/_popovers.scss +0 -122
  156. data/app/assets/stylesheets/active_admin/mixins/_icons.scss +0 -20
  157. data/lib/active_admin/batch_actions/views/batch_action_popover.rb +0 -28
  158. data/lib/active_admin/iconic.rb +0 -53
  159. data/lib/active_admin/iconic/icons.rb +0 -142
  160. data/lib/active_admin/view_helpers/icon_helper.rb +0 -12
  161. data/lib/active_admin/views/components/action_list_popover.rb +0 -29
  162. data/lib/active_admin/views/components/popover.rb +0 -27
  163. data/spec/javascripts/coffeescripts/jquery.aa.popover-spec.js.coffee +0 -82
  164. data/spec/support/integration_example_group.rb +0 -31
  165. data/spec/unit/event_spec.rb +0 -47
  166. data/spec/unit/views/components/action_list_popover_spec.rb +0 -40
  167. data/spec/unit/views/components/popover_spec.rb +0 -33
data/Gemfile CHANGED
@@ -7,6 +7,11 @@ require File.expand_path 'spec/support/detect_rails_version', File.dirname(__FIL
7
7
  rails_version = detect_rails_version
8
8
  gem 'rails', rails_version
9
9
 
10
+ jquery_ui_rails_version = rails_version > "4" ? "~> 5.0" : "~> 4.0"
11
+ gem 'jquery-ui-rails', jquery_ui_rails_version
12
+
13
+ gem 'execjs', '~> 2.4.0' # ~> 2.5.0 works only for Ruby > 2.0
14
+
10
15
  # Optional dependencies
11
16
  gem 'cancan'
12
17
  gem 'devise'
@@ -18,37 +23,39 @@ gem 'rake', require: false
18
23
  gem 'parallel_tests'
19
24
 
20
25
  # Debugging
21
- gem 'pry' # Easily debug from your console with `binding.pry`
26
+ gem 'pry' # Easily debug from your console with `binding.pry`
22
27
 
23
28
  group :development do
24
29
  # Debugging
25
- gem 'better_errors' # Web UI to debug exceptions. Go to /__better_errors to access the latest one
26
- gem 'binding_of_caller' # Retrieve the binding of a method's caller in MRI Ruby >= 1.9.2
30
+ gem 'better_errors' # Web UI to debug exceptions. Go to /__better_errors to access the latest one
31
+ gem 'binding_of_caller', platforms: :mri # Retrieve the binding of a method's caller in MRI Ruby >= 1.9.2
27
32
 
28
33
  # Performance
29
- gem 'rack-mini-profiler' # Inline app profiler. See ?pp=help for options.
30
- gem 'flamegraph' # Flamegraph visualiztion: ?pp=flamegraph
34
+ gem 'rack-mini-profiler' # Inline app profiler. See ?pp=help for options.
35
+ gem 'flamegraph', platforms: :mri # Flamegraph visualiztion: ?pp=flamegraph
31
36
 
32
37
  # Documentation
33
- gem 'yard' # Documentation generator
34
- gem 'redcarpet' # Markdown implementation (for yard)
38
+ gem 'yard' # Documentation generator
39
+ gem 'redcarpet', platforms: :mri # Markdown implementation (for yard)
40
+ gem 'kramdown', platforms: :jruby # Markdown implementation (for yard)
35
41
  end
36
42
 
37
43
  group :test do
38
44
  gem 'capybara'
39
- gem 'simplecov', require: false # Test coverage generator. Go to /coverage/ after running tests
40
- gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
45
+ gem 'simplecov', require: false # Test coverage generator. Go to /coverage/ after running tests
46
+ gem 'coveralls', require: false # Test coverage website. Go to https://coveralls.io
41
47
  gem 'cucumber-rails', require: false
42
48
  gem 'database_cleaner'
43
49
  gem 'guard-rspec'
44
50
  gem 'jasmine'
45
51
  gem 'jslint_on_rails'
46
52
  gem 'launchy'
47
- gem 'rails-i18n' # Provides default i18n for many languages
53
+ gem 'rails-i18n' # Provides default i18n for many languages
48
54
  gem 'rspec'
49
55
  gem 'rspec-rails', '~> 3.1.0'
50
56
  gem 'i18n-spec'
51
57
  gem 'shoulda-matchers'
52
- gem 'sqlite3'
58
+ gem 'sqlite3', platforms: :mri
59
+ gem 'activerecord-jdbcsqlite3-adapter', platforms: :jruby
53
60
  gem 'poltergeist'
54
61
  end
data/LICENSE CHANGED
@@ -18,8 +18,3 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
18
  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
19
  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
20
  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- Iconic Icons are designed by P.J. Onori and are shared under
23
- the Creative Commons Attribution-Share Alike 3.0 license:
24
- http://creativecommons.org/licenses/by-sa/3.0/us
25
- http://somerandomdude.com/projects/iconic/
data/README.md CHANGED
@@ -84,7 +84,6 @@ Tool | Description
84
84
  [Arbre] | Ruby -> HTML, just like that.
85
85
  [Devise] | Powerful, extensible user authentication
86
86
  [Formtastic] | A Rails form builder plugin with semantically rich and accessible markup
87
- [Iconic Icons] | An excellent SVG icon set designed by P.J. Onori
88
87
  [Inherited Resources] | Simplifies controllers with pre-built RESTful controller actions
89
88
  [Kaminari] | Elegant pagination for any sort of collection
90
89
  [Ransack] | Provides a simple search API to query your data
@@ -92,7 +91,6 @@ Tool | Description
92
91
  [Arbre]: https://github.com/activeadmin/arbre
93
92
  [Devise]: https://github.com/plataformatec/devise
94
93
  [Formtastic]: https://github.com/justinfrench/formtastic
95
- [Iconic Icons]: http://somerandomdude.com/projects/iconic
96
94
  [Inherited Resources]: https://github.com/josevalim/inherited_resources
97
95
  [Kaminari]: https://github.com/amatsuda/kaminari
98
96
  [Ransack]: https://github.com/activerecord-hackery/ransack
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.files = `git ls-files`.split("\n").sort
14
14
  s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
15
15
 
16
+ s.required_ruby_version = '>= 1.9.3'
17
+
16
18
  s.add_dependency 'arbre', '~> 1.0', '>= 1.0.2'
17
19
  s.add_dependency 'bourbon'
18
20
  s.add_dependency 'coffee-rails'
@@ -20,7 +22,7 @@ Gem::Specification.new do |s|
20
22
  s.add_dependency 'formtastic_i18n'
21
23
  s.add_dependency 'inherited_resources', '~> 1.6'
22
24
  s.add_dependency 'jquery-rails'
23
- s.add_dependency 'jquery-ui-rails', '~> 5.0'
25
+ s.add_dependency 'jquery-ui-rails'
24
26
  s.add_dependency 'kaminari', '~> 0.15'
25
27
  s.add_dependency 'rails', '>= 3.2', '< 5.0'
26
28
  s.add_dependency 'ransack', '~> 1.3'
@@ -1,10 +1,15 @@
1
1
  # Initializers
2
2
  $(document).on 'ready page:load', ->
3
3
  # jQuery datepickers (also evaluates dynamically added HTML)
4
- $(document).on 'focus', '.datepicker:not(.hasDatepicker)', ->
4
+ $(document).on 'focus', 'input.datepicker:not(.hasDatepicker)', ->
5
+ $input = $(@)
6
+
7
+ # Only applying datepicker to compatible browsers
8
+ return if $input[0].type is 'date'
9
+
5
10
  defaults = dateFormat: 'yy-mm-dd'
6
- options = $(@).data 'datepicker-options'
7
- $(@).datepicker $.extend(defaults, options)
11
+ options = $input.data 'datepicker-options'
12
+ $input.datepicker $.extend(defaults, options)
8
13
 
9
14
  # Clear Filters button
10
15
  $('.clear_filters_btn').click ->
@@ -1,11 +1,6 @@
1
1
  #= require jquery
2
- #= require jquery-ui/datepicker
3
- #= require jquery-ui/dialog
4
- #= require jquery-ui/sortable
5
- #= require jquery-ui/widget
6
- #= require jquery-ui/tabs
2
+ #= require ./jquery_ui
7
3
  #= require jquery_ujs
8
- #
9
4
  #= require_self
10
5
  #= require_tree ./lib
11
6
  #= require_tree ./ext
@@ -0,0 +1,11 @@
1
+ <% jquery_ui_path = if Jquery::Ui::Rails::VERSION >= "5"
2
+ "jquery-ui/"
3
+ else
4
+ "jquery.ui."
5
+ end
6
+ %>
7
+ <% require_asset "#{jquery_ui_path}datepicker" %>
8
+ <% require_asset "#{jquery_ui_path}dialog" %>
9
+ <% require_asset "#{jquery_ui_path}sortable" %>
10
+ <% require_asset "#{jquery_ui_path}widget" %>
11
+ <% require_asset "#{jquery_ui_path}tabs" %>
@@ -7,7 +7,7 @@ ActiveAdmin.flash =
7
7
  reference: ->
8
8
  @reference
9
9
  constructor: (@message, @type = "notice", close_after) ->
10
- @reference = jQuery("<div>").addClass("flash flash_#{type}").text(message)
10
+ @reference = jQuery("<div>").addClass("flash flash_#{@type}").text(@message)
11
11
  jQuery ".flashes"
12
12
  .append @reference
13
13
  @close_after close_after if close_after?
@@ -16,18 +16,26 @@ ActiveAdmin.modal_dialog = (message, inputs, callback)->
16
16
  <#{wrapper} name="#{name}" class="#{klass}" type="#{type}">""" +
17
17
  (if opts then (
18
18
  for v in opts
19
+ $elem = $("<#{elem}/>")
19
20
  if $.isArray v
20
- "<#{elem} value=#{v[1]}>#{v[0]}</#{elem}>"
21
+ $elem.text(v[0]).val(v[1])
21
22
  else
22
- "<#{elem}>#{v}</#{elem}>"
23
+ $elem.text(v)
24
+ $elem.wrap('<div>').parent().html()
23
25
  ).join '' else '') +
24
26
  "</#{wrapper}>" +
25
27
  "</li>"
26
28
  [wrapper, elem, opts, type, klass] = [] # unset any temporary variables
27
29
 
28
30
  html += "</ul></form>"
29
- $(html).appendTo('body').dialog
31
+
32
+ form = $(html).appendTo('body')
33
+ $('body').trigger 'modal_dialog:before_open', [form]
34
+
35
+ form.dialog
30
36
  modal: true
37
+ open: (event, ui) ->
38
+ $('body').trigger 'modal_dialog:after_open', [form]
31
39
  dialogClass: 'active_admin_dialog'
32
40
  buttons:
33
41
  OK: ->
@@ -18,8 +18,12 @@ class ActiveAdmin.PerPage
18
18
  params = {}
19
19
  re = /([^&=]+)=([^&]*)/g
20
20
  while m = re.exec(query)
21
- params[decodeURIComponent(m[1])] = decodeURIComponent(m[2])
21
+ params[@_decode(m[1])] = @_decode(m[2])
22
22
  params
23
+
24
+ _decode: (value) ->
25
+ #replace "+" before decodeURIComponent
26
+ decodeURIComponent(value.replace(/\+/g, '%20'))
23
27
 
24
28
  $.widget.bridge 'perPage', ActiveAdmin.PerPage
25
29
 
@@ -9,7 +9,6 @@
9
9
  @import "active_admin/components/comments";
10
10
  @import "active_admin/components/flash_messages";
11
11
  @import "active_admin/components/date_picker";
12
- @import "active_admin/components/popovers";
13
12
  @import "active_admin/components/tables";
14
13
  @import "active_admin/components/batch_actions";
15
14
  @import "active_admin/components/modal_dialog";
@@ -35,10 +34,8 @@
35
34
 
36
35
  body {
37
36
  @include sans-family;
38
- line-height: 150%;
37
+ line-height: 1.5;
39
38
  font-size: 72%;
40
39
  background: $body-background-color;
41
- margin: 0;
42
- padding: 0;
43
40
  color: $text-color;
44
41
  }
@@ -59,7 +59,6 @@ form {
59
59
  .has_many_container {
60
60
  .handle {
61
61
  position: absolute;
62
- @include icon-size(3em);
63
62
  top: calc(50% - 3em / 2);
64
63
  right: 2px;
65
64
  padding: 0;
@@ -119,7 +118,14 @@ form {
119
118
  }
120
119
 
121
120
  /* Text Fields */
122
- input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
121
+ input[type=text],
122
+ input[type=password],
123
+ input[type=email],
124
+ input[type=number],
125
+ input[type=url],
126
+ input[type=tel],
127
+ input[type=date],
128
+ textarea {
123
129
  width: calc(80% - #{$text-input-total-padding});
124
130
  border: $border-width solid #c9d0d6;
125
131
  @include rounded;
@@ -134,6 +140,10 @@ form {
134
140
  }
135
141
  }
136
142
 
143
+ input[type=date] {
144
+ width: calc(100% - #{$text-input-total-padding});
145
+ }
146
+
137
147
  fieldset > ol > li {
138
148
 
139
149
  /* Hints */
@@ -235,13 +245,8 @@ form {
235
245
  float:left;
236
246
  padding: 0;
237
247
 
238
- &.cancel {
239
- a {
240
- @include light-button; @include icon(#777, 9px);
241
- }
242
- }
248
+ &.cancel a { @include light-button; }
243
249
  }
244
-
245
250
  }
246
251
 
247
252
  // -------------------------------------- Sidebar Forms
@@ -1,8 +1,3 @@
1
- td, p {
2
- @include icon(#B3BCC1, 0.8em);
3
- span.icon { margin: 0 3px; }
4
- }
5
-
6
1
  a.member_link {
7
2
  margin-right: 7px;
8
3
  white-space: nowrap;
@@ -2,7 +2,6 @@
2
2
  @import "active_admin/mixins/reset";
3
3
  @import "active_admin/mixins/gradients";
4
4
  @import "active_admin/mixins/shadows";
5
- @import "active_admin/mixins/icons";
6
5
  @import "active_admin/mixins/rounded";
7
6
  @import "active_admin/mixins/buttons";
8
7
  @import "active_admin/mixins/sections";
@@ -10,7 +10,6 @@
10
10
  line-height: 18px;
11
11
  margin-bottom: 0.5em;
12
12
  color: $section-header-text-color;
13
- @include icon($section-header-text-color, 1.0em);
14
13
 
15
14
  padding: 5px 10px 3px 10px;
16
15
  }
@@ -1,3 +1,3 @@
1
1
  @mixin sans-family {
2
- font-family: Helvetica, Arial, sans-serif;
2
+ font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  // Variables used throughout Active Admin.
2
2
  // They can be overridden by prepending your own
3
- // to 'app/assets/stylesheets/active_admin.css.scss'.
3
+ // to 'app/assets/stylesheets/active_admin.scss'.
4
4
 
5
5
  // Colors
6
6
  $body-background-color: #FFF !default;
@@ -34,12 +34,7 @@
34
34
  & > a, & > .dropdown_menu > a {
35
35
  @include light-button;
36
36
  padding: 12px 17px 10px;
37
- span.icon { vertical-align: bottom; margin-right: 4px;}
38
37
  margin: 0px;
39
-
40
- &:hover{
41
- @include icon-color(#000);
42
- }
43
38
  }
44
39
  }
45
40
  }
@@ -14,6 +14,10 @@
14
14
 
15
15
  <%= favicon_link_tag ActiveAdmin.application.favicon if ActiveAdmin.application.favicon %>
16
16
 
17
+ <% ActiveAdmin.application.meta_tags_for_logged_out_pages.each do |name, content| %>
18
+ <%= tag(:meta, name: name, content: content) %>
19
+ <% end %>
20
+
17
21
  <%= csrf_meta_tag %>
18
22
  </head>
19
23
  <body class="active_admin logged_out <%= controller.action_name %>">
@@ -31,6 +31,10 @@ ar:
31
31
  ends_with: "ينتهي ب"
32
32
  greater_than: "اكثر من"
33
33
  less_than: "اقل من"
34
+ search_status:
35
+ headline: "المجال:"
36
+ current_filters: "المُرشحات الحاليّة:"
37
+ no_current_filters: "بدون"
34
38
  status_tag:
35
39
  "yes": "نعم"
36
40
  "no": "لا"
@@ -38,7 +42,8 @@ ar:
38
42
  logout: "تسجيل الخروج"
39
43
  powered_by: "تنفيذ %{active_admin} %{version}"
40
44
  sidebars:
41
- filters: "التصنيفات"
45
+ filters: "المُرشحات"
46
+ search_status: "حالات البحث"
42
47
  pagination:
43
48
  empty: "لا يوجد %{model} "
44
49
  one: "عرض <b>1</b> %{model}"
@@ -83,7 +88,7 @@ ar:
83
88
  username:
84
89
  title: "اسم المستخدم"
85
90
  email:
86
- title: "إايميل"
91
+ title: "البريد الإلكترونيّ"
87
92
  subdomain:
88
93
  title: "فرعي"
89
94
  password:
@@ -108,9 +113,16 @@ ar:
108
113
  title: ""
109
114
  submit: "إعادة ارسال تعليمات التأكيد"
110
115
  links:
116
+ sign_up: "التسجيل"
111
117
  sign_in: "دخول"
112
118
  forgot_your_password: "هل نسيت كلمة المرور؟"
113
119
  sign_in_with_omniauth_provider: "تسجيل الدخول ب %{provider}"
120
+ resend_unlock_instructions: "إعادة إرسال تعليمات تنشيط الحساب"
121
+ resend_confirmation_instructions: "إعادة إرسال تعليمات تأكيد الحساب"
122
+ unsupported_browser:
123
+ headline: "يُرجى مُلاحظة أن أكتف أدمن لم تعد تدعم المُتصفّح إنترنت اكسبلورر الإصدار الثامن وما قبله"
124
+ recommendation: "ننصح بالتحديث إلى الإصدار الأخير <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, أو <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
125
+ turn_off_compatibility_view: "إن كنت تستخدم الإصدار التاسع من إنترنت إكسبلورر فتأكّد من أن <a href=\"http://windows.microsoft.com/en-US/windows7/webpages-look-incorrect-in-Internet-Explorer\">turn off \"Compatibility View\"</a>."
114
126
  access_denied:
115
127
  message: "غير مصرح لك"
116
128
  index_list:
@@ -72,6 +72,8 @@
72
72
  title: "Kommentar"
73
73
  resource: "Resource"
74
74
  add: "Kommentar hinzufügen"
75
+ delete: "Löschen"
76
+ delete_confirmation: "Sind Sie sicher dass sie diesen Kommentar löschen wollen?"
75
77
  no_comments_yet: "Es gibt noch keine Kommentare."
76
78
  title_content: "Kommentare (%{count})"
77
79
  errors:
@@ -31,6 +31,10 @@ de:
31
31
  ends_with: "Endet mit"
32
32
  greater_than: "Größer als"
33
33
  less_than: "Kleiner als"
34
+ search_status:
35
+ headline: "Anwendungsbereich:"
36
+ current_filters: "Aktuelle Filter:"
37
+ no_current_filters: "Keine"
34
38
  status_tag:
35
39
  "yes": "Ja"
36
40
  "no": "Nein"
@@ -39,6 +43,7 @@ de:
39
43
  powered_by: "Powered by %{active_admin} %{version}"
40
44
  sidebars:
41
45
  filters: "Filter"
46
+ search_status: "Suchstatus"
42
47
  pagination:
43
48
  empty: "Keine %{model} gefunden"
44
49
  one: "Zeige <b>1</b> %{model}"
@@ -73,6 +78,8 @@ de:
73
78
  author: "Autor"
74
79
  title: "Kommentar"
75
80
  add: "Kommentar hinzufügen"
81
+ delete: "Löschen"
82
+ delete_confirmation: "Sind Sie sicher dass sie diesen Kommentar löschen wollen?"
76
83
  resource: "Res­sour­ce"
77
84
  no_comments_yet: "Es gibt noch keine Kommentare."
78
85
  author_missing: "Unbekannt"
@@ -101,6 +108,9 @@ de:
101
108
  change_password:
102
109
  title: "Ändern Sie Ihr Passwort"
103
110
  submit: "Mein Passwort ändern"
111
+ unlock:
112
+ title: "Entsperrungsanweisung erneut senden"
113
+ submit: "Entsperrungsanweisung erneut senden"
104
114
  resend_confirmation_instructions:
105
115
  title: "Anleitung zur Bestätigung noch mal schicken"
106
116
  submit: "Anleitung zur Bestätigung noch mal schicken"
@@ -117,3 +127,8 @@ de:
117
127
  turn_off_compatibility_view: "Wenn sie IE 9 oder neuer benutzen, stellen sie sicher das sie den <a href=\"http://windows.microsoft.com/en-US/windows7/webpages-look-incorrect-in-Internet-Explorer\">\"Kompatibilitätsansicht\" ausgeschaltet</a> haben."
118
128
  access_denied:
119
129
  message: "Sie haben nicht die Berechtigung um diese Aktion auszuführen."
130
+ index_list:
131
+ table: "Tabelle"
132
+ block: "Liste"
133
+ grid: "Gitter"
134
+ blog: "Blog"