lcms-engine 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. checksums.yaml +4 -4
  2. data/{spec/dummy/.env.docker → .env.docker} +0 -0
  3. data/.env.template +34 -0
  4. data/.gitignore +0 -1
  5. data/CHANGELOG.md +25 -0
  6. data/Dockerfile +1 -0
  7. data/Gemfile +0 -1
  8. data/Gemfile.lock +682 -0
  9. data/README.md +5 -11
  10. data/app/assets/javascripts/lcms/engine/admin/application.js +2 -11
  11. data/app/assets/javascripts/lcms/engine/application.js +1 -44
  12. data/app/assets/javascripts/lcms/engine/application_lti.js +1 -29
  13. data/app/assets/javascripts/lcms/engine/initializers/foundation.js +5 -0
  14. data/app/assets/stylesheets/lcms/engine/admin.scss +0 -1
  15. data/app/assets/stylesheets/lcms/engine/application.scss +6 -61
  16. data/app/assets/stylesheets/lcms/engine/base/_colors.scss +2 -2
  17. data/app/assets/stylesheets/lcms/engine/components/lesson/_icons.scss +0 -25
  18. data/app/assets/stylesheets/lcms/engine/layout/_footer.scss +2 -0
  19. data/app/assets/stylesheets/lcms/engine/layout/_header.scss +1 -210
  20. data/app/assets/stylesheets/lcms/engine/pdf.scss +3 -27
  21. data/app/assets/stylesheets/lcms/engine/pdf_plain.scss +3 -11
  22. data/app/assets/stylesheets/lcms/engine/print/_typography.scss +0 -5
  23. data/app/assets/stylesheets/lcms/engine/utils/_variables.scss +4 -4
  24. data/app/controllers/concerns/lcms/engine/reimportable.rb +9 -0
  25. data/app/controllers/lcms/engine/admin/admin_controller.rb +2 -0
  26. data/app/controllers/lcms/engine/admin/documents_controller.rb +7 -17
  27. data/app/controllers/lcms/engine/admin/materials_controller.rb +16 -19
  28. data/app/controllers/lcms/engine/admin/resources_controller.rb +77 -41
  29. data/app/controllers/lcms/engine/surveys_controller.rb +3 -14
  30. data/app/forms/lcms/engine/material_form.rb +1 -0
  31. data/app/helpers/lcms/engine/application_helper.rb +6 -2
  32. data/app/helpers/lcms/engine/resource_helper.rb +0 -17
  33. data/app/presenters/lcms/engine/content_presenter.rb +1 -1
  34. data/app/presenters/lcms/engine/document_presenter.rb +3 -5
  35. data/app/views/devise/confirmations/new.html.erb +1 -1
  36. data/app/views/devise/passwords/edit.html.erb +1 -1
  37. data/app/views/devise/passwords/new.html.erb +1 -1
  38. data/app/views/devise/registrations/new.html.erb +1 -1
  39. data/app/views/devise/sessions/new.html.erb +2 -2
  40. data/app/views/layouts/lcms/engine/admin.html.erb +1 -3
  41. data/app/views/layouts/lcms/engine/application.html.erb +0 -6
  42. data/app/views/layouts/lcms/engine/cg_pdf.erb +0 -38
  43. data/app/views/layouts/lcms/engine/lti.html.erb +0 -1
  44. data/app/views/lcms/engine/admin/curriculums/edit.html.erb +3 -0
  45. data/app/views/lcms/engine/admin/materials/index.html.erb +1 -1
  46. data/app/views/lcms/engine/admin/resource_bulk_edits/new.html.erb +3 -3
  47. data/app/views/lcms/engine/admin/shared/_header.html.erb +1 -8
  48. data/app/views/lcms/engine/documents/_content.html.erb +0 -1
  49. data/app/views/lcms/engine/documents/_sticky_header.html.erb +1 -1
  50. data/app/views/lcms/engine/documents/_sticky_site_menu.html.erb +0 -1
  51. data/app/views/lcms/engine/resources/_download.html.erb +2 -2
  52. data/app/views/lcms/engine/resources/_unit_bundles.html.erb +2 -2
  53. data/app/views/lcms/engine/resources/show.html.erb +2 -2
  54. data/app/views/lcms/engine/shared/_footer.html.erb +1 -3
  55. data/app/views/lcms/engine/shared/_header.html.erb +2 -36
  56. data/app/views/lcms/engine/surveys/show.html.erb +1 -1
  57. data/app/views/lcms/engine/welcome/index.html.erb +1 -80
  58. data/config/locales/admin/en.yml +1 -0
  59. data/config/routes.rb +2 -36
  60. data/db/migrate/20200422130652_add_reimported_at_to_documents.rb +1 -1
  61. data/db/migrate/20200429130353_drop_pages.rb +13 -0
  62. data/docs/env-variables.md +87 -0
  63. data/docs/google-cloud-platform-setup.md +106 -0
  64. data/lcms-engine.gemspec +50 -59
  65. data/lib/doc_template/document.rb +2 -2
  66. data/lib/doc_template/tables/activity.rb +1 -2
  67. data/lib/doc_template/tables/base.rb +4 -0
  68. data/lib/doc_template/tables/section.rb +1 -2
  69. data/lib/doc_template/xpath_functions.rb +3 -1
  70. data/lib/lcms/engine/engine.rb +0 -8
  71. data/lib/lcms/engine/version.rb +1 -1
  72. data/lib/lt/lcms/metadata/context.rb +5 -7
  73. data/spec/controllers/admin/admin_controller_spec.rb +1 -1
  74. data/spec/controllers/admin/documents_controller_spec.rb +38 -6
  75. data/spec/controllers/admin/materials_controller_spec.rb +64 -0
  76. data/spec/controllers/admin/resources_controller_spec.rb +72 -0
  77. data/spec/dummy/config/lcms-admin.yml +3 -3
  78. data/spec/dummy/db/schema.rb +29 -37
  79. data/spec/features/welcome_spec.rb +1 -1
  80. data/spec/fixtures/tables/activity-metadata-3activities.html +1 -0
  81. data/spec/fixtures/tables/document-metadata-2paragpraphs.html +97 -0
  82. data/spec/fixtures/tables/document-metadata-2spans.html +96 -0
  83. data/spec/fixtures/tables/document-metadata.html +96 -0
  84. data/spec/lib/doc_template/tables/activity_spec.rb +28 -0
  85. data/spec/lib/doc_template/tables/metadata_spec.rb +40 -0
  86. data/spec/lib/doc_template/tables/shared_examples/remove_table.rb +11 -0
  87. data/spec/rails_helper.rb +1 -0
  88. data/spec/support/fixture_helper.rb +16 -0
  89. data/vendor/assets/javascripts/selectize.min.js +4 -0
  90. data/vendor/assets/stylesheets/selectize.scss +333 -0
  91. data/yarn.lock +634 -452
  92. metadata +274 -494
  93. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Medium-Web.eot +0 -0
  94. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Medium-Web.svg +0 -689
  95. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Medium-Web.ttf +0 -0
  96. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Medium-Web.woff +0 -0
  97. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Regular-Web.eot +0 -0
  98. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Regular-Web.svg +0 -697
  99. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Regular-Web.ttf +0 -0
  100. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Regular-Web.woff +0 -0
  101. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-RegularItalic-Web.eot +0 -0
  102. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-RegularItalic-Web.svg +0 -768
  103. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-RegularItalic-Web.ttf +0 -0
  104. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-RegularItalic-Web.woff +0 -0
  105. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Semibold-Web.eot +0 -0
  106. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Semibold-Web.svg +0 -685
  107. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Semibold-Web.ttf +0 -0
  108. data/app/assets/fonts/lcms/engine/caponi/CaponiSlab-Semibold-Web.woff +0 -0
  109. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Bold.eot +0 -0
  110. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Bold.svg +0 -5603
  111. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Bold.woff +0 -0
  112. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Light.eot +0 -0
  113. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Light.svg +0 -5763
  114. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Light.woff +0 -0
  115. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Medium.eot +0 -0
  116. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Medium.otf +0 -0
  117. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Medium.svg +0 -5400
  118. data/app/assets/fonts/lcms/engine/centro/PFCentroSansCond-Medium.woff +0 -0
  119. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Bold.eot +0 -0
  120. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Bold.html +0 -15
  121. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Bold.otf +0 -0
  122. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Bold.svg +0 -13061
  123. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Bold.woff +0 -0
  124. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Light.eot +0 -0
  125. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Light.html +0 -15
  126. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Light.otf +0 -0
  127. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Light.svg +0 -13075
  128. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Light.woff +0 -0
  129. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-LightItalic.eot +0 -0
  130. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-LightItalic.otf +0 -0
  131. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-LightItalic.svg +0 -13142
  132. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-LightItalic.woff +0 -0
  133. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Medium.eot +0 -0
  134. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Medium.ttf +0 -0
  135. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Medium.woff +0 -0
  136. data/app/assets/fonts/lcms/engine/centro/PFCentroSansPro-Medium.woff2 +0 -0
  137. data/app/assets/fonts/lcms/engine/cursive/Sriracha-Regular.ttf +0 -0
  138. data/app/assets/fonts/lcms/engine/icons/ubicons.eot +0 -0
  139. data/app/assets/fonts/lcms/engine/icons/ubicons.svg +0 -50
  140. data/app/assets/fonts/lcms/engine/icons/ubicons.ttf +0 -0
  141. data/app/assets/fonts/lcms/engine/icons/ubicons.woff +0 -0
  142. data/app/assets/fonts/lcms/engine/ub/UBIcons.eot +0 -0
  143. data/app/assets/fonts/lcms/engine/ub/UBIcons.svg +0 -18
  144. data/app/assets/fonts/lcms/engine/ub/UBIcons.ttf +0 -0
  145. data/app/assets/fonts/lcms/engine/ub/UBIcons.woff +0 -0
  146. data/app/assets/images/lcms/engine/lessons/ld_p1.png +0 -0
  147. data/app/assets/images/lcms/engine/lessons/ld_p2.png +0 -0
  148. data/app/assets/images/lcms/engine/lessons/ld_p3.png +0 -0
  149. data/app/assets/images/lcms/engine/lessons/tens.png +0 -0
  150. data/app/assets/images/lcms/engine/lessons/wp.svg +0 -30
  151. data/app/assets/images/lcms/engine/tile-wide.png +0 -0
  152. data/app/assets/images/lcms/engine/tile.png +0 -0
  153. data/app/assets/javascripts/lcms/engine/components.js +0 -7
  154. data/app/assets/javascripts/lcms/engine/components/.gitkeep +0 -0
  155. data/app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMap.js.jsx +0 -31
  156. data/app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapLesson.js.jsx +0 -18
  157. data/app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapModule.js.jsx +0 -59
  158. data/app/assets/javascripts/lcms/engine/components/curriculum-map/CurriculumMapUnit.js.jsx +0 -56
  159. data/app/assets/javascripts/lcms/engine/components/curriculum-map/ResourceHover.js.jsx +0 -27
  160. data/app/assets/javascripts/lcms/engine/components/curriculum-map/ResourcePreview.js.jsx +0 -29
  161. data/app/assets/javascripts/lcms/engine/components/enhance-instruction/EnhanceInstructionCards.js.jsx +0 -13
  162. data/app/assets/javascripts/lcms/engine/components/enhance-instruction/EnhanceInstructionPage.js.jsx +0 -139
  163. data/app/assets/javascripts/lcms/engine/components/enhance-instruction/GenericResourceCard.js.jsx +0 -20
  164. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumCardItem.js.jsx +0 -152
  165. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumGradeMap.js.jsx +0 -44
  166. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumHeader.js.jsx +0 -10
  167. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumItem.js.jsx +0 -77
  168. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumModuleMap.js.jsx +0 -59
  169. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumOpr.js.jsx +0 -62
  170. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumPage.js.jsx +0 -258
  171. data/app/assets/javascripts/lcms/engine/components/explore-curriculum/ExploreCurriculumUnitMap.js.jsx +0 -50
  172. data/app/assets/javascripts/lcms/engine/components/filterbar/FilterBarResponsive.js.jsx +0 -62
  173. data/app/assets/javascripts/lcms/engine/components/filterbar/Filterbar.js.jsx +0 -258
  174. data/app/assets/javascripts/lcms/engine/components/filterbar/FilterbarFacet.js.jsx +0 -12
  175. data/app/assets/javascripts/lcms/engine/components/filterbar/FilterbarGrade.js.jsx +0 -14
  176. data/app/assets/javascripts/lcms/engine/components/filterbar/FilterbarSearch.js.jsx +0 -48
  177. data/app/assets/javascripts/lcms/engine/components/filterbar/FilterbarSubject.js.jsx +0 -12
  178. data/app/assets/javascripts/lcms/engine/components/find-lessons/FindLessonsCards.js.jsx +0 -11
  179. data/app/assets/javascripts/lcms/engine/components/find-lessons/FindLessonsCardsEmpty.js.jsx +0 -17
  180. data/app/assets/javascripts/lcms/engine/components/find-lessons/FindLessonsPage.js.jsx +0 -58
  181. data/app/assets/javascripts/lcms/engine/components/helpers/FreshdeskBtn.js.jsx +0 -9
  182. data/app/assets/javascripts/lcms/engine/components/helpers/MediaTime.js.jsx +0 -6
  183. data/app/assets/javascripts/lcms/engine/components/helpers/SearchResultsHeader.js.jsx +0 -41
  184. data/app/assets/javascripts/lcms/engine/components/helpers/TimeToTeach.js.jsx +0 -29
  185. data/app/assets/javascripts/lcms/engine/components/instruction-card/InstructionCard.js.jsx +0 -57
  186. data/app/assets/javascripts/lcms/engine/components/lesson-card/LessonCard.js.jsx +0 -45
  187. data/app/assets/javascripts/lcms/engine/components/materials/CollapsedMaterial.js.jsx +0 -40
  188. data/app/assets/javascripts/lcms/engine/components/materials/DocumentMaterialsList.js.jsx +0 -33
  189. data/app/assets/javascripts/lcms/engine/components/materials/ExpandedMaterial.js.jsx +0 -37
  190. data/app/assets/javascripts/lcms/engine/components/materials/MaterialsContainer.js.jsx +0 -92
  191. data/app/assets/javascripts/lcms/engine/components/materials/MaterialsList.js.jsx +0 -19
  192. data/app/assets/javascripts/lcms/engine/components/modals/DownloadModal.js.jsx +0 -68
  193. data/app/assets/javascripts/lcms/engine/components/related-instruction/RelatedInstruction.js.jsx +0 -72
  194. data/app/assets/javascripts/lcms/engine/components/search-dropdown/SearchDropdown.js.jsx +0 -159
  195. data/app/assets/javascripts/lcms/engine/components/search-dropdown/SearchDropdownResult.js.jsx +0 -12
  196. data/app/assets/javascripts/lcms/engine/components/search-dropdown/SearchDropdownResults.js.jsx +0 -36
  197. data/app/assets/javascripts/lcms/engine/components/search/SearchPage.js.jsx +0 -44
  198. data/app/assets/javascripts/lcms/engine/components/search/SearchResult.js.jsx +0 -22
  199. data/app/assets/javascripts/lcms/engine/components/search/SearchResults.js.jsx +0 -17
  200. data/app/assets/javascripts/lcms/engine/components/search/SearchResultsEmpty.js.jsx +0 -25
  201. data/app/assets/javascripts/lcms/engine/components/search/searchPageWrapper.js.jsx +0 -77
  202. data/app/assets/javascripts/lcms/engine/components/select-activity/SelectActivityConfirmationModal.js.jsx +0 -107
  203. data/app/assets/javascripts/lcms/engine/components/select-activity/SelectActivityToggle.js.jsx +0 -39
  204. data/app/assets/javascripts/lcms/engine/components/stores/ExcludesStore.js.jsx +0 -11
  205. data/app/assets/javascripts/lcms/engine/components/tabs/SimpleTab.js.jsx +0 -130
  206. data/app/assets/javascripts/lcms/engine/components/utils/UrlHistory.js.jsx +0 -113
  207. data/app/assets/javascripts/lcms/engine/components/utils/colorcodecss.js.jsx +0 -4
  208. data/app/assets/javascripts/lcms/engine/components/utils/converttobem.js.jsx +0 -3
  209. data/app/assets/javascripts/lcms/engine/components/utils/filterbarupdate.js.jsx +0 -5
  210. data/app/assets/javascripts/lcms/engine/components/utils/heaptrackpd.js.jsx +0 -5
  211. data/app/assets/javascripts/lcms/engine/components/utils/regexpescape.js.jsx +0 -5
  212. data/app/assets/javascripts/lcms/engine/components/utils/scalenumber.js.jsx +0 -8
  213. data/app/assets/javascripts/lcms/engine/initializers/about_people.js +0 -8
  214. data/app/assets/javascripts/lcms/engine/initializers/analytics.js +0 -10
  215. data/app/assets/javascripts/lcms/engine/initializers/bundles.js +0 -12
  216. data/app/assets/javascripts/lcms/engine/initializers/events.js +0 -3
  217. data/app/assets/javascripts/lcms/engine/initializers/freshdesk.js +0 -18
  218. data/app/assets/javascripts/lcms/engine/initializers/header_dropdown.js +0 -44
  219. data/app/assets/javascripts/lcms/engine/initializers/heap_analytics.js +0 -78
  220. data/app/assets/javascripts/lcms/engine/initializers/leadership.js +0 -22
  221. data/app/assets/javascripts/lcms/engine/initializers/lessons.js +0 -299
  222. data/app/assets/javascripts/lcms/engine/initializers/loadasync.js +0 -30
  223. data/app/assets/javascripts/lcms/engine/initializers/pdf_preview.js +0 -15
  224. data/app/assets/javascripts/lcms/engine/initializers/resource_details.js +0 -21
  225. data/app/assets/javascripts/lcms/engine/initializers/sidebar/SideBar.js.jsx +0 -86
  226. data/app/assets/javascripts/lcms/engine/initializers/sidebar/SidebarCGMenu.js.jsx +0 -37
  227. data/app/assets/javascripts/lcms/engine/initializers/sidebar/SidebarDocMenu.js.jsx +0 -75
  228. data/app/assets/javascripts/lcms/engine/initializers/sidebar/SidebarMobile.js.jsx +0 -43
  229. data/app/assets/javascripts/lcms/engine/initializers/sidebar/SidebarSticky.js.jsx +0 -43
  230. data/app/assets/javascripts/lcms/engine/initializers/sidebar/TopScroll.js.jsx +0 -21
  231. data/app/assets/javascripts/lcms/engine/initializers/social_sharing.js +0 -29
  232. data/app/assets/javascripts/lcms/engine/initializers/soundcloud.js +0 -52
  233. data/app/assets/javascripts/lcms/engine/initializers/subscribe_placeholder.js +0 -12
  234. data/app/assets/javascripts/lcms/engine/initializers/survey.js +0 -31
  235. data/app/assets/stylesheets/lcms/engine/base/_cg-colors.scss +0 -48
  236. data/app/assets/stylesheets/lcms/engine/base/_fonts.scss +0 -103
  237. data/app/assets/stylesheets/lcms/engine/base/_icons.scss +0 -342
  238. data/app/assets/stylesheets/lcms/engine/components/_buttons.scss +0 -200
  239. data/app/assets/stylesheets/lcms/engine/components/_cards.scss +0 -36
  240. data/app/assets/stylesheets/lcms/engine/components/_cg-base.scss +0 -22
  241. data/app/assets/stylesheets/lcms/engine/components/_curriculum-cards.scss +0 -237
  242. data/app/assets/stylesheets/lcms/engine/components/_curriculum-map.scss +0 -214
  243. data/app/assets/stylesheets/lcms/engine/components/_download-modal.scss +0 -56
  244. data/app/assets/stylesheets/lcms/engine/components/_filterbar-modal.scss +0 -20
  245. data/app/assets/stylesheets/lcms/engine/components/_filterbar.scss +0 -184
  246. data/app/assets/stylesheets/lcms/engine/components/_generic-resource.scss +0 -58
  247. data/app/assets/stylesheets/lcms/engine/components/_inputs.scss +0 -12
  248. data/app/assets/stylesheets/lcms/engine/components/_instruction-cards.scss +0 -160
  249. data/app/assets/stylesheets/lcms/engine/components/_lesson-base.scss +0 -31
  250. data/app/assets/stylesheets/lcms/engine/components/_lesson-cards.scss +0 -119
  251. data/app/assets/stylesheets/lcms/engine/components/_ls-post.scss +0 -38
  252. data/app/assets/stylesheets/lcms/engine/components/_material-base.scss +0 -6
  253. data/app/assets/stylesheets/lcms/engine/components/_media-resources.scss +0 -6
  254. data/app/assets/stylesheets/lcms/engine/components/_media.scss +0 -95
  255. data/app/assets/stylesheets/lcms/engine/components/_pagination.scss +0 -84
  256. data/app/assets/stylesheets/lcms/engine/components/_panel-dsc.scss +0 -37
  257. data/app/assets/stylesheets/lcms/engine/components/_panel.scss +0 -7
  258. data/app/assets/stylesheets/lcms/engine/components/_related-instruction.scss +0 -31
  259. data/app/assets/stylesheets/lcms/engine/components/_resource.scss +0 -217
  260. data/app/assets/stylesheets/lcms/engine/components/_search-dropdown.scss +0 -23
  261. data/app/assets/stylesheets/lcms/engine/components/_search-header.scss +0 -45
  262. data/app/assets/stylesheets/lcms/engine/components/_search.scss +0 -57
  263. data/app/assets/stylesheets/lcms/engine/components/_sidebar.scss +0 -159
  264. data/app/assets/stylesheets/lcms/engine/components/_simple-tab.scss +0 -57
  265. data/app/assets/stylesheets/lcms/engine/components/_social-sharing.scss +0 -20
  266. data/app/assets/stylesheets/lcms/engine/components/_titles.scss +0 -33
  267. data/app/assets/stylesheets/lcms/engine/components/_top-scroll-button.scss +0 -28
  268. data/app/assets/stylesheets/lcms/engine/components/_unit-bundles.scss +0 -14
  269. data/app/assets/stylesheets/lcms/engine/components/cg/_annotations.scss +0 -48
  270. data/app/assets/stylesheets/lcms/engine/components/cg/_colorscheme.scss +0 -60
  271. data/app/assets/stylesheets/lcms/engine/components/cg/_contents-modal.scss +0 -20
  272. data/app/assets/stylesheets/lcms/engine/components/cg/_elements.scss +0 -11
  273. data/app/assets/stylesheets/lcms/engine/components/cg/_faq.scss +0 -35
  274. data/app/assets/stylesheets/lcms/engine/components/cg/_footnote.scss +0 -20
  275. data/app/assets/stylesheets/lcms/engine/components/cg/_hacks.scss +0 -11
  276. data/app/assets/stylesheets/lcms/engine/components/cg/_icons.scss +0 -30
  277. data/app/assets/stylesheets/lcms/engine/components/cg/_keywords.scss +0 -5
  278. data/app/assets/stylesheets/lcms/engine/components/cg/_links.scss +0 -3
  279. data/app/assets/stylesheets/lcms/engine/components/cg/_quotes.scss +0 -18
  280. data/app/assets/stylesheets/lcms/engine/components/cg/_standards.scss +0 -23
  281. data/app/assets/stylesheets/lcms/engine/components/cg/_table.scss +0 -50
  282. data/app/assets/stylesheets/lcms/engine/components/cg/_task.scss +0 -43
  283. data/app/assets/stylesheets/lcms/engine/components/cg/_video.scss +0 -10
  284. data/app/assets/stylesheets/lcms/engine/components/support/_helpdesk.scss +0 -25
  285. data/app/assets/stylesheets/lcms/engine/freshdesk/base/_colors.scss +0 -25
  286. data/app/assets/stylesheets/lcms/engine/freshdesk/base/_typography.scss +0 -19
  287. data/app/assets/stylesheets/lcms/engine/freshdesk/components/_block.scss +0 -5
  288. data/app/assets/stylesheets/lcms/engine/freshdesk/components/_buttons.scss +0 -5
  289. data/app/assets/stylesheets/lcms/engine/freshdesk/components/_help-center.scss +0 -59
  290. data/app/assets/stylesheets/lcms/engine/freshdesk/components/_tabs.scss +0 -33
  291. data/app/assets/stylesheets/lcms/engine/freshdesk/freshdesk.scss +0 -42
  292. data/app/assets/stylesheets/lcms/engine/freshdesk/layout/_footer.scss +0 -44
  293. data/app/assets/stylesheets/lcms/engine/freshdesk/layout/_header.scss +0 -49
  294. data/app/assets/stylesheets/lcms/engine/freshdesk/layout/_page.scss +0 -40
  295. data/app/assets/stylesheets/lcms/engine/freshdesk/layout/footer.liquid +0 -14
  296. data/app/assets/stylesheets/lcms/engine/freshdesk/layout/header.liquid +0 -41
  297. data/app/assets/stylesheets/lcms/engine/freshdesk/layout/page.liquid +0 -22
  298. data/app/assets/stylesheets/lcms/engine/freshdesk/pages/_portal-home.scss +0 -18
  299. data/app/assets/stylesheets/lcms/engine/freshdesk/pages/portal.home.liquid +0 -74
  300. data/app/assets/stylesheets/lcms/engine/freshdesk/themes/_settings.scss +0 -19
  301. data/app/assets/stylesheets/lcms/engine/freshdesk/utils/_breakpoint.scss +0 -288
  302. data/app/assets/stylesheets/lcms/engine/freshdesk/utils/_helpers.scss +0 -22
  303. data/app/assets/stylesheets/lcms/engine/freshdesk/utils/_unit.scss +0 -95
  304. data/app/assets/stylesheets/lcms/engine/freshdesk/utils/_value.scss +0 -138
  305. data/app/assets/stylesheets/lcms/engine/layout/_connect.scss +0 -63
  306. data/app/assets/stylesheets/lcms/engine/layout/_header-search-form.scss +0 -30
  307. data/app/assets/stylesheets/lcms/engine/layout/_sticky-header.scss +0 -179
  308. data/app/assets/stylesheets/lcms/engine/layout/_sticky-navigation.scss +0 -124
  309. data/app/assets/stylesheets/lcms/engine/layout/_subscribe.scss +0 -68
  310. data/app/assets/stylesheets/lcms/engine/pages/_about-people.scss +0 -115
  311. data/app/assets/stylesheets/lcms/engine/pages/_about.scss +0 -61
  312. data/app/assets/stylesheets/lcms/engine/pages/_content-guide.scss +0 -205
  313. data/app/assets/stylesheets/lcms/engine/pages/_enhance-instruction.scss +0 -19
  314. data/app/assets/stylesheets/lcms/engine/pages/_explore-curriculum.scss +0 -46
  315. data/app/assets/stylesheets/lcms/engine/pages/_find-lessons.scss +0 -1
  316. data/app/assets/stylesheets/lcms/engine/pages/_home.scss +0 -237
  317. data/app/assets/stylesheets/lcms/engine/pages/_leadership.scss +0 -263
  318. data/app/assets/stylesheets/lcms/engine/pages/_lesson-document.scss +0 -138
  319. data/app/assets/stylesheets/lcms/engine/pages/_unsupported.scss +0 -18
  320. data/app/assets/stylesheets/lcms/engine/print/_b64-fonts.scss.erb +0 -65
  321. data/app/assets/stylesheets/lcms/engine/print/_cg-base.scss +0 -4
  322. data/app/assets/stylesheets/lcms/engine/print/_hacks.scss +0 -6
  323. data/app/assets/stylesheets/lcms/engine/print/cg/_base-typography.scss +0 -21
  324. data/app/assets/stylesheets/lcms/engine/print/cg/_breaks.scss +0 -7
  325. data/app/assets/stylesheets/lcms/engine/print/cg/_elements-typography.scss +0 -14
  326. data/app/assets/stylesheets/lcms/engine/vendors/swiper.css +0 -547
  327. data/app/controllers/concerns/lcms/engine/analytics_tracking.rb +0 -51
  328. data/app/controllers/concerns/lcms/engine/heap_notifyable.rb +0 -20
  329. data/app/controllers/lcms/engine/admin/configurable_admin.rb +0 -56
  330. data/app/controllers/lcms/engine/admin/google_oauth2_controller.rb +0 -15
  331. data/app/controllers/lcms/engine/admin/pages_controller.rb +0 -54
  332. data/app/controllers/lcms/engine/analytics_exclusion_controller.rb +0 -14
  333. data/app/controllers/lcms/engine/downloads_controller.rb +0 -50
  334. data/app/controllers/lcms/engine/enhance_instruction_controller.rb +0 -18
  335. data/app/controllers/lcms/engine/explore_curriculum_controller.rb +0 -28
  336. data/app/controllers/lcms/engine/find_lessons_controller.rb +0 -15
  337. data/app/controllers/lcms/engine/pages_controller.rb +0 -26
  338. data/app/controllers/lcms/engine/search_controller.rb +0 -15
  339. data/app/controllers/lcms/engine/sessions_controller.rb +0 -19
  340. data/app/models/lcms/engine/page.rb +0 -13
  341. data/app/services/lcms/engine/generate_thumbnails.rb +0 -54
  342. data/app/services/lcms/engine/svg_social_thumbnail.rb +0 -223
  343. data/app/views/layouts/lcms/engine/ld_docx.html.erb +0 -16
  344. data/app/views/lcms/engine/admin/pages/_form.html.erb +0 -8
  345. data/app/views/lcms/engine/admin/pages/edit.html.erb +0 -9
  346. data/app/views/lcms/engine/admin/pages/index.html.erb +0 -25
  347. data/app/views/lcms/engine/admin/pages/new.html.erb +0 -5
  348. data/app/views/lcms/engine/documents/_helpdesk.html.erb +0 -9
  349. data/app/views/lcms/engine/pages/_about_people_staff.html.erb +0 -27
  350. data/app/views/lcms/engine/pages/_leadership_in_action.html.erb +0 -25
  351. data/app/views/lcms/engine/pages/_leadership_why_i_lead.html.erb +0 -34
  352. data/app/views/lcms/engine/pages/about.html.erb +0 -87
  353. data/app/views/lcms/engine/pages/about_people.html.erb +0 -27
  354. data/app/views/lcms/engine/pages/forthcoming.html.erb +0 -9
  355. data/app/views/lcms/engine/pages/leadership.html.erb +0 -82
  356. data/app/views/lcms/engine/pages/not_found.html.erb +0 -9
  357. data/app/views/lcms/engine/pages/privacy.html.erb +0 -9
  358. data/app/views/lcms/engine/pages/show.html.erb +0 -8
  359. data/app/views/lcms/engine/pages/show_slug.html.erb +0 -0
  360. data/app/views/lcms/engine/pages/tos.html.erb +0 -9
  361. data/app/views/lcms/engine/shared/_connect.html.erb +0 -60
  362. data/app/views/lcms/engine/shared/_freshdesk.html.erb +0 -22
  363. data/app/views/lcms/engine/shared/_google_analytics.html.erb +0 -9
  364. data/app/views/lcms/engine/shared/_heap_analytics.html.erb +0 -7
  365. data/app/views/lcms/engine/shared/_open_graph_meta.html.erb +0 -15
  366. data/app/views/lcms/engine/shared/_open_graph_meta_js.html.erb +0 -39
  367. data/app/views/lcms/engine/shared/_search_form.html.erb +0 -10
  368. data/app/views/lcms/engine/shared/_social_sharing_menu.html.erb +0 -34
  369. data/app/views/lcms/engine/shared/_subscribe.html.erb +0 -30
  370. data/app/views/lcms/engine/shared/_unsupported.html.erb +0 -3
  371. data/app/views/lcms/engine/shared/social_thumbnail.svg.erb +0 -54
  372. data/config/initializers/heap.rb +0 -3
  373. data/lib/tasks/thumbnails.rake +0 -59
  374. data/spec/controllers/admin/pages_controller_spec.rb +0 -19
  375. data/spec/controllers/enhance_instruction_controller_spec.rb +0 -15
  376. data/spec/controllers/explore_curriculum_controller_spec.rb +0 -29
  377. data/spec/controllers/find_lessons_controller_spec.rb +0 -50
  378. data/spec/controllers/pages_controller_spec.rb +0 -32
  379. data/spec/controllers/search_controller_spec.rb +0 -16
  380. data/spec/factories/pages.rb +0 -21
  381. data/spec/features/admin/pages_spec.rb +0 -79
  382. data/spec/features/pages/page_not_found_spec.rb +0 -26
  383. data/spec/features/pages/page_titles_spec.rb +0 -86
  384. data/spec/support/heap.rb +0 -3
  385. data/vendor/assets/javascripts/foundation.initialize.js +0 -115
  386. data/vendor/assets/javascripts/foundation.magellanex.js +0 -335
  387. data/vendor/assets/javascripts/freshwidget.js +0 -1
  388. data/vendor/assets/javascripts/jquery.easytabs.js +0 -704
  389. data/vendor/assets/javascripts/jquery.hashchange.js +0 -9
  390. data/vendor/assets/javascripts/modernizr-custom.js +0 -3
  391. data/vendor/assets/javascripts/smoothscrolling.js +0 -22
  392. data/vendor/assets/javascripts/swiper.jquery.js +0 -3777
  393. data/vendor/assets/javascripts/tabs.js +0 -6
