trusty-cms 4.0.2 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -3
  3. data/Gemfile.lock +89 -89
  4. data/Rakefile +7 -7
  5. data/app/assets/images/admin/spinner.gif +0 -0
  6. data/app/assets/javascripts/admin.js +3 -0
  7. data/app/assets/javascripts/admin/more-or-less.js +2 -2
  8. data/app/assets/javascripts/admin/tabcontrol.js.erb +1 -2
  9. data/app/assets/javascripts/rad_social/rad_ajax_form.js +3 -0
  10. data/app/assets/javascripts/rad_social/rad_email.js +0 -1
  11. data/app/assets/javascripts/rad_social/rad_email_form.js +2 -7
  12. data/app/assets/stylesheets/admin/_base.scss +22 -6
  13. data/app/assets/stylesheets/admin/_multi_site_main.scss +28 -29
  14. data/app/assets/stylesheets/admin/_reset.scss +5 -4
  15. data/app/assets/stylesheets/admin/_site_chooser.scss +44 -69
  16. data/app/assets/stylesheets/admin/assets.scss +138 -141
  17. data/app/assets/stylesheets/admin/main.scss +10 -12
  18. data/app/assets/stylesheets/admin/modules/_boxes.scss +0 -3
  19. data/app/assets/stylesheets/admin/modules/_buttons.scss +30 -0
  20. data/app/assets/stylesheets/admin/modules/_links.scss +1 -1
  21. data/app/assets/stylesheets/admin/partials/_actions.scss +29 -46
  22. data/app/assets/stylesheets/admin/partials/_avatars.scss +3 -2
  23. data/app/assets/stylesheets/admin/partials/_content.scss +15 -38
  24. data/app/assets/stylesheets/admin/partials/_dateinput.scss +23 -14
  25. data/app/assets/stylesheets/admin/partials/_drawer.scss +78 -0
  26. data/app/assets/stylesheets/admin/partials/_dropdown.scss +9 -12
  27. data/app/assets/stylesheets/admin/partials/_footer.scss +4 -3
  28. data/app/assets/stylesheets/admin/partials/_forms.scss +64 -493
  29. data/app/assets/stylesheets/admin/partials/_header.scss +9 -118
  30. data/app/assets/stylesheets/admin/partials/_layout.scss +26 -2
  31. data/app/assets/stylesheets/admin/partials/_login_form.scss +28 -0
  32. data/app/assets/stylesheets/admin/partials/_messages.scss +10 -5
  33. data/app/assets/stylesheets/admin/partials/_popup.scss +61 -50
  34. data/app/assets/stylesheets/admin/partials/_preferences.scss +37 -0
  35. data/app/assets/stylesheets/admin/partials/_sidebar.scss +55 -0
  36. data/app/assets/stylesheets/admin/partials/_tabcontrol.scss +24 -36
  37. data/app/assets/stylesheets/admin/partials/{_index.scss → _table.scss} +53 -84
  38. data/app/assets/stylesheets/admin/partials/_toolbar.scss +11 -6
  39. data/app/assets/stylesheets/admin/partials/_treetable.scss +1 -71
  40. data/app/assets/stylesheets/admin/partials/_typography.scss +30 -55
  41. data/app/assets/stylesheets/admin/partials/_validations.scss +6 -5
  42. data/app/assets/stylesheets/rad_social/rad_screen.scss +64 -67
  43. data/app/controllers/admin/assets_controller.rb +21 -31
  44. data/app/controllers/admin/configuration_controller.rb +9 -11
  45. data/app/controllers/admin/extensions_controller.rb +3 -3
  46. data/app/controllers/admin/layouts_controller.rb +3 -4
  47. data/app/controllers/admin/page_attachments_controller.rb +5 -5
  48. data/app/controllers/admin/page_fields_controller.rb +3 -4
  49. data/app/controllers/admin/page_parts_controller.rb +4 -5
  50. data/app/controllers/admin/pages_controller.rb +55 -56
  51. data/app/controllers/admin/references_controller.rb +1 -1
  52. data/app/controllers/admin/resource_controller.rb +132 -130
  53. data/app/controllers/admin/sites_controller.rb +4 -4
  54. data/app/controllers/admin/snippets_controller.rb +3 -4
  55. data/app/controllers/admin/users_controller.rb +16 -16
  56. data/app/controllers/application_controller.rb +47 -48
  57. data/app/controllers/site_controller.rb +51 -48
  58. data/app/controllers/social_mailer_controller.rb +12 -22
  59. data/app/helpers/admin/configuration_helper.rb +19 -20
  60. data/app/helpers/admin/layouts_helper.rb +0 -1
  61. data/app/helpers/admin/node_helper.rb +27 -24
  62. data/app/helpers/admin/pages_helper.rb +2 -2
  63. data/app/helpers/admin/preferences_helper.rb +0 -1
  64. data/app/helpers/admin/references_helper.rb +9 -10
  65. data/app/helpers/admin/regions_helper.rb +3 -3
  66. data/app/helpers/application_helper.rb +34 -35
  67. data/app/helpers/rad_social_helper.rb +8 -11
  68. data/app/helpers/scoped_helper.rb +1 -3
  69. data/app/helpers/sites_helper.rb +4 -4
  70. data/app/mailers/devise_mailer.rb +3 -4
  71. data/app/mailers/rad_social_mailer.rb +8 -8
  72. data/app/models/asset.rb +62 -63
  73. data/app/models/asset_type.rb +38 -39
  74. data/app/models/deprecated_tags.rb +3 -4
  75. data/app/models/file_not_found_page.rb +1 -3
  76. data/app/models/haml_filter.rb +1 -1
  77. data/app/models/layout.rb +4 -5
  78. data/app/models/legacy_user.rb +2 -2
  79. data/app/models/menu_renderer.rb +16 -18
  80. data/app/models/page.rb +96 -93
  81. data/app/models/page_attachment.rb +1 -2
  82. data/app/models/page_context.rb +11 -12
  83. data/app/models/page_part.rb +3 -4
  84. data/app/models/rails_page.rb +10 -12
  85. data/app/models/site.rb +22 -21
  86. data/app/models/snippet.rb +6 -8
  87. data/app/models/snippet_finder.rb +3 -3
  88. data/app/models/snippet_tags.rb +4 -4
  89. data/app/models/standard_tags.rb +258 -252
  90. data/app/models/status.rb +8 -8
  91. data/app/models/trusty_cms/config.rb +25 -25
  92. data/app/models/trusty_cms/page_response_cache_director.rb +2 -3
  93. data/app/models/user.rb +15 -14
  94. data/app/models/user_action_observer.rb +3 -3
  95. data/app/users/_choose_site.html.haml +3 -7
  96. data/app/views/admin/assets/_form.html.haml +2 -1
  97. data/app/views/admin/assets/_search.html.haml +2 -1
  98. data/app/views/admin/assets/edit.html.haml +2 -10
  99. data/app/views/admin/assets/index.html.haml +4 -2
  100. data/app/views/admin/assets/new.html.haml +4 -8
  101. data/app/views/admin/assets/remove.html.haml +2 -1
  102. data/app/views/admin/configuration/edit.html.haml +7 -7
  103. data/app/views/admin/configuration/show.html.haml +6 -8
  104. data/app/views/admin/layouts/_choose_site.html.haml +2 -3
  105. data/app/views/admin/layouts/_form.html.haml +13 -12
  106. data/app/views/admin/layouts/_site_chooser.html.haml +2 -2
  107. data/app/views/admin/layouts/index.html.haml +11 -4
  108. data/app/views/admin/layouts/remove.html.haml +6 -5
  109. data/app/views/admin/page_attachments/_attachment.html.haml +2 -2
  110. data/app/views/admin/page_fields/_page_field.html.haml +3 -3
  111. data/app/views/admin/page_parts/_page_part.html.haml +5 -6
  112. data/app/views/admin/pages/_asset_popups.html.haml +15 -16
  113. data/app/views/admin/pages/_assets.html.haml +8 -7
  114. data/app/views/admin/pages/_fields.html.haml +16 -13
  115. data/app/views/admin/pages/_node.html.haml +3 -3
  116. data/app/views/admin/pages/_popups.html.haml +11 -11
  117. data/app/views/admin/pages/edit.html.haml +2 -2
  118. data/app/views/admin/pages/index.html.haml +5 -2
  119. data/app/views/admin/pages/new.html.haml +3 -3
  120. data/app/views/admin/pages/remove.html.haml +4 -3
  121. data/app/views/admin/preferences/edit.html.haml +5 -5
  122. data/app/views/admin/references/filters.haml +1 -1
  123. data/app/views/admin/references/tags.haml +3 -3
  124. data/app/views/admin/removed/_assets_bucket.html.haml +3 -3
  125. data/app/views/admin/removed/_assets_container.html.haml +18 -18
  126. data/app/views/admin/removed/_bucket.html.haml +1 -1
  127. data/app/views/admin/removed/_bucket_asset.html.haml +3 -3
  128. data/app/views/admin/removed/_show_bucket_link.html.haml +1 -1
  129. data/app/views/admin/removed/_upload_to_page.html.haml +5 -5
  130. data/app/views/admin/sites/_form.haml +18 -18
  131. data/app/views/admin/sites/edit.haml +1 -1
  132. data/app/views/admin/sites/index.haml +8 -4
  133. data/app/views/admin/sites/new.haml +1 -1
  134. data/app/views/admin/snippets/_choose_site.html.haml +4 -5
  135. data/app/views/admin/snippets/_form.html.haml +8 -9
  136. data/app/views/admin/snippets/edit.html.haml +1 -1
  137. data/app/views/admin/snippets/index.html.haml +11 -4
  138. data/app/views/admin/snippets/new.html.haml +1 -1
  139. data/app/views/admin/snippets/remove.html.haml +7 -6
  140. data/app/views/admin/users/_avatar.html.haml +2 -2
  141. data/app/views/admin/users/_choose_site.html.haml +3 -7
  142. data/app/views/admin/users/_form.html.haml +18 -21
  143. data/app/views/admin/users/_password_fields.html.haml +6 -6
  144. data/app/views/admin/users/index.html.haml +13 -6
  145. data/app/views/admin/users/remove.html.haml +4 -4
  146. data/app/views/admin/welcome/login.html.haml +8 -8
  147. data/app/views/devise/passwords/edit.html.haml +6 -6
  148. data/app/views/devise/passwords/new.html.haml +3 -3
  149. data/app/views/devise/sessions/new.html.haml +8 -8
  150. data/app/views/devise/shared/_links.html.haml +2 -2
  151. data/app/views/layouts/application.html.haml +24 -19
  152. data/app/views/rad_social_mailer/social_mail_form.html.haml +15 -17
  153. data/app/views/widget/_email_form.html.haml +13 -18
  154. data/app/views/widget/_horizontal_widget.html.haml +5 -5
  155. data/bin/rails +4 -4
  156. data/bin/trusty_cms +3 -5
  157. data/config.ru +1 -1
  158. data/config/application.rb +14 -15
  159. data/config/boot.rb +1 -2
  160. data/config/environment.rb +1 -1
  161. data/config/environments/production.rb +0 -1
  162. data/config/environments/test.rb +1 -2
  163. data/config/initializers/devise.rb +1 -1
  164. data/config/initializers/kraken.rb +2 -2
  165. data/config/initializers/tmp.rb +1 -1
  166. data/config/initializers/trusty_cms_config.rb +48 -48
  167. data/config/locales/en.yml +8 -8
  168. data/config/routes.rb +6 -7
  169. data/lib/active_record_extensions/active_record_extensions.rb +1 -2
  170. data/lib/annotatable.rb +3 -5
  171. data/lib/configuration_extensions/configuration_extensions.rb +1 -1
  172. data/lib/inheritable_class_attributes.rb +13 -9
  173. data/lib/login_system.rb +73 -73
  174. data/lib/method_observer.rb +13 -12
  175. data/lib/ostruct.rb +7 -10
  176. data/lib/simpleton.rb +0 -4
  177. data/lib/string_extensions/string_extensions.rb +3 -3
  178. data/lib/symbol_extensions/symbol_extensions.rb +1 -1
  179. data/lib/tasks/database.rake +28 -28
  180. data/lib/tasks/extensions.rake +18 -18
  181. data/lib/tasks/framework.rake +68 -68
  182. data/lib/tasks/radiant_config.rake +4 -4
  183. data/lib/tasks/snippets_extension_tasks.rake +11 -11
  184. data/lib/tasks/translate.rake +14 -14
  185. data/lib/tasks/upgrade_to_devise.rake +1 -1
  186. data/lib/translation_support.rb +22 -22
  187. data/lib/trusty_cms.rb +2 -2
  188. data/lib/trusty_cms/admin_ui.rb +19 -16
  189. data/lib/trusty_cms/admin_ui/region_partials.rb +4 -3
  190. data/lib/trusty_cms/admin_ui/region_set.rb +4 -5
  191. data/lib/trusty_cms/available_locales.rb +2 -4
  192. data/lib/trusty_cms/config/definition.rb +11 -8
  193. data/lib/trusty_cms/engine.rb +13 -14
  194. data/lib/trusty_cms/extension.rb +14 -16
  195. data/lib/trusty_cms/extension_loader.rb +6 -6
  196. data/lib/trusty_cms/extension_migrator.rb +42 -41
  197. data/lib/trusty_cms/extension_path.rb +20 -19
  198. data/lib/trusty_cms/initializer.rb +5 -8
  199. data/lib/trusty_cms/pagination/controller.rb +7 -10
  200. data/lib/trusty_cms/pagination/link_renderer.rb +2 -2
  201. data/lib/trusty_cms/resource_responses.rb +3 -3
  202. data/lib/trusty_cms/setup.rb +130 -132
  203. data/lib/trusty_cms/taggable.rb +19 -22
  204. data/lib/trusty_cms/task_support.rb +9 -6
  205. data/package.json +10 -2
  206. data/public/dispatch.fcgi +1 -1
  207. data/public/dispatch.rb +2 -2
  208. data/script/extension +1 -1
  209. data/script/rails +2 -2
  210. data/spec/dummy/package.json +1 -1
  211. data/spec/dummy/yarn.lock +3 -3
  212. data/trusty_cms.gemspec +25 -25
  213. data/vendor/extensions/clipped-extension/lib/clipped_admin_ui.rb +1 -1
  214. data/yarn.lock +1992 -4
  215. metadata +54 -43
  216. data/app/assets/javascripts/rad_social/captcha.js +0 -42
  217. data/app/assets/stylesheets/admin/partials/_deprecated.scss +0 -65
  218. data/app/assets/stylesheets/admin/partials/_jquery-ui-structure.scss +0 -258
  219. data/app/assets/stylesheets/admin/partials/_jquery-ui-theme.scss +0 -410
  220. data/app/assets/stylesheets/admin/partials/_jquery-ui.scss +0 -650
  221. data/app/views/admin/assets/refresh.html.haml +0 -14
