trusty-cms 4.0.2 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/app/assets/images/admin/spinner.gif +0 -0
  4. data/app/assets/javascripts/admin.js +3 -0
  5. data/app/assets/javascripts/admin/more-or-less.js +2 -2
  6. data/app/assets/javascripts/admin/tabcontrol.js.erb +1 -2
  7. data/app/assets/stylesheets/admin/_base.scss +22 -6
  8. data/app/assets/stylesheets/admin/_multi_site_main.scss +28 -29
  9. data/app/assets/stylesheets/admin/_reset.scss +5 -4
  10. data/app/assets/stylesheets/admin/_site_chooser.scss +44 -69
  11. data/app/assets/stylesheets/admin/assets.scss +138 -141
  12. data/app/assets/stylesheets/admin/main.scss +10 -12
  13. data/app/assets/stylesheets/admin/modules/_boxes.scss +0 -3
  14. data/app/assets/stylesheets/admin/modules/_buttons.scss +30 -0
  15. data/app/assets/stylesheets/admin/modules/_links.scss +1 -1
  16. data/app/assets/stylesheets/admin/partials/_actions.scss +29 -46
  17. data/app/assets/stylesheets/admin/partials/_avatars.scss +3 -2
  18. data/app/assets/stylesheets/admin/partials/_content.scss +15 -38
  19. data/app/assets/stylesheets/admin/partials/_dateinput.scss +23 -14
  20. data/app/assets/stylesheets/admin/partials/_drawer.scss +78 -0
  21. data/app/assets/stylesheets/admin/partials/_dropdown.scss +9 -12
  22. data/app/assets/stylesheets/admin/partials/_footer.scss +4 -3
  23. data/app/assets/stylesheets/admin/partials/_forms.scss +64 -493
  24. data/app/assets/stylesheets/admin/partials/_header.scss +9 -118
  25. data/app/assets/stylesheets/admin/partials/_layout.scss +26 -2
  26. data/app/assets/stylesheets/admin/partials/_login_form.scss +28 -0
  27. data/app/assets/stylesheets/admin/partials/_messages.scss +5 -5
  28. data/app/assets/stylesheets/admin/partials/_popup.scss +62 -51
  29. data/app/assets/stylesheets/admin/partials/_preferences.scss +37 -0
  30. data/app/assets/stylesheets/admin/partials/_sidebar.scss +55 -0
  31. data/app/assets/stylesheets/admin/partials/_tabcontrol.scss +24 -36
  32. data/app/assets/stylesheets/admin/partials/{_index.scss → _table.scss} +53 -84
  33. data/app/assets/stylesheets/admin/partials/_toolbar.scss +11 -6
  34. data/app/assets/stylesheets/admin/partials/_treetable.scss +1 -71
  35. data/app/assets/stylesheets/admin/partials/_typography.scss +30 -55
  36. data/app/assets/stylesheets/admin/partials/_validations.scss +6 -5
  37. data/app/assets/stylesheets/rad_social/rad_screen.scss +65 -64
  38. data/app/controllers/admin/pages_controller.rb +2 -2
  39. data/app/helpers/application_helper.rb +2 -2
  40. data/app/models/menu_renderer.rb +3 -3
  41. data/app/users/_choose_site.html.haml +3 -7
  42. data/app/views/admin/assets/_form.html.haml +2 -1
  43. data/app/views/admin/assets/_search.html.haml +2 -1
  44. data/app/views/admin/assets/edit.html.haml +8 -7
  45. data/app/views/admin/assets/index.html.haml +4 -2
  46. data/app/views/admin/assets/new.html.haml +4 -5
  47. data/app/views/admin/assets/remove.html.haml +1 -0
  48. data/app/views/admin/configuration/edit.html.haml +7 -7
  49. data/app/views/admin/configuration/show.html.haml +6 -8
  50. data/app/views/admin/layouts/_choose_site.html.haml +2 -3
  51. data/app/views/admin/layouts/_form.html.haml +13 -12
  52. data/app/views/admin/layouts/_site_chooser.html.haml +2 -2
  53. data/app/views/admin/layouts/index.html.haml +11 -4
  54. data/app/views/admin/layouts/remove.html.haml +2 -2
  55. data/app/views/admin/page_attachments/_attachment.html.haml +2 -2
  56. data/app/views/admin/page_fields/_page_field.html.haml +3 -3
  57. data/app/views/admin/page_parts/_page_part.html.haml +4 -5
  58. data/app/views/admin/pages/_asset_popups.html.haml +15 -16
  59. data/app/views/admin/pages/_assets.html.haml +8 -7
  60. data/app/views/admin/pages/_fields.html.haml +16 -13
  61. data/app/views/admin/pages/_node.html.haml +3 -3
  62. data/app/views/admin/pages/_popups.html.haml +11 -11
  63. data/app/views/admin/pages/edit.html.haml +2 -2
  64. data/app/views/admin/pages/index.html.haml +5 -2
  65. data/app/views/admin/pages/new.html.haml +3 -3
  66. data/app/views/admin/pages/remove.html.haml +2 -2
  67. data/app/views/admin/preferences/edit.html.haml +5 -5
  68. data/app/views/admin/references/filters.haml +1 -1
  69. data/app/views/admin/references/tags.haml +3 -3
  70. data/app/views/admin/removed/_assets_bucket.html.haml +3 -3
  71. data/app/views/admin/removed/_assets_container.html.haml +18 -18
  72. data/app/views/admin/removed/_bucket.html.haml +1 -1
  73. data/app/views/admin/removed/_bucket_asset.html.haml +3 -3
  74. data/app/views/admin/removed/_show_bucket_link.html.haml +1 -1
  75. data/app/views/admin/removed/_upload_to_page.html.haml +5 -5
  76. data/app/views/admin/sites/_form.haml +18 -18
  77. data/app/views/admin/sites/edit.haml +1 -1
  78. data/app/views/admin/sites/index.haml +6 -4
  79. data/app/views/admin/sites/new.haml +1 -1
  80. data/app/views/admin/snippets/_choose_site.html.haml +4 -5
  81. data/app/views/admin/snippets/_form.html.haml +8 -9
  82. data/app/views/admin/snippets/edit.html.haml +1 -1
  83. data/app/views/admin/snippets/index.html.haml +11 -4
  84. data/app/views/admin/snippets/new.html.haml +1 -1
  85. data/app/views/admin/snippets/remove.html.haml +3 -3
  86. data/app/views/admin/users/_avatar.html.haml +2 -2
  87. data/app/views/admin/users/_choose_site.html.haml +3 -7
  88. data/app/views/admin/users/_form.html.haml +18 -21
  89. data/app/views/admin/users/_password_fields.html.haml +6 -6
  90. data/app/views/admin/users/index.html.haml +13 -6
  91. data/app/views/admin/users/remove.html.haml +2 -2
  92. data/app/views/admin/welcome/login.html.haml +8 -8
  93. data/app/views/devise/passwords/edit.html.haml +6 -6
  94. data/app/views/devise/passwords/new.html.haml +3 -3
  95. data/app/views/devise/sessions/new.html.haml +8 -8
  96. data/app/views/devise/shared/_links.html.haml +2 -2
  97. data/app/views/layouts/application.html.haml +24 -19
  98. data/app/views/rad_social_mailer/social_mail_form.html.haml +15 -15
  99. data/app/views/widget/_email_form.html.haml +14 -14
  100. data/app/views/widget/_horizontal_widget.html.haml +5 -5
  101. data/lib/trusty_cms.rb +1 -1
  102. data/package.json +9 -1
  103. data/yarn.lock +1988 -0
  104. metadata +8 -7
  105. data/app/assets/stylesheets/admin/partials/_deprecated.scss +0 -65
  106. data/app/assets/stylesheets/admin/partials/_jquery-ui-structure.scss +0 -258
  107. data/app/assets/stylesheets/admin/partials/_jquery-ui-theme.scss +0 -410
  108. data/app/assets/stylesheets/admin/partials/_jquery-ui.scss +0 -650