@@ -71,7 +71,7 @@ module Lcms
71
71
  end
72
72
 
73
73
  def layout_content(context_type)
74
- layout(context_type).content
74
+ layout(context_type)&.content.to_s
75
75
  end
76
76
  end
77
77
  end
@@ -156,11 +156,9 @@ module Lcms
156
156
  end
157
157
 
158
158
  def short_url
159
- # TODO: Temporary turning off short url
160
- ''
161
- # @short_url ||= Bitly.client
162
- # .shorten(Rails.application.routes.url_helpers.document_url(self))
163
- # .short_url
159
+ @short_url ||= Bitly.client
160
+ .shorten(Rails.application.routes.url_helpers.document_url(self))
161
+ .short_url
164
162
  end
165
163
 
166
164
  def standards
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
  <% end %>
14
14
 
15
- <%= f.submit 'Resend confirmation instructions', class: 'o-btn o-btn--xs-full o-btn--yellow o-btn--xs-full' %>
15
+ <%= f.submit 'Resend confirmation instructions', class: 'button o-btn--xs-full warning o-btn--xs-full' %>
16
16
  <% end %>
17
17
 
18
18
  <div class="u-margin-bottom--xlarge u-margin-top--xlarge">
@@ -18,7 +18,7 @@
18
18
  <%= resource.errors[:password_confirmation].first %>