@@ -1,8 +1,4 @@
1
1
  - if current_user.admin?
2
- %tr
3
- %th.label
4
- %label{:for=>"user_admin"} Can edit site
5
- %td.field{:style => 'text-align: left;'}
6
- = select :user, :site_id, [['<any>', '']] + Site.all.map { |s| [s.name, s.id] }
7
- %td.help
8
- A user with no site is able to act (to whatever extent their status allows) on any site.
2
+ %label{:for=>'user_admin'} Can edit site
3
+ = select :user, :site_id, [['<any>', '']] + Site.all.map { |s| [s.name, s.id] }
4
+ .caption A user with no site is able to act (to whatever extent their status allows) on any site.
@@ -1,44 +1,41 @@
1
- = form_for [:admin, @user], :html => {class: "user_form"} do |f|
1
+ = form_for [:admin, @user], :html => {class: 'user_form'} do |f|
2
2
  = render :partial => 'avatar' unless @user.new_record?
3
3
 
4
4
  = render_region :form_top, :locals => {:f => f}
5
5
 
6
6
  - render_region :form, :locals => {:f => f} do |form|
7
7
  - form.edit_first_name do
8
- %p
9
- = f.label :name, t('first_name')
10
- = f.text_field :first_name, :class => "textbox", :size => 32, :maxlength => 100
8
+ = f.label :name, t('first_name')
9
+ = f.text_field :first_name, :class => 'textbox', :maxlength => 100
11
10
 
