cybele 1.8.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/README.md +16 -2
  4. data/dump.rdb +1 -0
  5. data/lib/cybele/app_builder.rb +213 -220
  6. data/lib/cybele/generators/app_generator.rb +31 -20
  7. data/lib/cybele/version.rb +2 -2
  8. data/templates/.env.local.erb +11 -0
  9. data/templates/.env.production.erb +11 -0
  10. data/templates/.env.staging.erb +11 -0
  11. data/templates/README.md.erb +22 -0
  12. data/templates/app/assets/javascripts/application.js.coffee +63 -1
  13. data/templates/app/assets/javascripts/hq/application.js.coffee +93 -0
  14. data/templates/app/assets/stylesheets/application.css.sass +15 -4
  15. data/templates/app/assets/stylesheets/hq/application.css.sass +92 -0
  16. data/templates/app/controllers/application_controller.rb.erb +48 -0
  17. data/templates/app/controllers/concerns/basic_authentication.rb +18 -0
  18. data/templates/app/controllers/hq/admins_controller.rb +64 -0
  19. data/templates/app/controllers/hq/application_controller.rb +11 -0
  20. data/templates/app/controllers/hq/audits_controller.rb +16 -0
  21. data/templates/app/controllers/hq/cities_controller.rb +54 -0
  22. data/templates/app/controllers/hq/countries_controller.rb +54 -0
  23. data/templates/app/controllers/hq/dashboard_controller.rb +4 -1
  24. data/templates/app/controllers/hq/passwords_controller.rb +10 -0
  25. data/templates/app/controllers/hq/registrations_controller.rb +21 -0
  26. data/templates/app/controllers/hq/sessions_controller.rb +1 -1
  27. data/templates/app/controllers/hq/users_controller.rb +64 -0
  28. data/templates/app/controllers/user/dashboard_controller.rb +8 -0
  29. data/templates/app/controllers/user/passwords_controller.rb +10 -0
  30. data/templates/app/controllers/user/profiles_controller.rb +34 -0
  31. data/templates/app/controllers/user/registrations_controller.rb +20 -0
  32. data/templates/app/controllers/user/sessions_controller.rb +16 -0
  33. data/templates/app/controllers/user/user_application_controller.rb +20 -0
  34. data/templates/app/helpers/application_helper.rb.erb +27 -0
  35. data/templates/app/mailers/admin_mailer.rb +10 -0
  36. data/templates/app/mailers/base_mailer.rb +4 -0
  37. data/templates/app/mailers/user_mailer.rb +10 -0
  38. data/templates/app/models/admin.rb +51 -0
  39. data/templates/app/models/audit.rb +3 -0
  40. data/templates/app/models/city.rb +12 -0
  41. data/templates/app/models/country.rb +12 -0
  42. data/templates/app/models/user.rb +54 -0
  43. data/templates/app/views/admin_mailer/login_info.html.haml +13 -0
  44. data/templates/app/views/devise/confirmations/new.html.haml +6 -5
  45. data/templates/app/views/devise/mailer/confirmation_instructions.html.haml +5 -3
  46. data/templates/app/views/devise/mailer/reset_password_instructions.html.haml +2 -2
  47. data/templates/app/views/devise/passwords/edit.html.haml +3 -3
  48. data/templates/app/views/devise/passwords/new.html.haml +3 -3
  49. data/templates/app/views/devise/registrations/edit.html.haml +5 -11
  50. data/templates/app/views/devise/registrations/new.html.haml +18 -6
  51. data/templates/app/views/devise/sessions/new.html.haml +1 -1
  52. data/templates/app/views/devise/shared/_links.haml +3 -1
  53. data/templates/app/views/devise/unlocks/new.html.haml +4 -4
  54. data/templates/app/views/hq/admins/_admin.html.haml +21 -0
  55. data/templates/app/views/hq/admins/_blank.html.haml +9 -0
  56. data/templates/app/views/hq/admins/_filters.html.haml +20 -0
  57. data/templates/app/views/hq/admins/_form.html.haml +17 -0
  58. data/templates/app/views/hq/admins/_list.html.haml +15 -0
  59. data/templates/app/views/hq/admins/edit.html.haml +3 -0
  60. data/templates/app/views/hq/admins/index.html.haml +18 -0
  61. data/templates/app/views/hq/admins/new.html.haml +5 -0
  62. data/templates/app/views/hq/admins/show.html.haml +19 -0
  63. data/templates/app/views/hq/audits/_filters.html.haml +32 -0
  64. data/templates/app/views/hq/audits/_list.html.haml +37 -0
  65. data/templates/app/views/hq/audits/index.html.haml +5 -0
  66. data/templates/app/views/hq/audits/show.html.haml +5 -0
  67. data/templates/app/views/hq/cities/_blank.html.haml +9 -0
  68. data/templates/app/views/hq/cities/_city.html.haml +12 -0
  69. data/templates/app/views/hq/cities/_filters.html.haml +15 -0
  70. data/templates/app/views/hq/cities/_form.html.haml +15 -0
  71. data/templates/app/views/hq/cities/_list.html.haml +13 -0
  72. data/templates/app/views/hq/cities/edit.html.haml +3 -0
  73. data/templates/app/views/hq/cities/index.html.haml +18 -0
  74. data/templates/app/views/hq/cities/new.html.haml +3 -0
  75. data/templates/app/views/hq/cities/show.html.haml +13 -0
  76. data/templates/app/views/hq/countries/_blank.html.haml +9 -0
  77. data/templates/app/views/hq/countries/_country.html.haml +11 -0
  78. data/templates/app/views/hq/countries/_filters.html.haml +14 -0
  79. data/templates/app/views/hq/countries/_form.html.haml +14 -0
  80. data/templates/app/views/hq/countries/_list.html.haml +12 -0
  81. data/templates/app/views/hq/countries/edit.html.haml +3 -0
  82. data/templates/app/views/hq/countries/index.html.haml +18 -0
  83. data/templates/app/views/hq/countries/new.html.haml +3 -0
  84. data/templates/app/views/hq/countries/show.html.haml +14 -0
  85. data/templates/app/views/hq/dashboard/index.html.haml +8 -0
  86. data/templates/app/views/hq/passwords/edit.html.haml +12 -0
  87. data/templates/app/views/hq/passwords/new.html.haml +9 -0
  88. data/templates/app/views/hq/registrations/edit.html.haml +19 -0
  89. data/templates/app/views/hq/sessions/new.html.haml +7 -5
  90. data/templates/app/views/hq/users/_blank.html.haml +9 -0
  91. data/templates/app/views/hq/users/_filters.html.haml +20 -0
  92. data/templates/app/views/hq/users/_form.html.haml +18 -0
  93. data/templates/app/views/hq/users/_list.html.haml +15 -0
  94. data/templates/app/views/hq/users/_user.html.haml +20 -0
  95. data/templates/app/views/hq/users/edit.html.haml +3 -0
  96. data/templates/app/views/hq/users/index.html.haml +18 -0
  97. data/templates/app/views/hq/users/new.html.haml +5 -0
  98. data/templates/app/views/hq/users/show.html.haml +20 -0
  99. data/templates/app/views/layouts/application.html.haml.erb +16 -8
  100. data/templates/app/views/layouts/hq/application.html.haml.erb +55 -0
  101. data/templates/app/views/layouts/hq/login.html.haml.erb +35 -0
  102. data/templates/app/views/layouts/hq/partials/_dock.html.haml.erb +36 -0
  103. data/templates/app/views/layouts/hq/partials/_footer.html.haml.erb +0 -0
  104. data/templates/app/views/layouts/hq/partials/_navbar.html.haml.erb +22 -0
  105. data/templates/app/views/layouts/hq/partials/_trackers.html.haml.erb +0 -0
  106. data/templates/app/views/layouts/mailer.html.haml.erb +321 -0
  107. data/templates/app/views/layouts/mailer.text.haml +1 -0
  108. data/templates/app/views/layouts/partials/_footer.html.haml.erb +0 -0
  109. data/templates/app/views/layouts/partials/_trackers.html.haml.erb +0 -0
  110. data/templates/app/views/layouts/partials/_warnings.html.haml.erb +3 -0
  111. data/templates/app/views/user/dashboard/index.html.haml +8 -0
  112. data/templates/app/views/user/passwords/edit.html.haml +12 -0
  113. data/templates/app/views/user/passwords/new.html.haml +10 -0
  114. data/templates/app/views/{user_profiles → user/profiles}/_form.html.haml +4 -5
  115. data/templates/app/views/user/profiles/edit.html.haml +3 -0
  116. data/templates/app/views/user/profiles/show.html.haml +15 -0
  117. data/templates/app/views/user/registrations/edit.html.haml +19 -0
  118. data/templates/app/views/user/sessions/new.html.haml +11 -0
  119. data/templates/app/views/user_mailer/login_info.html.haml +13 -0
  120. data/templates/app/views/welcome/index.html.haml.erb +4 -4
  121. data/templates/config/initializers/devise_async.rb +6 -0
  122. data/templates/config/initializers/sidekiq.rb +13 -0
  123. data/templates/config/locales/email.tr.yml +28 -0
  124. data/templates/config/locales/models.tr.yml +72 -41
  125. data/templates/config/locales/responders.tr.yml +4 -1
  126. data/templates/config/locales/show_for.tr.yml +1 -3
  127. data/templates/config/locales/simple_form.tr.yml +8 -22
  128. data/templates/config/locales/tr.yml +33 -2
  129. data/templates/config/locales/view.tr.yml +64 -18
  130. data/templates/config/routes.erb +51 -0
  131. data/templates/config/schedule.yml +16 -0
  132. data/templates/config/settings/production.yml +0 -17
  133. data/templates/config/settings/staging.yml +0 -17
  134. data/templates/config/sidekiq.yml +13 -0
  135. data/templates/cybele_Gemfile +42 -5
  136. data/templates/cybele_gitignore +3 -1
  137. data/templates/cybele_version.txt +1 -0
  138. data/templates/env.sample.erb +11 -0
  139. data/templates/lib/data/cities.yml +163 -0
  140. data/templates/lib/tasks/dev.rake +29 -5
  141. data/templates/lib/tasks/sidekiq.rake +26 -0
  142. data/templates/lib/templates/rails/responders_controller/controller.rb +27 -22
  143. data/templates/public/images/favicon.png +0 -0
  144. data/templates/public/images/mail-logo.png +0 -0
  145. data/templates/public/images/missing_cover.png +0 -0
  146. data/templates/public/images/missing_cover@2x.png +0 -0
  147. data/templates/public/images/missing_logo.png +0 -0
  148. data/templates/public/images/missing_logo@2x.png +0 -0
  149. data/templates/public/images/sprite.png +0 -0
  150. data/templates/ruby-version +1 -1
  151. data/templates/vendor/assets/javascripts/jquery.datetimepicker.js +1871 -0
  152. data/templates/vendor/assets/javascripts/jquery.maskedinput.min.js +7 -0
  153. data/templates/vendor/assets/javascripts/nprogress.js +491 -0
  154. data/templates/vendor/assets/javascripts/trix.js +25 -0
  155. data/templates/vendor/assets/stylesheets/jquery.datetimepicker.css +418 -0
  156. data/templates/vendor/assets/stylesheets/nprogress.css +74 -0
  157. data/templates/vendor/assets/stylesheets/trix.css +209 -0
  158. metadata +125 -24
  159. data/templates/app/controllers/application_controller.rb +0 -19
  160. data/templates/app/controllers/hq/admin_profiles_controller.rb +0 -56
  161. data/templates/app/controllers/user_profiles_controller.rb +0 -56
  162. data/templates/app/views/hq/admin_profiles/_form.html.haml +0 -15
  163. data/templates/app/views/hq/admin_profiles/edit.html.haml +0 -3
  164. data/templates/app/views/hq/admin_profiles/new.html.haml +0 -3
  165. data/templates/app/views/hq/admin_profiles/show.html.haml +0 -13
  166. data/templates/app/views/hq/dashboard/index.html.haml.erb +0 -3
  167. data/templates/app/views/user_profiles/edit.html.haml +0 -3
  168. data/templates/app/views/user_profiles/new.html.haml +0 -3
  169. data/templates/app/views/user_profiles/show.html.haml +0 -13
  170. data/templates/config/locales/en.yml +0 -2
  171. data/templates/config/locales/models.en.yml +0 -54
  172. data/templates/config/locales/responders.en.yml +0 -10
  173. data/templates/config/locales/show_for.en.yml +0 -7
  174. data/templates/config/locales/simple_form.en.yml +0 -30
  175. data/templates/config/locales/view.en.yml +0 -51