19
19
  </p>
20
20
  <% end %>
21
- <%= f.submit 'Change my password', class: 'o-btn o-btn--xs-full o-btn--yellow o-btn--xs-full' %>
21
+ <%= f.submit 'Change my password', class: 'button o-btn--xs-full warning o-btn--xs-full' %>
22
22
  <% end %>
23
23
  </div>
24
24
  </div>
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
  <% end %>
14
14
 
15
- <%= f.submit 'Send me reset password instructions', class: 'o-btn o-btn--xs-full o-btn--yellow o-btn--xs-full' %>
15
+ <%= f.submit 'Send me reset password instructions', class: 'button o-btn--xs-full warning o-btn--xs-full' %>
16
16
  <% end %>
17
17
 
18
18
  <div class="u-margin-bottom--xlarge u-margin-top--xlarge">
@@ -29,7 +29,7 @@
29
29
  <%= resource.errors[:password_confirmation].first %>
30
30
  </p>
31
31
  <% end %>
32
- <%= f.submit 'Register', class: 'o-btn o-btn--xs-full o-btn--yellow o-btn--xs-full' %>
32
+ <%= f.submit 'Register', class: 'button o-btn--xs-full warning o-btn--xs-full' %>
33
33
  <% end %>
34
34
 
35
35
  <div class="u-margin-bottom--xlarge u-margin-top--xlarge">