12
11
  - form.edit_last_name do
13
- %p
14
- = f.label :name, t('last_name')
15
- = f.text_field :last_name, :class => "textbox", :size => 32, :maxlength => 100
12
+ = f.label :name, t('last_name')
13
+ = f.text_field :last_name, :class => 'textbox', :maxlength => 100
16
14
 
17
15
  - form.edit_email do
18
- %p
19
- = f.label :email, t('email_address') , :class => "optional"
20
- = f.text_field "email", :class => 'textbox', :size => 32, :maxlength => 255
16
+ = f.label :email, t('email_address') , :class => 'optional'
17
+ = f.text_field 'email', :class => 'textbox', :maxlength => 255
21
18
 
22
19
  - form.edit_password do
23
- = render "password_fields", :f => f
20
+ = render 'password_fields', :f => f
24
21
 
25
22
  - form.edit_roles do
26
23
  - if current_user.admin?
27
- %p
28
- %label.multi_option= t('roles')
29
- = f.check_box "admin", :class => "checkbox"
30
- = f.label :admin, t('admin'), :class => "checkbox"
31
- = f.check_box "designer", :class => "checkbox"
32
- = f.label :designer, t('designer'), :class => "checkbox"
24
+ %fieldset.multi_option
25
+ %label= t('roles')
26
+ = f.check_box 'admin', :class => 'checkbox'
27
+ = f.label :admin, t('admin'), :class => 'checkbox'
28
+ = f.check_box 'designer', :class => 'checkbox'
29
+ = f.label :designer, t('designer'), :class => 'checkbox'
33
30
 