@@ -28,6 +28,7 @@ module Cybele
28
28
  invoke :install_gems
29
29
  invoke :gitignore_files_and_folders
30
30
  invoke :setup_bootstrap_sass_coffee
31
+ invoke :copy_vendor_files
31
32
  invoke :setup_rails_config
32
33
  invoke :setup_staging_environment
33
34
  invoke :configure_mail_setting
@@ -41,8 +42,7 @@ module Cybele
41
42
  invoke :setup_devise
42
43
  invoke :setup_time_zone
43
44
  invoke :setup_bullet_config
44
- invoke :setup_hq_namespace
45
- invoke :setup_profiles
45
+ invoke :setup_namespaces
46
46
  end
47
47
 
48
48
  def customize_gemfile
@@ -115,6 +115,11 @@ module Cybele
115
115
  build :convert_application_css_to_sass
116
116
  end
117
117
 
118
+ def copy_vendor_files
119
+ say 'Copy vendor assets'
120
+ build :copy_vendor_assets
121
+ end
122
+
118
123
  def configure_mail_setting
119
124
  say 'Setup mail settings'
120
125
  build :configure_action_mailer
@@ -157,7 +162,7 @@ module Cybele
157
162
  say 'Generate devise'
158
163
  build :generate_devise_settings
159
164
  say 'Adding devise user model'