@@ -14,8 +14,8 @@
14
14
  <%= f.email_field :email, autofocus: true, class: 'o-input-placehoder--medium-gray', placeholder: 'Enter email address' %>
15
15
  <%= f.password_field :password, autocomplete: 'off', class: 'o-input-placehoder--medium-gray', placeholder: 'Enter password' %>
16
16
  <div class="u-margin-top--xlarge">
17
- <%= f.submit 'Log in', class: 'o-btn o-btn--xs-full o-btn--yellow o-btn--xs-full u-margin-right--base ' %>
18
- <%= link_to 'Register', new_registration_path(resource_name), class: 'o-btn o-btn--xs-full o-btn--bordered-yellow u-color--base o-btn--xs-full' %>
17
+ <%= f.submit 'Log in', class: 'button o-btn--xs-full warning o-btn--xs-full u-margin-right--base ' %>
18
+ <%= link_to 'Register', new_registration_path(resource_name), class: 'button o-btn--xs-full o-btn--bordered-yellow u-color--base o-btn--xs-full' %>
19
19
  </div>
20
20
  <% end %>
21
21
 
@@ -9,14 +9,12 @@
9
9
  <%= render partial: 'lcms/engine/shared/favicon' %>
10
10
  <script>document.querySelector('html').className = 'js';</script>