34
31
  - form.edit_notes do
35
- %p
36
- = f.label :notes, t('notes'), :class => "optional"
37
- ~ f.text_area "notes", :size => "53x4", :class => "textarea"
32
+ %fieldset
33
+ = f.label :notes, t('notes'), :class => 'optional'
34
+ ~ f.text_area 'notes', :size => '53x4', :class => 'textarea'
38
35
 
39
36
  - render_region :form_bottom, :locals => {:f => f} do |form_bottom|
40
37
  - form_bottom.edit_buttons do
41
- .buttons
38
+ .page-actions
42
39
  = save_model_button(@user)
43
40
  = save_model_and_continue_editing_button(@user)
44
41
  = t('or')
@@ -1,18 +1,18 @@
1
- %p#display_password{:style=> (@user.new_record? or !@user.valid?) ? "display: none" : nil}
1
+ %fieldset#display_password{:style=> (@user.new_record? or !@user.valid?) ? 'display: none' : nil}
2
2
  %label= t('password')
3
3
  %span.value
4
4
  &bull;&bull;&bull;&bull;&bull;
5
- %a.action{:href=>"#", :onclick=>"$('#display_password').hide(); $('#change_password').show()"}= t('change')
6
- .set#change_password{:style=> (!@user.new_record? && @user.valid?) ? "display: none" : nil}
5
+ %a.button{:href=>'#', :onclick=>"$('#display_password').hide(); $('#change_password').show()"}= t('change')
6
+ %fieldset#change_password{:style=> (!@user.new_record? && @user.valid?) ? 'display: none' : nil}
7
7
  %p
8
8
  = f.label :password, t('new_password')
9
- = f.password_field "password", :class => "textbox big", :value => "", :size => 15, :maxlength => 40, :autocomplete => 'new-password'
9
+ = f.password_field 'password', :value => '', :maxlength => 40, :autocomplete => 'new-password'
10
10
  %p