160
- build :generate_devise_model, 'user'
165
+ build :generate_devise_user
161
166
  build :generate_devise_views
162
167
  end
163
168
 
@@ -166,25 +171,11 @@ module Cybele
166
171
  build :generate_welcome_page
167
172
  end
168
173
 
169
- def setup_hq_namespace
170
- say 'Generate hq namespace'
171
- build :generate_hq_namespace
172
- end
173
-
174
174
  def setup_time_zone
175
175
  say 'Setup time zone'
176
176
  build :set_time_zone
177
177
  end
178
178
 
179
- def setup_profiles
180
- say 'Setup profiles'
181
- build :create_profile
182
- end
183
-
184
- # def run_bundle
185
- # say 'Run bundle'
186
- # end
187
-
188
179
  def setup_hierapolis
189
180
  say 'Setup hierapolis'
190
181
  build :create_hierapolis_theme
@@ -249,9 +240,29 @@ module Cybele
249
240
  build :add_seeds
250
241
  end
251
242
 
252
- def copy_locales
253
- say 'Copy config/locale files'
254
- build :copy_locales
243
+ def setup_namespaces
244
+ say 'Generate namespaces'
245
+ build :setup_namespaces
246
+ end
247
+
248
+ def setup_models
249
+ say 'Setup models'
250
+ build :create_location_models
251
+ end
252
+
253
+ def copy_all_files
254
+ say 'Copy files'
255
+ build :copy_files
256
+ end
257
+
258
+ def setup_helpers
259
+ say 'Create helpers'
260
+ build :create_jobs_helper_lib
261
+ end
262
+
263
+ def setup_git
264
+ say 'Initialize git'
265
+ build :git_commands
255
266
  end