@@ -3,4 +3,4 @@
3
3
  %h1 Edit Site
4
4
  - main.edit_form do
5
5
  = form_for @site, :url => admin_site_path(@site), :html => {:method => :put} do |f|
6
- = render :partial => "form", :locals => {:f => f}
6
+ = render :partial => 'form', :locals => {:f => f}
@@ -2,7 +2,7 @@
2
2
 
3
3
  %h1 Sites
4
4
 
5
- %table{:class => "index", :cellspacing => "0"}
5
+ %table.index.tablesaw
6
6
  %thead
7
7
  %tr
8
8
  - render_region :thead do |thead|
@@ -31,12 +31,14 @@
31
31
  = h(site.base_domain)
32
32
  - tbody.modify_cell do
33
33
  %td.remove
34
- = link_to image("remove.png", :alt => "Remove"), admin_site_path(site), :method => :delete, :onclick => "return confirm('Are you sure you want to permanently remove #{site.name}?')"
34
+ = link_to image('remove.png', :alt => 'Remove'), admin_site_path(site), :method => :delete, :onclick => "return confirm('Are you sure you want to permanently remove #{site.name}?')"
35
35
  - tbody.order_cell do
36
36
  %td.order
37
37
  = order_links(site).html_safe
38
38
 
39
39
  - render_region :bottom do |bottom|