11
11
  = f.label :password_confirmation, t('password_confirmation')
12
- = f.password_field "password_confirmation", :class => "textbox big", :value => "", :size => 15, :maxlength => 40, :autocomplete => 'new-password'
12
+ = f.password_field 'password_confirmation', :value => '', :maxlength => 40, :autocomplete => 'new-password'
13
13
  - unless @user.new_record?
14
14
  %span
15
15
  = t('or')
16
- %a{:href=>"#", :class=>"warning", :onclick=>" $('#display_password').show(); $('#change_password').hide()"}= t('cancel', class: 'alt')
16
+ %a{:href=>'#', :class=>'cancel-button', :onclick=>" $('#display_password').show(); $('#change_password').hide()"}= t('cancel', class: 'alt')
17
17
 
18
18
 
@@ -3,7 +3,7 @@
3
3
  = render_region :top
4
4
 
5
5
  .outset
6
- %table.index#users
6
+ %table.index.tablesaw#users
7
7
  %thead
8
8
  %tr
9
9
  - render_region :thead do |thead|
@@ -12,23 +12,26 @@
12
12
  - thead.roles_header do
13
13
  %th.roles= t('roles')
14
14
  - thead.actions_header do
15
- %th.actions{:style=>"width:9em"}= t('modify')
15
+ %th.actions{:style=>'width:9em'}= t('modify')
16
16
  %tbody
17
17
  - @users.each do |user|
18
18
  %tr[user]
19
19
  - render_region :tbody, :locals => {:user => user} do |tbody|
20
20
  - tbody.title_cell do
21
21
  %td.name
22
- = link_to image_tag(gravatar_url(user.email, :size=>"32px"), :class=>"avatar avatar_32x32", :width=>32, :height=>32, :alt=>""), edit_admin_user_url(user)
23
22
  = link_to user.name, edit_admin_user_url(user)
24
23
  - tbody.roles_cell do
25
24
  %td.roles= roles(user)
26
25
  - tbody.actions_cell do
27
26
  %td.actions
28
27
  - if !current_user.admin?
29
- %span.action.disabled= image('minus_disabled') + ' ' + t('remove')
28
+ %span.action.disabled
29
+ %i.fas.fa-minus-circle
30
+ = t('remove')
30
31
  - else
31
- = link_to image('minus') + ' ' + t('remove'), remove_admin_user_url(user), :class => "action"
32
+ = link_to remove_admin_user_url(user), :class => 'action' do
33
+ %i.fas.fa-minus-circle
34
+ = t('remove')
32
35
 
33
36
  - render_region :bottom do |bottom|
34
37
  - bottom.new_button do
@@ -36,4 +39,8 @@
36
39
  #actions
37
40
  = pagination_for(@users)
38
41
  %ul
39
- %li= link_to image('plus') + " " + t('new_user'), new_admin_user_url, :class => 'action_button'
42
+ %li
43
+ = link_to new_admin_user_url, :class => 'action_button' do
44
+ %i.fas.fa-plus-circle
45
+ = t('new_user')
46
+
@@ -1,7 +1,7 @@
1
1
  %h1= t('remove_user')
2
2
 
3
- %p
4
- = t('text.users.remove_warning')
3
+ %h4
4
+ = t('text.users.remove_warning').html_safe
5
5
 
6
6
  %table.index#users
7
7
  %tbody
@@ -9,8 +9,8 @@
9
9
  %td.user
10
10
  %span.title= @user.name
11
11
 
12
- = form_for [:admin, @user], :html => { :method => :delete, 'data-onsubmit_status'=>"Removing user&#8230;" } do
12
+ = form_for [:admin, @user], :html => { :method => :delete, 'data-onsubmit_status'=>'Removing user&#8230;' } do
13
13
  .buttons
14
- %input.button{:type=>"submit", :value => t('delete_user')}/
14
+ %input.button{:type=>'submit', :value => t('delete_user')}/
15
15
  = t('or')
16
16
  = link_to t('cancel'), admin_users_path, class: 'alt'
@@ -1,18 +1,18 @@
1
- - body_classes << "single_form"
1
+ - body_classes << 'single_form'
2
2
 
3
3
  #single_form
4
4
  %h1= t('please_login')
5
5
 
6
6
  = form_tag login_path do
7
7
  %p
8
- %label{:for=>"username_or_email"}= t('username_or_email')
9
- = text_field_tag "username_or_email", @username_or_email, :class => 'textbox', :maxlength => 40, :size => 40
8
+ %label{:for=>'username_or_email'}= t('username_or_email')
9
+ = text_field_tag 'username_or_email', @username_or_email, :class => 'textbox', :maxlength => 40, :size => 40
10
10
  %p
11
- %label{:for=>"password"}= t('password')
12
- = password_field_tag "password", '', :class => 'textbox password', :maxlength => 40, :size => 40
13
- %p= link_to "Forgot password?", new_admin_password_reset_path
11
+ %label{:for=>'password'}= t('password')
12
+ = password_field_tag 'password', '', :class => 'textbox password', :maxlength => 40, :size => 40
13
+ %p= link_to 'Forgot password?', new_admin_password_reset_path
14
14
  %p.remember_me