256
267
 
257
268
  def goodbye
@@ -1,5 +1,5 @@
1
1
  module Cybele
2
- RAILS_VERSION = '~> 4.2.5'
2
+ RAILS_VERSION = '~> 4.2.6'
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = '1.8.0'
4
+ VERSION = '1.9.0'
5
5
  end
@@ -0,0 +1,11 @@
1
+ ROOT_PATH=http://localhost:3000
2
+
3
+ SMTP_PASSWORD=
4
+ SMTP_USER_NAME=admin@<%= app_name %>.com
5
+ SMTP_ADDRESS=smtp.sendgrid.net
6
+
7
+ BASIC_AUTH_IS_ACTIVE=no
8
+ S3_BUCKET_NAME=<%= app_name %>-v3-staging
9
+ AWS_RAW_URL=<%= app_name %>-v3-staging.s3.amazonaws.com
10
+ AWS_ACCESS_KEY_ID=
11
+ AWS_SECRET_ACCESS_KEY=
@@ -0,0 +1,11 @@
1
+ ROOT_PATH=https://<%= app_name %>.herokuapp.com
2
+
3
+ SMTP_PASSWORD=
4
+ SMTP_USER_NAME=admin@<%= app_name %>.com
5
+ SMTP_ADDRESS=smtp.sendgrid.net
6
+
7
+ BASIC_AUTH_IS_ACTIVE=no
8
+ S3_BUCKET_NAME=<%= app_name %>-v3
9
+ AWS_RAW_URL=<%= app_name %>-v3.s3.amazonaws.com
10
+ AWS_ACCESS_KEY_ID=
11
+ AWS_SECRET_ACCESS_KEY=
@@ -0,0 +1,11 @@
1
+ ROOT_PATH=https://staging-<%= app_name %>.herokuapp.com
2
+
3
+ SMTP_PASSWORD=
4
+ SMTP_USER_NAME=admin@<%= app_name %>.com
5
+ SMTP_ADDRESS=smtp.sendgrid.net
6
+
7
+ BASIC_AUTH_IS_ACTIVE=yes
8
+ S3_BUCKET_NAME=<%= app_name %>-v3-staging
9
+ AWS_RAW_URL=<%= app_name %>-v3-staging.s3.amazonaws.com
10
+ AWS_ACCESS_KEY_ID=
11
+ AWS_SECRET_ACCESS_KEY=
@@ -1,2 +1,24 @@
1
1
  # <%= app_name %>