40
40
  - bottom.new_button do
41
- %p
42
- = link_to "New Site", new_admin_site_path
41
+ .page-actions
42
+ = link_to new_admin_site_path, class: 'action_button' do
43
+ %i.fas.fa-plus-circle
44
+ New Site
@@ -3,4 +3,4 @@
3
3
  %h1 New Site
4
4
  - main.edit_form do
5
5
  = form_for @site, :url => admin_sites_path do |f|
6
- = render :partial => "form", :locals => {:f => f}
6
+ = render :partial => 'form', :locals => {:f => f}
@@ -1,6 +1,5 @@
1
1
  - unless current_user.site
2
- %p{:style => 'float: left; margin-right: 32px'}
3
- %label{:for=>"snippet_site_id", :Class => "admin_only"}
4
- Site
5
- - sites = Site.all.map { |s| [s.name, s.id] }
6
- = select :snippet, :site_id, sites, :include_blank => Snippet.is_shareable?, :selected => @snippet.site_id || current_site.id
2
+ %label{:for=>'snippet_site_id', :Class => 'admin_only'}
3
+ Site
4
+ - sites = Site.all.map { |s| [s.name, s.id] }
5
+ = select :snippet, :site_id, sites, :include_blank => Snippet.is_shareable?, :selected => @snippet.site_id || current_site.id
@@ -4,23 +4,22 @@
4
4
  .form_area
5
5
  - render_region :form, :locals => {:f => f} do |form|
6
6
  - form.edit_title do
7
- %p.title
7
+ .title
8
8
  = f.label :name, t('name')
9
9
  = f.text_field :name, :class => 'textbox activate', :maxlength => 100
10
10
  - form.edit_content do
11
- %p.content
11
+ .textarea_content
12
12
  = f.label :content, t('body')
13
- ~ f.text_area :content, :class => "textarea large", :style => "width: 100%"
13
+ ~ f.text_area :content
14
14
  - form.edit_filter do
15
15
  .set
16
- %p
17
- %span.reference_links
18
- == #{t('reference')}:
19
- %span{:id => "tag_reference_link"}
20
- = link_to t('available_tags'), admin_reference_url(:tags), id: 'tag_reference'
16
+ %span.reference_links
17
+ == #{t('reference')}:
18
+ %span{:id => 'tag_reference_link'}
19
+ = link_to t('available_tags'), admin_reference_url(:tags), id: 'tag_reference'
21
20
  - render_region :form_bottom, :locals => {:f => f} do |form_bottom|
22
21
  - form_bottom.edit_buttons do