11
11
  <%= stylesheet_link_tag 'lcms/engine/admin', media: 'all', 'data-turbolinks-track' => 'reload' %>
12
- <%= render partial: 'lcms/engine/shared/google_analytics' %>
13
12
  <%= csrf_meta_tags %>
14
13
  <%# NOTE: JS served via Assets pipeline should be added first %>
15
14
  <%= javascript_include_tag 'lcms/engine/admin/application', 'data-turbolinks-track' => 'reload' %>
16
- <%= javascript_pack_tag 'admin' %>
15
+ <%= lcms_engine_javascript_pack_tag 'admin' %>
17
16
  </head>
18
17
  <body>
19
- <%= render partial: 'lcms/engine/shared/unsupported' %>
20
18
  <div class="u-page-wrap c-admin u-supported">
21
19
  <%= render partial: 'lcms/engine/admin/shared/header' %>
22
20
  <div class=o-page>
@@ -7,22 +7,16 @@
7
7
  <meta name="description" content="<%= page_description %>">
8
8
  <meta name="viewport" content="width=device-width, initial-scale=1">
9
9
  <%= redirect_meta_tag %>
10
- <%= render partial: 'lcms/engine/shared/open_graph_meta' %>
11
10
  <%= render partial: 'lcms/engine/shared/favicon' %>