2
2
 
3
+ # TODOs
4
+
5
+ * Set .env.local variables
6
+ * Set access_token in config/initializers/rollbar.rb
7
+ * Set default values for is_active, time_zone variable using in User and Admin model migrations db/migrate/*.rb
8
+ * Change username and password in config/settings.yml
9
+ * In public folder run this command ln -s ../VERSION.txt VERSION.txt
10
+
11
+ We are using sidekiq with redis-server for background jobs.
12
+ Clone project run this commands in terminal
13
+ Before the run application look our env.sample file. It should be in project root directory with this name .env.local
14
+ ```bash
15
+ bundle
16
+ redis-server
17
+ rake sidekiq:start
18
+ rake db:create
19
+ rake db:migrate
20
+ rake dev:seed
21
+ rails s
22
+ ```
23
+
24
+
@@ -14,4 +14,66 @@
14
14
  #= require jquery_ujs
15
15
  #= require turbolinks
16
16
  #= require bootstrap
17
- #= require_tree .
17
+ #= require chosen-jquery
18
+ #= require jquery.maskedinput.min
19
+ #= require jquery.datetimepicker
20
+ #= require nprogress
21
+ #= require trix
22
+
23
+ class @App
24
+
25
+ @tooltip = ->
26
+ $('[data-toggle="tooltip"]').tooltip()
27
+ $('[data-toggle="toolbar-tooltip"]').tooltip()
28
+
29
+ @ready = ->
30
+ App.tooltip()
31
+
32
+ $('.datetimepicker').datetimepicker
33
+ format: $('.datetimepicker').data('format')
34
+ step: 60
35
+ lang: 'tr'
36
+ minDate: 0
37
+ defaultTime: '12:00'
38
+
39
+ $( "[data-mask]").each (index, element) ->
40
+ $element = $(element)
41
+ $element.mask($element.data('mask'))
42
+
43
+ $('.chosen-select').chosen
44
+ allow_single_deselect: true
45
+ placeholder_text: $('.chosen-select').attr('include_blank')
46
+
47
+ $('.chosen-select-with-width').chosen
48
+ allow_single_deselect: true
49
+ placeholder_text: $('.chosen-select-with-width').attr('include_blank')
50
+ width: '370px'
51
+
52
+ $('form[data-turboform]').on('submit', (e) ->
53
+ Turbolinks.visit @action + (if @action.indexOf('?') == -1 then '?' else '&') + $(this).serialize()
54
+ false
55
+ )
56
+
57
+ $(document).ready(App.ready)
58
+ $(document).on('page:load', App.ready)
59
+ $(window).on('page:load', App.ready)
60
+
61
+ # Turbolinks events
62
+ $(document).on 'page:fetch', ->
63
+ NProgress.start()
64
+ return
65
+ $(document).on 'page:change', ->
66
+ NProgress.done()
67
+ return
68
+ $(document).on 'page:restore', ->
69
+ NProgress.remove()
70
+ return
71
+ # jQuery events
72
+ # Trigger whenever ajax start
73
+ $(document).ajaxStart ->
74
+ NProgress.start()
75
+ return
76
+ # Complete the NProcess when ajax end
77
+ $(document).ajaxComplete ->
78
+ NProgress.done()
79
+ return
@@ -0,0 +1,93 @@
1
+ # This is a manifest file that will be compiled into application.js, which will include all the files
2
+ # listed below.
3
+ #
4
+ # Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ # or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ #
7
+ # It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ # compiled file.
9
+ #
10
+ # WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
+ # GO AFTER THE REQUIRES BELOW.
12
+ #
13
+ #= require jquery
14
+ #= require jquery_ujs
15
+ #= require turbolinks
16
+ #= require bootstrap
17
+ #= require hierapolis
18
+ #= require chosen-jquery
19
+ #= require jquery.maskedinput.min
20
+ #= require trix
21
+ #= require jquery.datetimepicker
22
+ #= require nprogress
23
+
24
+
25
+ class @App
26
+ @tooltip = ->
27
+ $('[data-toggle="tooltip"]').tooltip()
28
+ $('[data-toggle="toolbar-tooltip"]').tooltip()
29
+
30
+ @ready = ->
31
+ App.tooltip()
32
+
33
+ $('.chosen-select').chosen
34
+ allow_single_deselect: true
35
+ placeholder_text: $('.chosen-select').attr('include_blank')
36
+
37
+ $('.chosen-select-with-width').chosen
38
+ allow_single_deselect: true
39
+ placeholder_text: $('.chosen-select-with-width').attr('include_blank')
40
+ width: '370px'
41
+
42
+ $('.changeable_select').on 'change', ->
43
+ $hiden_area = $($('#hider-id').data('hiden-area'))
44
+ values = $('#hider-id').data('hiden-on').split(',')
45
+ if $.inArray($(this).val(), values) != -1
46
+ $hiden_area.addClass('hidden')
47
+ else
48
+ $hiden_area.removeClass('hidden')
49
+
50
+ ready = ->
51
+ App.ready()
52
+
53
+ $('.datetimepicker').datetimepicker
54
+ format: $('.datetimepicker').data('format')
55
+ step: 60
56
+ lang: 'tr'
57
+ minDate: 0
58
+ defaultTime: '12:00'
59
+
60
+ $( "[data-mask]").each (index, element) ->
61
+ $element = $(element)
62
+ $element.mask($element.data('mask'))
63
+
64
+ $('form[data-turboform]').on('submit', (e) ->
65
+ Turbolinks.visit @action + (if @action.indexOf('?') == -1 then '?' else '&') + $(this).serialize()
66
+ false
67
+ )
68
+
69
+ $(document).ready(ready)
70
+ $(document).on('page:load', ready)
71
+ $(window).on('page:load', ready)
72
+
73
+
74
+ # Turbolinks.enableProgressBar()
75
+ # Turbolinks events
76
+ $(document).on 'page:fetch', ->
77
+ NProgress.start()
78
+ return
79
+ $(document).on 'page:change', ->
80
+ NProgress.done()
81
+ return
82
+ $(document).on 'page:restore', ->
83
+ NProgress.remove()
84
+ return
85
+ # jQuery events
86
+ # Trigger whenever ajax start
87
+ $(document).ajaxStart ->
88
+ NProgress.start()
89
+ return
90
+ # Complete the NProcess when ajax end
91
+ $(document).ajaxComplete ->
92
+ NProgress.done()
93
+ return
@@ -9,17 +9,28 @@
9
9
  * compiled file, but it's generally better to create a new file per style scope.
10
10
  *
11
11
  *= require_self
12
- *= require_tree .
13
12
 
14
13
  @import "compass"
15
14
  @import "bootstrap"
15
+ @import 'nprogress'
16
+ @import "bootstrap-chosen"
17
+ @import "jquery.datetimepicker"
18
+ @import "nprogress"
19
+ @import 'trix'
16
20
 
17
- body
18
- padding-top: 20px
19
- padding-bottom: 40px
21
+
22
+ /* Trix editor
23
+ trix-editor
24
+ min-height: 100px !important
25
+ @extend .form-control
26
+ height: 100% !important
27
+ margin: 0px 0px 12px 0px
20
28
 
21
29
  /* Custom container
22
30
 
31
+ body
32
+ padding-bottom: 40px
33
+
23
34
  .container-narrow
24
35
  margin: 0 auto
25
36
  max-width: 700px
@@ -0,0 +1,92 @@
1
+ /*
2
+ * This is a manifest file that will be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
9
+ * compiled file, but it's generally better to create a new file per style scope.
10
+ *
11
+ *= require_self
12
+
13
+ @import 'nprogress'
14
+ @import 'hierapolis'
15
+ @import 'trix'
16
+ @import "bootstrap-chosen"
17
+ @import "jquery.datetimepicker"
18
+
19
+ .admins, .users
20
+ .active
21
+ color: green !important
22
+ .passive
23
+ background-color: rgba(230, 161, 161, 0.37) !important
24
+ .paid
25
+ color: green !important
26
+ .not-paid
27
+ background-color: rgba(230, 161, 161, 0.37) !important
28
+
29
+ .chosen-container .chosen-container-multi
30
+ width: 500px !important
31
+
32
+ .btn
33
+ margin: 0px 1px
34
+
35
+ .date.date_fields
36
+ select
37
+ width: 32%
38
+ float: left
39
+ margin: 2px
40
+ margin-bottom: 10px
41
+ label
42
+ width: 100%
43
+
44
+ .tool-label
45
+ font-size: 14px
46
+ padding: 7px 10px
47
+ margin-right: 5px
48
+
49
+ #sidebar ul#dock li.launcher ul.dropdown-menu
50
+ width: 310px
51
+
52
+ .btn
53
+ margin: 0px 2px
54
+
55
+ .form-actions
56
+ background-color: rgba(2, 2, 2, 0) !important
57
+
58
+ #wrapper form .form-actions
59
+ float: right !important
60
+
61
+ .query-buttons
62
+ .btn
63
+ margin: 2px
64
+
65
+ .query-inputs
66
+ .pull-right
67
+ margin: 2px 0px
68
+
69
+ trix-editor
70
+ min-height: 100px !important
71
+ @extend .form-control
72
+ height: 100% !important
73
+ margin: 0px 0px 12px 0px
74
+
75
+ .form-group.nested-fields-wrapper
76
+ select
77
+ position: relative
78
+ top: -1px
79
+ .chosen-container
80
+ top: -2px
81
+ &.last
82
+ margin-bottom: 5px
83
+
84
+ .show_for
85
+ .wrapper
86
+ padding: 3px 0px !important
87
+
88
+ .grid table td.action
89
+ width: 9%
90
+
91
+ #beaker
92
+ background-image: url('/images/sprite.png')