23
- .buttons{:style=>"clear: left"}
22
+ .buttons{:style=>'clear: left'}
24
23
  = save_model_button(@snippet)
25
24
  = save_model_and_continue_editing_button(@snippet)
26
25
  = t('or')
@@ -6,6 +6,6 @@
6
6
  - main.edit_form do
7
7
  = render :partial => 'form'
8
8
  - main.edit_popups do
9
- = render :partial => "popups"
9
+ = render :partial => 'popups'
10
10
 
11
11
  - content_for 'page_scripts'
@@ -9,7 +9,7 @@
9
9
  - thead.title_header do
10
10
  %th.name= t('snippet')
11
11
  - thead.actions_header do
12
- %th.actions{:style=>"width:9em"}= t('modify')
12
+ %th.actions{:style=>'width:9em'}= t('modify')
13
13
  %tbody
14
14
  - if @snippets.any?
15
15
  - @snippets.each do |snippet|
@@ -17,10 +17,14 @@
17
17
  - render_region :tbody, :locals => {:snippet => snippet} do |tbody|
18
18
  - tbody.title_cell do
19
19
  %td.name
20
- = link_to image('snippet', :alt => '') + ' ' + snippet.name, edit_admin_snippet_url(snippet)
20
+ = link_to edit_admin_snippet_url(snippet) do
21
+ %i.far.fa-sticky-note
22
+ = snippet.name
21
23
  - tbody.actions_cell do
22
24
  %td.actions
23
- = link_to image('minus') + ' ' + t('remove'), remove_admin_snippet_url(snippet), :class => "action"
25
+ = link_to remove_admin_snippet_url(snippet), :class => 'action' do
26
+ %i.fas.fa-minus-circle
27
+ = t('remove')
24
28
  - else
25
29
  %tr
26
30
  %td.empty{:colspan => admin.snippet.index.tbody.length}= t('no_snippets')
@@ -30,4 +34,7 @@
30
34
  #actions
31
35
  = pagination_for(@snippets)
32
36
  %ul
33
- %li= link_to image('plus') + " " + t('new_snippet'), new_admin_snippet_url, :class => 'action_button'
37
+ %li
38
+ = link_to new_admin_snippet_url, class: 'action_button' do
39
+ %i.fas.fa-plus-circle
40
+ =t('new_snippet')
@@ -4,6 +4,6 @@
4
4
  - main.edit_form do
5
5
  = render :partial => 'form'
6
6
  - main.edit_popups do
7
- = render :partial => "popups"
7
+ = render :partial => 'popups'
8
8
 
9
9
  - content_for 'page_scripts'
@@ -7,11 +7,11 @@
7
7
  %tbody
8
8
  %tr.node.level_1
9
9
  %td.snippet
10
- = image('snippet', :alt => "")
10
+ = image('snippet', :alt => '')
11
11
  %span.title= @snippet.name
12
12
 
13
- = form_for [:admin, @snippet], :html => {:method => :delete, 'data-onsubmit_status'=>"Removing snippet…"} do
13
+ = form_for [:admin, @snippet], :html => {:method => :delete, 'data-onsubmit_status'=>'Removing snippet…'} do
14
14
  .buttons
15
- %input.button{:type=>"submit", :value => t('delete_snippet')}/
15
+ %input.button{:type=>'submit', :value => t('delete_snippet')}/
16
16
  = t('or')
17
17
  = link_to t('cancel'), admin_snippets_url
@@ -1,5 +1,5 @@
1
1
  #avatar
2
- = image_tag(gravatar_url(@user.email, :size=>"96px"), :class=>"avatar", :width=>96, :height=>96, :alt=>"")
2
+ = image_tag(gravatar_url(@user.email, :size=>'96px'), :class=>'avatar', :width=>96, :height=>96, :alt=>'')
3
3
  %p.caption
4
4
  Avatar provided by
5
- = link_to "gravatar.com", 'http://gravatar.com/site/signup/'
5
+ = link_to 'gravatar.com', 'http://gravatar.com/site/signup/'
@@ -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
+
@@ -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