12
11
  <script>document.querySelector('html').className = 'js';</script>
13
12
  <%= stylesheet_link_tag 'lcms/engine/application', media: 'all', 'data-turbolinks-track' => 'reload' %>
14
- <%= javascript_include_tag '//s7.addthis.com/js/300/addthis_widget.js#async=1' %>
15
13
  <%= javascript_include_tag 'lcms/engine/application', 'data-turbolinks-track' => 'reload' %>
16
- <%= render partial: 'lcms/engine/shared/google_analytics' %>
17
- <%= render partial: 'lcms/engine/shared/heap_analytics' %>
18
14
  <%= csrf_meta_tags %>
19
15
  <% if content_for?(:canonical_url) %>
20
16
  <link rel=canonical href='<%= yield(:canonical_url) %>'>
21
17
  <% end %>
22
18
  </head>
23
19
  <body>
24
- <%= render partial: 'lcms/engine/shared/open_graph_meta_js' %>
25
- <%= render partial: 'lcms/engine/shared/unsupported' %>
26
20
  <div class="u-page-wrap u-supported<%= ' u-bg--light' if devise_controller? || controller.controller_name == 'surveys' %>">
27
21
  <%= render partial: 'lcms/engine/shared/header' %>
28
22
  <%= render partial: 'lcms/engine/shared/flash' %>
@@ -5,44 +5,6 @@
5
5
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <%= params.key?('debug') ? stylesheet_link_tag('lcms/engine/pdf', media: 'all') : stylesheet_link_tag(base64_encoded_asset('lcms/engine/pdf.css')) %>
8
- <style type="text/css" media="all">
9
- .c-cg-standard--a {
10
- background-image: url("<%= base64_encoded_asset('lcms/engine/st_icon_a.svg') %>");
11
- }
12
- .c-cg-standard--m {
13
- background-image: url("<%= base64_encoded_asset('lcms/engine/st_icon_m.svg') %>");
14
- }
15
- .c-cg-standard--plus {
16
- background-image: url("<%= base64_encoded_asset('lcms/engine/st_icon_plus.svg') %>");
17
- }
18
- .c-cg-standard--s {
19
- background-image: url("<%= base64_encoded_asset('lcms/engine/st_icon_s.svg') %>");
20
- }
21
- .c-cg-icon--complexity {
22
- background-image: url("<%= base64_encoded_asset('lcms/engine/cg_icon_complexity.png') %>");
23
- }
24
- .c-cg-icon--instruction {
25
- background-image: url("<%= base64_encoded_asset('lcms/engine/cg_icon_instruction.png') %>");
26
- }
27
- .c-cg-icon--volume {
28
- background-image: url("<%= base64_encoded_asset('lcms/engine/cg_icon_volume.png') %>");
29
- }
30
- .o-ld-icon--priority1 {
31
- background-image: url("<%= base64_encoded_asset('lcms/engine/ld_p1.svg') %>");
32
- }
33
- .o-ld-icon--priority2 {
34
- background-image: url("<%= base64_encoded_asset('lcms/engine/ld_p2.svg') %>");
35
- }
36
- .o-ld-icon--priority3 {
37
- background-image: url("<%= base64_encoded_asset('lcms/engine/ld_p3.svg') %>");
38
- }
39
- .o-m-icon--tens {
40
- background-image: url("<%= base64_encoded_asset('lcms/engine/lessons/tens.png') %>");
41
- }
42
- .o-m-icon--wp {
43
- background-image: url("<%= base64_encoded_asset('lcms/engine/lessons/wp.svg') %>");
44
- }
45
- </style>
46
8
  </head>
47
9
  <body>
48
10
  <%= yield %>
@@ -14,7 +14,6 @@
14
14
  <% end %>
15
15
  </head>
16
16
  <body>
17
- <%= render partial: 'lcms/engine/shared/unsupported' %>
18
17
  <div class="u-page-wrap u-supported<%= ' u-bg--light' if devise_controller? || controller.controller_name == 'surveys' %>">
19
18
  <%= yield %>
20
19
  </div>
@@ -1,3 +1,6 @@
1
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/themes/default/style.min.css"/>
2
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/jstree.min.js"></script>
3
+
1
4
  <% set_page_title 'Curriculum Tree Manager' %>
2
5
 
3
6
  <div class="o-page">
@@ -71,7 +71,7 @@
71
71
  <% lesson = ::Lcms::Engine::DocumentGenerator.document_presenter.new lesson %>
72
72
  <li class="u-text--small">
73
73
  <a href="<%= lesson.file_url%>" target="_blank" class="materials-table__lessons--file"><i class="ub-icon ub-file-gdoc"></i></a>
74
- <%= link_to lesson.title, lesson, target: '_blank' %>
74
+ <%= link_to lesson.title, ::Lcms::Engine::Admin::AdminController.document_path(lesson, request.query_parameters), target: '_blank' %>
75
75
  </li>
76
76
  <% end %>
77
77
  </ul>
@@ -9,11 +9,11 @@
9
9
 
10
10
  <%= f.association :standards, as: :select, input_html: { class: 'selectize', multiple: true } %>
11
11
 
12
- <%= f.input :grades, collection: Grades::GRADES, as: :select, value_method: :humanize, input_html: { class: 'selectize', id: 'grades_select', multiple: true } %>
12
+ <%= f.input :grades, collection: Lcms::Engine::Grades::GRADES, as: :select, value_method: :humanize, input_html: { class: 'selectize', id: 'grades_select', multiple: true } %>
13
13
 
14
- <%= f.input :tag_list, collection: Tag.where_context('tags').select(:id, :name).distinct(:name), as: :select, value_method: :name, input_html: { class: 'selectize', id: 'subjects_select', multiple: true } %>
14
+ <%= f.input :tag_list, collection: Lcms::Engine::Tag.where_context('tags').select(:id, :name).distinct(:name), as: :select, value_method: :name, input_html: { class: 'selectize', id: 'subjects_select', multiple: true } %>
15
15
 
16
- <%= f.input :resource_type_list, collection: Tag.where_context('resource_types').select(:id, :name).distinct(:name), value_method: :name, as: :select, input_html: { class: 'selectize', id: 'resource_types_select', multiple: true } %>
16
+ <%= f.input :resource_type_list, collection: Lcms::Engine::Tag.where_context('resource_types').select(:id, :name).distinct(:name), value_method: :name, as: :select, input_html: { class: 'selectize', id: 'resource_types_select', multiple: true } %>
17
17
 
18
18
  <%= f.button :submit, t('ui.save'), name: nil %>
19
19
 
@@ -3,7 +3,7 @@
3
3
  <nav class="o-top-bar">
4
4
  <div class="o-top-bar__item c-header-title">
5
5
  <%= link_to root_path, class: 'c-header-title__logo c-header__link' do %>
6
- <%= image_tag('lcms/engine/logo-beta.svg') %>
6
+ LCMS Engine
7
7
  <% end %>
8
8
  <span class="c-header-title__h-menu" data-responsive-toggle="navbar">
9
9
  <span class="menu-icon" data-toggle></span>
