ama_layout 9.5.3 → 11.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +45 -0
  3. data/.ruby-version +1 -0
  4. data/Dangerfile +19 -0
  5. data/ama_layout.gemspec +33 -18
  6. data/app/assets/javascripts/ama_layout/desktop/foundation-custom.js +1 -0
  7. data/app/helpers/ama_layout_breadcrumb_helper.rb +7 -1
  8. data/app/helpers/ama_layout_content_helper.rb +28 -17
  9. data/app/helpers/ama_layout_partial_helper.rb +11 -0
  10. data/app/views/ama_layout/{_alert.html.erb → v2/_alert.html.erb} +0 -0
  11. data/app/views/ama_layout/{_applogo.html.erb → v2/_applogo.html.erb} +0 -0
  12. data/app/views/ama_layout/{_breadcrumbs.html.erb → v2/_breadcrumbs.html.erb} +0 -0
  13. data/app/views/ama_layout/{_custom_nav_links.html.erb → v2/_custom_nav_links.html.erb} +0 -0
  14. data/app/views/ama_layout/{_custom_sidebar.html.erb → v2/_custom_sidebar.html.erb} +0 -0
  15. data/app/views/ama_layout/v2/_font.html.erb +1 -0
  16. data/app/views/ama_layout/{_footer.html.erb → v2/_footer.html.erb} +0 -0
  17. data/app/views/ama_layout/{_main_nav_item.html.erb → v2/_main_nav_item.html.erb} +0 -0
  18. data/app/views/ama_layout/{_main_top_nav_item.html.erb → v2/_main_top_nav_item.html.erb} +0 -0
  19. data/app/views/ama_layout/v2/_member_links.html.erb +6 -0
  20. data/app/views/ama_layout/{_mobile_links.html.erb → v2/_mobile_links.html.erb} +0 -0
  21. data/app/views/ama_layout/{_mobile_notification_icon.html.erb → v2/_mobile_notification_icon.html.erb} +0 -0
  22. data/app/views/ama_layout/{_notice.html.erb → v2/_notice.html.erb} +0 -0
  23. data/app/views/ama_layout/{_notices.html.erb → v2/_notices.html.erb} +0 -0
  24. data/app/views/ama_layout/{_notification.html.erb → v2/_notification.html.erb} +0 -0
  25. data/app/views/ama_layout/{_notification_icon.html.erb → v2/_notification_icon.html.erb} +0 -0
  26. data/app/views/ama_layout/{_notification_sidebar.html.erb → v2/_notification_sidebar.html.erb} +1 -1
  27. data/app/views/ama_layout/{_sidebar.html.erb → v2/_sidebar.html.erb} +0 -0
  28. data/app/views/ama_layout/{_sign_out_link.html.erb → v2/_sign_out_link.html.erb} +0 -0
  29. data/app/views/ama_layout/{_siteheader.html.erb → v2/_siteheader.html.erb} +0 -0
  30. data/app/views/ama_layout/{_sub_nav.html.erb → v2/_sub_nav.html.erb} +0 -0
  31. data/app/views/ama_layout/{_sub_nav_item.html.erb → v2/_sub_nav_item.html.erb} +0 -0
  32. data/app/views/ama_layout/{_success.html.erb → v2/_success.html.erb} +0 -0
  33. data/app/views/ama_layout/v2/_top_nav.html.erb +16 -0
  34. data/app/views/ama_layout/{_top_sub_nav.html.erb → v2/_top_sub_nav.html.erb} +0 -0
  35. data/app/views/ama_layout/{_top_sub_nav_item.html.erb → v2/_top_sub_nav_item.html.erb} +0 -0
  36. data/app/views/ama_layout/v3/_alert.html.erb +5 -0
  37. data/app/views/ama_layout/v3/_applogo.html.erb +3 -0
  38. data/app/views/ama_layout/v3/_breadcrumbs.html.erb +3 -0
  39. data/app/views/ama_layout/v3/_custom_nav_links.html.erb +0 -0
  40. data/app/views/ama_layout/v3/_custom_sidebar.html.erb +1 -0
  41. data/app/views/ama_layout/v3/_font.html.erb +2 -0
  42. data/app/views/ama_layout/v3/_footer.html.erb +69 -0
  43. data/app/views/ama_layout/v3/_main_nav_item.html.erb +6 -0
  44. data/app/views/ama_layout/v3/_main_top_nav_item.html.erb +4 -0
  45. data/app/views/ama_layout/v3/_member_links.html.erb +6 -0
  46. data/app/views/ama_layout/v3/_mobile_links.html.erb +19 -0
  47. data/app/views/ama_layout/v3/_mobile_notification_icon.html.erb +4 -0
  48. data/app/views/ama_layout/v3/_notice.html.erb +5 -0
  49. data/app/views/ama_layout/v3/_notices.html.erb +3 -0
  50. data/app/views/ama_layout/v3/_notification.html.erb +10 -0
  51. data/app/views/ama_layout/v3/_notification_icon.html.erb +6 -0
  52. data/app/views/ama_layout/v3/_notification_sidebar.html.erb +22 -0
  53. data/app/views/ama_layout/v3/_sidebar.html.erb +8 -0
  54. data/app/views/ama_layout/v3/_sign_out_link.html.erb +3 -0
  55. data/app/views/ama_layout/v3/_siteheader.html.erb +37 -0
  56. data/app/views/ama_layout/v3/_sub_nav.html.erb +3 -0
  57. data/app/views/ama_layout/v3/_sub_nav_item.html.erb +3 -0
  58. data/app/views/ama_layout/v3/_success.html.erb +5 -0
  59. data/app/views/ama_layout/v3/_top_nav.html.erb +16 -0
  60. data/app/views/ama_layout/v3/_top_sub_nav.html.erb +3 -0
  61. data/app/views/ama_layout/v3/_top_sub_nav_item.html.erb +3 -0
  62. data/config.ru +9 -0
  63. data/lib/ama_layout/ama_layout_view.rb +6 -0
  64. data/lib/ama_layout/decorators/agent/navigation_decorator.rb +11 -6
  65. data/lib/ama_layout/decorators/navigation_decorator.rb +41 -26
  66. data/lib/ama_layout/draper_replacement.rb +6 -0
  67. data/lib/ama_layout/moneris.rb +10 -1
  68. data/lib/ama_layout/moneris/{textbox.txt → v2/textbox.txt} +0 -0
  69. data/lib/ama_layout/moneris/v3/textbox.txt +62 -0
  70. data/lib/ama_layout/navigation.rb +16 -9
  71. data/lib/ama_layout/navigation.yml +2 -2
  72. data/lib/ama_layout/version.rb +3 -1
  73. data/spec/ama_layout/decorators/moneris_decorator_spec.rb +10 -7
  74. data/spec/ama_layout/decorators/navigation_decorator_spec.rb +115 -60
  75. data/spec/ama_layout/moneris_spec.rb +22 -3
  76. data/spec/factories/agent_navigation.rb +3 -1
  77. data/spec/factories/navigation.rb +3 -1
  78. data/spec/factories/navigation_item.rb +6 -4
  79. data/spec/factories/users.rb +20 -13
  80. data/spec/helpers/ama_layout_content_helper_spec.rb +64 -62
  81. data/spec/internal/app/assets/config/manifest.js +0 -0
  82. data/spec/internal/db/schema.rb +4 -1
  83. data/spec/spec_helper.rb +3 -1
  84. metadata +104 -80
  85. data/.travis.yml +0 -6
  86. data/app/views/ama_layout/_top_nav.html.erb +0 -11
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.2
4
- sudo: false
5
- services:
6
- - redis-server
@@ -1,11 +0,0 @@
1
- <li class="has-submenu">
2
- <%= link_to navigation.display_name_text, '#', class: 'link--no-underline' %>
3
- <ul class="submenu menu vertical">
4
- <li>
5
- <%= link_to 'Online Account', Rails.configuration.gatekeeper_site %>
6
- </li>
7
- <li><%= link_to 'AMA Website', Rails.configuration.amaabca_site %></li>
8
- <li><a href="http://amaroadreports.ca/">AMA Road Reports</a></li>
9
- <%= navigation.sign_out_link %>
10
- </ul>
11
- </li>