15
15
  = check_box_tag :remember_me, 1, false, :class => 'checkbox'
16
- %label.checkbox{:for=>"remember_me"}= t('remember_me_in_this_browser')
16
+ %label.checkbox{:for=>'remember_me'}= t('remember_me_in_this_browser')
17
17
  .buttons
18
- %input.button{:type => "submit", :value => t('login')}
18
+ %input.button{:type => 'submit', :value => t('login')}
@@ -7,17 +7,17 @@
7
7
  = form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
8
8
  = f.hidden_field :reset_password_token
9
9
  .field
10
- = f.label :password, "New password"
10
+ = f.label :password, 'New password'
11
11
  %br/
12
12
  - if @minimum_password_length
13
13
  %em
14
14
  (#{@minimum_password_length} characters minimum)
15
15
  %br/
16
- = f.password_field :password, autofocus: true, autocomplete: "new-password"
16
+ = f.password_field :password, autofocus: true, autocomplete: 'new-password'
17
17
  .field
18
- = f.label :password_confirmation, "Confirm new password"
18
+ = f.label :password_confirmation, 'Confirm new password'
19
19
  %br/
20
- = f.password_field :password_confirmation, autocomplete: "new-password"
20
+ = f.password_field :password_confirmation, autocomplete: 'new-password'
21
21
  .actions
22
- = f.submit "Change my password"
23
- = render "devise/shared/links"
22
+ = f.submit 'Change my password'
23
+ = render 'devise/shared/links'
@@ -8,7 +8,7 @@
8
8
  .field
9
9
  = f.label :email
10
10
  %br/
11
- = f.email_field :email, autofocus: true, autocomplete: "email", required: true
11
+ = f.email_field :email, autofocus: true, autocomplete: 'email', required: true
12
12
  .actions
13
- = f.submit "Send me reset password instructions"
14
- = render "devise/shared/links"
13
+ = f.submit 'Send me reset password instructions'
14
+ = render 'devise/shared/links'
@@ -7,19 +7,19 @@
7
7
  = form_for(resource, as: resource_name, url: authenticate_path) do |f|
8
8
  .field
9
9
  = f.label :email
10
- %br/
11
- = f.email_field :email, autofocus: true, autocomplete: "email"
10
+ = f.email_field :email, autofocus: true, autocomplete: 'email'
12
11
  .field
13
12
  = f.label :password
14
- %br/
15
- = f.password_field :password, autocomplete: "current-password"
13
+ = f.password_field :password, autocomplete: 'current-password'
16
14
  - if devise_mapping.rememberable?
17
15
  .field
18
- = f.check_box :remember_me
19
- = f.label :remember_me
16
+ = f.label :remember_me do
17
+ = f.check_box :remember_me
18
+ Remember Me
19
+ %br
20
20
  .actions
21
- = f.submit "Log in"
21
+ = f.submit 'Log in'
22
22
  - if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
23
- = link_to "Forgot your password?", new_password_path(resource_name)
23
+ = link_to 'Forgot your password?', new_password_path(resource_name)
24
24
  - if flash.alert
25
25
  .error= flash.alert
@@ -1,8 +1,8 @@
1
1
  - if controller_name != 'sessions'
2
- = link_to "Log in", new_session_path(resource_name)
2
+ = link_to 'Log in', new_session_path(resource_name)
3
3
  %br/
4
4
  - if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
5
- = link_to "Forgot your password?", new_password_path(resource_name)
5
+ = link_to 'Forgot your password?', new_password_path(resource_name)
6
6
  %br/
7
7
  - if devise_mapping.confirmable? && controller_name != 'confirmations'
8
8
  = link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
@@ -1,7 +1,8 @@
1
1
  <!DOCTYPE html>
2
2
  %html{html_attrs}
3
3
  %head
4
- %meta{"http-equiv"=>"Content-type", :content=>"text/html;charset=utf-8"}/
4
+ %meta{"http-equiv"=>"Content-type", :content=>"text/html;charset=utf-8"}
5
+ %meta{name: "viewport", content: "width=device-width"}
5
6
  %title= @page_title || default_page_title
6
7
 
7
8
  - @stylesheets.uniq.each do |stylesheet|
@@ -29,8 +30,8 @@
29
30
  = csrf_meta_tags
30
31
 
31
32
  %body{:class=>body_classes.join(" ")}
32
- #page
33
- #header
33
+ #page.trusty-container
34
+ %header
34
35
  - if logged_in?
35
36
  = render_region :before_nav
36
37
  - render_region :navigation do |navigation|
@@ -38,26 +39,30 @@
38
39
  = %{#{t('logged_in_as')} #{link_to h(current_user.name), edit_admin_preferences_path} &nbsp; (#{link_to t('log_out'), destroy_user_session_path, method: :get})}.html_safe
39
40
  &nbsp;
40
41
  = link_to t('view_site'), root_path, :id=>"view_site"
41
- %ul#navigation
42
- - nav_tabs.each do |tab|
43
- - if tab.visible?(current_user)
44
- %li{:class=>('current ' if current_tab?(tab)).to_s}
45
- = link_to translate_with_default(tab.name), (tab.first.relative_url if tab.first)
46
- #toolbar
47
- - if @current_tab and @current_tab.size > 1
48
- %ul#secondary_navigation
49
- - @current_tab.each do |sub_item|
50
- - if sub_item.visible?(current_user)
51
- %li= link_to sub_item.name, sub_item.relative_url, :class=>('current' if current_item?(sub_item))
52
- = yield :toolbar
53
- #main
42
+ %nav
43
+ - if logged_in?
44
+ %ul.navigation
45
+ - nav_tabs.each do |tab|
46
+ - if tab.visible?(current_user)
47
+ = link_to (tab.first.relative_url if tab.first) do
48
+ %li{class: ('current ' if current_tab?(tab)).to_s}
49
+ = translate_with_default(tab.name)
50
+ - if @current_tab and @current_tab.size > 1
51
+ .toolbar
52
+ %ul.secondary_navigation
53
+ - @current_tab.each do |sub_item|
54
+ - if sub_item.visible?(current_user)
55
+ = link_to sub_item.relative_url, class: ('current' if current_item?(sub_item)) do
56
+ %li= sub_item.name
57
+ %main
58
+ = yield :toolbar
54
59
  - if flash[:notice]
55
- #notice
60
+ .notice
56
61
  %p= flash[:notice]
57
62
  - if flash[:error]
58
- #error
63
+ .error
59
64
  %p= flash[:error]
60
- #content
65
+ .content
61
66
  = find_and_preserve(yield)
62
67
 
63
68
  #popups
@@ -1,40 +1,38 @@
1
1
  = stylesheet_link_tag('rad_social/rad_screen')
2
- = javascript_include_tag("https://www.google.com/recaptcha/api/js/recaptcha_ajax.js")
3
- = javascript_include_tag("rad_social/rad_email")
2
+ = javascript_include_tag('rad_social/rad_email')
3
+ = csrf_meta_tags
4
4
 
5
5
  .rad-dialog-titlebar
6
6
  %span.rad-dialog-title
7
7
  Email a Friend
8
8
 
9
- %form{:id=>'rad-social-email-form', :class=>"rad-email-form"}
9
+ %form{:id=>'rad-social-email-form', :class=>'rad-email-form'}
10
10
  .rad-email-error
11
11
  %div.form-row
12
- %label.form-label{:type=>"label", :for=>"from"}
12
+ %label.form-label{:type=>'label', :for=>'from'}
13
13
  From Email
14
14
  %div.form-fields
15
- %input{:class => "input-textbox", :type => "text", :id => "rs-from", :name => "from", :size => 30, :maxlength => 35}
15
+ %input{:class => 'input-textbox', :type => 'text', :id => 'rs-from', :name => 'from', :size => 30, :maxlength => 35}
16
16
  %div.form-row
17
- %label.form-label{:type=>"label", :for=>"from_name"}
17
+ %label.form-label{:type=>'label', :for=>'from_name'}
18
18
  From Name
19
19
  %div.form-fields
20
- %input{:class => "input-textbox", :type => "text", :id => "rs-from_name", :name => "from_name", :size => 30, :maxlength => 35}
20
+ %input{:class => 'input-textbox', :type => 'text', :id => 'rs-from_name', :name => 'from_name', :size => 30, :maxlength => 35}
21
21
  %div.form-row
22
- %label.form-label{:type=>"label", :for=>"to"}
22
+ %label.form-label{:type=>'label', :for=>'to'}
23
23
  To Email
24
24
  %div.form-fields
25
- %input{:class => "input-textbox", :type => "text", :id => "rs-to", :name => "to", :size => 30, :maxlength => 35}
25
+ %input{:class => 'input-textbox', :type => 'text', :id => 'rs-to', :name => 'to', :size => 30, :maxlength => 35}
26
26
  %div.form-row
27
- %label.form-label{:type=>"label", :for=>"message"}
27
+ %label.form-label{:type=>'label', :for=>'message'}
28
28
  Message
29
29
  %div.form-fields
30
- %textarea{:class => "input-textbox", :id => "rs-message", :name => "message", :rows => 5, :cols => 40}
30
+ %textarea{:class => 'input-textbox', :id => 'rs-message', :name => 'message', :rows => 5, :cols => 40}
31
31
  = email_message
32
- %input{:type=>"hidden", :name=>"subject", :value=> email_subject}
33
- %input{:type=>"hidden", :id=>"rs-base-message", :value=> email_message}
34
- #recaptcha-container.captcha-container
35
- = recaptcha_v3 action: 'emailSeats'
36
- %input{:type=>"hidden", :name=>"submit_url", :value=> email_action_url}
37
- %input.button.primary-button{:id => "rad_email_submit", :type=>:button ,:value=>"Submit"}
32
+ %input{:type=>'hidden', :name=>'subject', :value=> email_subject}
33
+ %input{:type=>'hidden', :id=>'rs-base-message', :value=> email_message}
34
+ %input{:type=>'hidden', :name=>'submit_url', :value=> email_action_url}
35
+ %input.button.primary-button{:id => 'rad_email_submit', :type=>:button ,:value=>'Submit'}
38
36
  .loader
39
37
 
40
38
  #rad-confirmation.hidden
@@ -1,25 +1,20 @@
1
- - javascript("rad_social/captcha")
2
-
3
1
  = form_tag
4
- %form{:id=>'rad_social_email_form', :class=>"rad-email-form"}
5
- %label{:for => "from"}
2
+ %form{:id=>'rad_social_email_form', :class=>'rad-email-form'}
3
+ %label{:for => 'from'}
6
4
  Your Email:
7
- %input{:class => "std_input", :type => "text", :id => "rs-from", :name => "from", :size => 40, :maxlength => 35}
8
- %label{:for => "from_name"}
5
+ %input{:class => 'std_input', :type => 'text', :id => 'rs-from', :name => 'from', :size => 40, :maxlength => 35}
6
+ %label{:for => 'from_name'}
9
7
  Your Name:
10
- %input{:class => "std_input", :type => "text", :id => "rs-from_name", :name => "from_name", :size => 40, :maxlength => 35}
11
- %label{:for => "to"}
8
+ %input{:class => 'std_input', :type => 'text', :id => 'rs-from_name', :name => 'from_name', :size => 40, :maxlength => 35}
9
+ %label{:for => 'to'}
12
10
  To:
13
- %input{:class => "std_input", :type => "text", :id => "rs-to", :name => "to", :size => 40, :maxlength => 35}
14
- %label{:for => "subject"}
11
+ %input{:class => 'std_input', :type => 'text', :id => 'rs-to', :name => 'to', :size => 40, :maxlength => 35}
12
+ %label{:for => 'subject'}
15
13
  To:
16
- %input{:class => "std_input", :type => "text", :id => "rs-subject", :name => "subject", :size => 40, :maxlength => 35}
17
- %label{:for => "Message"}
14
+ %input{:class => 'std_input', :type => 'text', :id => 'rs-subject', :name => 'subject', :size => 40, :maxlength => 35}
15
+ %label{:for => 'Message'}
18
16
  Message:
19
- %textarea{:id => "rs-message", :rows => 18, :cols => 40}
20
- %input{:type=>"hidden", :name=>"submit_url", :value=>'contact/email'}
21
- %input.button.primary-button{:id => "email_submit", :type=>:button ,:value=>"Submit"}
17
+ %textarea{:id => 'rs-message', :rows => 18, :cols => 40}
18
+ %input{:type=>'hidden', :name=>'submit_url', :value=>'contact/email'}
19
+ %input.button.primary-button{:id => 'email_submit', :type=>:button ,:value=>'Submit'}
22
20
  .loader
23
-
24
- #recaptcha-container.captcha-container
25
- = recaptcha_v3 action: 'emailSeats'
@@ -1,5 +1,5 @@
1
1
  = stylesheet_link_tag('rad_social/rad_screen')
2
- = javascript_include_tag("rad_social/rad_widget", async: 'true')
2
+ = javascript_include_tag('rad_social/rad_widget', async: 'true')
3
3
  - local_variables = defined?(locals) ? locals : local_assigns
4
4
  - url = local_variables[:url]
5
5
  - message = local_variables[:message]
@@ -9,10 +9,10 @@
9
9
 
10
10
  .rad-widget
11
11
  .rad-icon
12
- %a{:class => "rad-popup-window rad-facebook", :href => "https://www.facebook.com/sharer/sharer.php?u=#{CGI::escape(url)}", :target=> "_blank"}
12
+ %a{:class => 'rad-popup-window rad-facebook', :href => "https://www.facebook.com/sharer/sharer.php?u=#{CGI::escape(url)}", :target=> '_blank'}
13
13
  .rad-icon
14
- %a{:class => "rad-popup-window rad-twitter", :href => "https://twitter.com/intent/tweet?text=#{CGI::escape(message + " " + url)}", :target=> "_blank"}
14
+ %a{:class => 'rad-popup-window rad-twitter', :href => "https://twitter.com/intent/tweet?text=#{CGI::escape(message + " " + url)}", :target=> '_blank'}
15
15
  .rad-icon
16
- %a{:class => "rad-popup-window rad-email", :href => rad_social_mail_form_url(:email_subject => email_subject, :email_message => email_message, :email_action_url => email_action_url)}
16
+ %a{:class => 'rad-popup-window rad-email', :href => rad_social_mail_form_url(:email_subject => email_subject, :email_message => email_message, :email_action_url => email_action_url)}
17
17
  .rad-icon
18
- %a{:class => "rad-popup-window rad-gplus", :href => "https://plus.google.com/share?url=#{CGI::escape(url)}", :target=> "_blank"}
18
+ %a{:class => 'rad-popup-window rad-gplus', :href => "https://plus.google.com/share?url=#{CGI::escape(url)}", :target=> '_blank'}