@@ -16,13 +16,6 @@
16
16
  <%= link_to t('lcms.engine.admin.nav.curriculum'), edit_admin_curriculum_path %>
17
17
  </li>
18
18
 
19
- <li class="dropdown c-header__link">
20
- <%= link_to t('lcms.engine.admin.nav.pages'), admin_pages_path %>
21
- <ul class="menu vertical">
22
- <%= nav_link t('lcms.engine.admin.nav.pages'), admin_pages_path %>
23
- </ul>
24
- </li>
25
-
26
19
  <li class="dropdown c-header__link">
27
20
  <%= link_to t('lcms.engine.admin.nav.resources'), admin_resources_path %>
28
21
  <ul class="menu vertical">
@@ -7,7 +7,6 @@
7
7
  </div>
8
8
  <% end %>
9
9
  <div id="c-ld-content" class="c-ld__body c-ld__body--general" <%= 'data-assessment' if document.assessment? %>>
10
- <%= render 'helpdesk' if ENV['FRESHDESK_URL'].present? && !lti %>
11
10
  <% if document.description.present? && !document.foundational? %>
12
11
  <h2>Summary</h2>
13
12
  <p><%= raw document.description %></p>
@@ -3,7 +3,7 @@
3
3
  <div class="cs-rgba-bg--<%= document.color_code_grade %>">
4
4
  <nav class="o-page c-sticky-header__wrap">
5
5
  <div class="c-sticky-header__item cs-bg--<%= document.subject %>-dark show-for-large">
6
- <%= link_to root_path, class: 'c-sticky-header__link' do %>
6
+ <%= link_to lcms_engine.root_path, class: 'c-sticky-header__link' do %>
7
7
  <%= image_tag('lcms/engine/logo-beta.svg') %>
8
8
  <% end %>
9
9
  </div>
@@ -1,5 +1,4 @@
1
1
  <ul class="menu c-sticky-header__menu">
2
- <li><%= render partial: 'lcms/engine/shared/search_form' %></li>
3
2
  <%= nav_link t('nav.curriculum_html'), explore_curriculum_index_path, class: "c-sticky-header__link #{add_class_for_action(:resources, :show, 'active')}" %>
4
3
  <%= nav_link t('nav.lessons_html'), find_lessons_path, class: "c-sticky-header__link" %>
5
4
  <%= nav_link t('nav.instructions_html'), enhance_instruction_index_path, class: "c-sticky-header__link #{add_class_for_action(:resources, :media, 'active')}" %>
@@ -2,14 +2,14 @@
2
2
  <% if download.download.attachment_content_type == 'pdf' %>
3
3
  <span>
4
4
  <%= link_to preview_download_path(id: download, slug: resource.slug), class: 'resource-attachment',
5
- data: { no_turbolink: true, heap_data: download_heap_data(download, pdf_preview: true) }, target: '_blank' do %>
5
+ data: { no_turbolink: true }, target: '_blank' do %>
6
6
  <i class="ub-icon ub-eye" aria-hidden="true"></i>
7
7
  <% end %>
8
8
  </span>
9
9
  <% end %>
10
10
  <% id = SecureRandom.hex(4) %>
11
11
  <span data-toggle="<%= id %>">
12
- <%= link_to download_path(download, slug: resource.slug), class: 'resource-attachment', data: { no_turbolink: true, heap_data: download_heap_data(download) } do %>
12
+ <%= link_to download_path(download, slug: resource.slug), class: 'resource-attachment', data: { no_turbolink: true } do %>
13
13
  <i class="ub-icon fa-lg file-<%= "#{file_icon(download.download.attachment_content_type)} #{indent}" %>"></i>
14
14
  <%= download.download.title %>
15
15
  <% end %>
@@ -8,12 +8,12 @@
8
8
  <ul class="o-resource__list o-resource__list--icons o-resource__list--<%= color_code(resource, base: true) %>">
9
9
  <li class="o-unit-bundles__item">
10
10
  <div class="o-unit-bundles__item--links">
11
- <%= link_to bundle.file&.url, data: { no_turbolink: true, heap_data: bundle_heap_data(resource, bundle, cat, 'pdf') } do %>
11
+ <%= link_to bundle.file&.url, data: { no_turbolink: true } do %>
12
12
  <i class="ub-icon fa-lg ub-file-zip"></i>
13
13
  <% end %>
14
14
  <% if (gdoc_bundle = resource.document_bundles.detect { |b| b.content_type == 'gdoc' }) %>
15
15
  <% if cat == 'full' %>
16
- <%= link_to gdoc_bundle.url, target: '_blank', data: { no_turbolink: true, heap_data: bundle_heap_data(resource, gdoc_bundle, :full, 'gdoc') } do %>
16
+ <%= link_to gdoc_bundle.url, target: '_blank', data: { no_turbolink: true } do %>
17
17
  <i class="ub-icon fa-lg ub-file-gdoc"></i>
18
18
  <% end %>
19
19
  <% else %>
@@ -28,11 +28,11 @@
28
28
  <div class="o-page__module">
29
29
  <div class="o-page__wrap--row">
30
30
  <div class="o-page__module u-margin-bottom--gutter">
31
- <%= link_to back_to_resource_path(@resource), class: 'o-btn o-btn--base o-btn--xs-full' do %>
31
+ <%= link_to back_to_resource_path(@resource), class: 'button o-btn--base o-btn--xs-full' do %>
32
32
  <i class="fa-lg ub-arrow-left u-text--middled"></i> <%= t('resources.btn.back') %>
33
33
  <% end %>
34
34
  <% if user_signed_in? %>
35
- <%= link_to edit_admin_resource_path(@resource), class: 'o-btn o-btn--base', target: '_blank' do %>
35
+ <%= link_to edit_admin_resource_path(@resource), class: 'button o-btn--base', target: '_blank' do %>
36
36
  <%= t('ui.edit') %>
37
37
  <% end %>
38
38
  <% end %>
@@ -2,9 +2,7 @@
2
2
  <footer class="c-footer u-supported <%= add_class_for_action(:resources, :show, 'c-footer--with-sticky') %>">
3
3
  <div class="c-footer__wrap o-page__wrap--row-column c-navbar">
4
4
  <div class="c-footer__logo">
5
- <%= link_to root_path do %>
6
- <%= image_tag('lcms/engine/logo-beta.svg') %>
7
- <% end %>
5
+ <%= link_to 'LCMS Engine', lcms_engine.root_path %>
8
6
  </div>
9
7
  </div>
10
8
  </footer>
@@ -3,8 +3,8 @@
3
3
  <div class="o-page">
4
4
  <div class="o-top-bar">
5
5
  <div class="o-top-bar__item c-header-title">
6
- <%= link_to root_path, class: 'c-header-title__logo c-header__link' do %>
7
- <%= image_tag('lcms/engine/logo-beta.svg') %>
6
+ <%= link_to lcms_engine.root_path, class: 'c-header-title__logo c-header__link' do %>
7
+ LCMS Engine
8
8
  <% end %>
9
9
  <% if current_user&.ready_to_go? %>
10
10
  <span class="c-header-title__h-menu" data-responsive-toggle="navbar" data-hide-for="large">
@@ -18,40 +18,12 @@
18
18
  <% if current_user&.ready_to_go? %>
19
19
  <div class="o-top-bar__item">
20
20
  <ul class="menu c-header__menu">
21
- <li class="hide-for-large">
22
- <%= render partial: 'lcms/engine/shared/search_form' %>
23
- </li>
24
- <%= nav_link t('nav.curriculum_html'), explore_curriculum_index_path, { class: "c-header__link #{add_class_for_action(:resources, :show, 'active')}" }, { class: 'u-show' } %>
25
- <%= nav_link t('nav.lessons_html'), find_lessons_path, { class: 'c-header__link' }, { class: 'u-show' } %>
26
- <%= nav_link t('nav.instructions_html'), enhance_instruction_index_path, { class: "c-header__link #{add_class_for_action(:resources, :media, 'active')}" }, { class: 'u-show' } %>
27
- <%# nav_link t('nav.leadership_html'), leadership_path, { class: 'c-header__link' }, { class: 'u-show' } %>
28
- <%# nav_link t('nav.about_html'), about_path, { class: "c-header__link #{add_class_for_path(about_people_path, 'active')}" }, { class: 'u-show' } %>
29
- <%= nav_link t('nav.helpdesk'), ENV['FRESHDESK_URL'], { class: 'c-header__link hide-for-large' }, target: '_blank' if ENV['FRESHDESK_URL'].present? %>
30
21
  <%= nav_link t('nav.logout'), destroy_user_session_path, { class: 'c-header__link hide-for-large' } %>
31
22
  </ul>
32
23
  </div>
33
24
  <% end %>
34
25
  <div class="o-top-bar__item">
35
26
  <ul class="menu c-header__left-menu">
36
- <% if current_user&.ready_to_go? %>
37
- <li class="c-header__link show-for-large">
38
- <%= link_to search_path do %>
39
- <i class="ub-search u-margin-right--zero"></i>
40
- <% end %>
41
- </li>
42
- <% if ENV['FRESHDESK_URL'].present? %>
43
- <li class="c-header__link c-header__link--full c-header__link--semi-dark show-for-large">
44
- <%= link_to ENV['FRESHDESK_URL'], target: '_blank', class: 'u-flex' do %>
45
- <i class="ub-helpdesk u-margin-right--zero"></i>
46
- <% end %>
47
- <ul class="c-header__left-submenu c-header__helpdesk-hover menu" data-turbolinks="false">
48
- <li class="u-txt--ld-tooltip">
49
- <%= t('nav.helpdesk_hover_html') %>
50
- </li>
51
- </ul>
52
- </li>
53
- <% end %>
54
- <% end %>
55
27
  <% if user_signed_in? %>
56
28
  <li class="c-header__link c-header__link--full c-header__link--semi-light show-for-large">
57
29
  <a class="u-flex" data-turbolinks="false"><i class="ub-user u-margin-right--zero"></i></a>
@@ -65,12 +37,6 @@
65
37
  </ul>
66
38
  </li>
67
39
  <% end %>
68
- <%# if current_user&.ready_to_go? >
69
- <li class="c-header__link c-header__link--full c-header__link--light">
70
- <a class="u-flex show-for-large" data-turbolinks="false"><i class="ub-share"></i></a>
71
- <%= render partial: 'lcms/engine/shared/social_sharing_menu', locals: { cls: 'c-header' } >
72
- </li>
73
- <% end %>
74
40
  </ul>
75
41
  </div>
76
42
  </div>
@@ -84,7 +84,7 @@
84
84
  <div class="row">
85
85
  <div class="medium-12 columns">
86
86
  <div class="u-margin-top--xlarge">
87
- <%= f.submit 'Proceed to Beta', class: 'o-btn o-btn--xs-full o-btn--yellow o-btn--xs-full' %>
87
+ <%= f.submit 'Proceed to Beta', class: 'button o-btn--xs-full warning o-btn--xs-full' %>
88
88
  </div>
89
89
  </div>
90
90
  </div>
@@ -1,80 +1 @@
1
- <div class="c-hp-hero">
2
- <div class="o-page">
3
- <div class="o-page__module c-hp-hero__wrap">
4
- <div class="c-hp-hero__body">
5
- <h1>Supporting educators in their work to meet high standards</h1>
6
- <p>We provide free, standards-aligned resources and immersive training for teachers and leaders in pursuit of equity.</p>
7
- <%= link_to t('ui.learn_more'), about_path, class: 'o-btn o-btn--yellow o-btn--xs-full u-margin-bottom--zero' %>
8
- </div>
9
- </div>
10
- </div>
11
- </div>
12
- <div class="c-hp">
13
- <div class="o-page">
14
- <div class="o-page__module c-hp-register">
15
- <div class="o-page__wrap--row c-hp-register__wrap">
16
- <div class="c-hp-register__item text-center">
17
- <div>
18
- <strong class="st-logo__standards">Standards</strong>
19
- <span class="st-logo__institute">Institute</span>
20
- </div>
21
- <div class="u-txt--st-label">Florida, June 26-30, 2017</div>
22
- </div>
23
- <div class="c-hp-register__text">
24
- An immersive, engaging five-day professional development experience tailored to leaders and teachers of ELA and math.
25
- <br>
26
- <div class="c-hp-register__btn--ipad">
27
- <%= standardsinstitutes_link %>
28
- </div>
29
- </div>
30
- <div class="c-hp-register__item c-hp-register__btn">
31
- <%= standardsinstitutes_link %>
32
- </div>
33
- </div>
34
- </div>
35
- <div class="o-page__module">
36
- <div class="o-page__wrap--row-nest">
37
- <div class="c-hp-panel">
38
- <div class="c-hp-panel__body c-hp-panel__body--ela">
39
- <h2 class="u-margin-bottom--base">ELA Curriculum</h2>
40
- <div class="u-hr-small"></div>
41
- <p>Browse our collection of free, standards-aligned PreK-Grade 12 resources in English Language Arts. These materials draw from the critically acclaimed EngageNY content and have been sequenced by experts in curriculum design and instructional implementation.</p>
42
- <div>
43
- <%= link_to 'Explore ELA', explore_curriculum_index_path(subjects: 'ela'), class: 'o-btn o-btn--bordered-yellow o-btn--xs-full u-margin-bottom--zero' %>
44
- </div>
45
- </div>
46
- </div>
47
- <div class="c-hp-panel">
48
- <div class="c-hp-panel__body c-hp-panel__body--math">
49
- <h2 class="u-margin-bottom--base">Math Curriculum</h2>
50
- <div class="u-hr-small"></div>
51
- <p>Our comprehensive collection of free, standards-aligned math resources for grades PreK-12 has been reviewed and sequenced by our math experts and is based on the critically acclaimed EngageNY content.</p>
52
- <div>
53
- <%= link_to 'Explore Math', explore_curriculum_index_path(subjects: 'math'), class: 'o-btn o-btn--bordered-yellow o-btn--xs-full u-margin-bottom--zero' %>
54
- </div>
55
- </div>
56
- </div>
57
- </div>
58
- </div>
59
- <div class="c-hp-media o-page__module o-media u-bg--light">
60
- <div class="o-media__img o-media__img--left c-hp-img--fl">
61
- </div>
62
- <div class="o-media__body">
63
- <h2>Find Lessons</h2>
64
- <div class="u-hr-small"></div>
65
- <p>Looking for a lesson on a specific topic and grade level? You can find it quickly here.</p>
66
- <%= link_to 'Find Lessons', find_lessons_path, class: 'o-btn o-btn--yellow o-btn--xs-full u-margin-bottom--zero' %>
67
- </div>
68
- </div>
69
- <div class="c-hp-media o-page__module o-media u-bg--light">
70
- <div class="o-media__body">
71
- <h2>Enhance Instruction</h2>
72
- <div class="u-hr-small"></div>
73
- <p>Our professional learning resources include teaching guides, videos, and podcasts that build educators' knowledge of content related to the standards and their application in the classroom.</p>
74
- <%= link_to 'Videos', enhance_instruction_index_path(tab: 1), class: 'o-btn o-btn--xs-full o-btn--bordered-yellow u-color--base' %>
75
- </div>
76
- <div class="o-media__img o-media__img--right c-hp-img--ei">
77
- </div>
78
- </div>
79
- </div>
80
- </div>
1
+ <h1 class="text-center">Welcome to LCMS Engine</h1>