OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move module assets to frontend
Oliver Günther623f8c772e02
diff --git a/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.ts b/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.tsindex bb4d4edd5a5..529eec2bbae 100644--- a/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.ts+++ b/frontend/src/app/modules/bim/ifc_models/openproject-ifc-models.routes.ts@@ -35,8 +35,6 @@ import {BcfListContainerComponent} from "core-app/modules/bim/ifc_models/bcf/lisimport {WorkPackageSplitViewComponent} from "core-app/modules/work_packages/routing/wp-split-view/wp-split-view.component";import {ViewerBridgeService} from "core-app/modules/bim/bcf/bcf-viewer-bridge/viewer-bridge.service";--export const IFC_ROUTES:Ng2StateDeclaration[] = [{name: 'bim',diff --git a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts b/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.tsindex e4b2a1b6783..5c5e64b7c96 100644--- a/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts+++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/ifc-viewer-page.component.ts@@ -1,4 +1,4 @@-import {ChangeDetectionStrategy, Component, Injector} from "@angular/core";+import {ChangeDetectionStrategy, Component, Injector, ViewEncapsulation} from "@angular/core";import {GonService} from "core-app/modules/common/gon/gon.service";import {PartitionedQuerySpacePageComponent,@@ -26,8 +26,10 @@ import {componentDestroyed} from "@w11k/ngx-componentdestroyed";@Component({templateUrl: '/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.html',styleUrls: [- '/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass'+ '/app/modules/work_packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.sass',+ './styles/generic.sass'],+ encapsulation: ViewEncapsulation.None,changeDetection: ChangeDetectionStrategy.OnPush,providers: [QueryParamListenerService,diff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/context_menu.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/context_menu.sasssimilarity index 75%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/context_menu.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/context_menu.sassindex f4001e4812f..0ba09298a07 100644--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/context_menu.sass+++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/context_menu.sass@@ -1,5 +1,5 @@-@import "../../../frontend/src/global_styles/layout/colors"-@import "../../../frontend/src/global_styles/layout/drop_down"+@import "~global_styles/layout/colors"+@import "~global_styles/layout/drop_down".xeokit-context-menu@extend .dropdowndiff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sasssimilarity index 81%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sassindex 003d1f6b47d..e2c93bf4aab 100644--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/generic.sass+++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/generic.sass@@ -1,8 +1,5 @@-// -------------------------- GENERIC ---------------------------@import "../../../frontend/src/global_styles/openproject/variables"-@import "../../../frontend/src/global_styles/openproject/mixins"-@import "../../../frontend/src/global_styles/fonts/openproject_icon_definitions"-@import "../../../frontend/src/global_styles/fonts/openproject_icon_font"+// Global helpers+@import "helpers"@import "tabs"@import "toolbar"diff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/loading_modal.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/loading_modal.sasssimilarity index 100%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/loading_modal.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/loading_modal.sassdiff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/pivot_point.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/pivot_point.sasssimilarity index 100%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/pivot_point.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/pivot_point.sassdiff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/tabs.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tabs.sasssimilarity index 100%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/tabs.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tabs.sassdiff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/toolbar.sasssimilarity index 100%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/toolbar.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/toolbar.sassdiff --git a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/tooltips.sass b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sasssimilarity index 77%rename from modules/bim/app/assets/stylesheets/bim/ifc_viewer/tooltips.sassrename to frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sassindex 405e41a1217..99cd5cab65f 100644--- a/modules/bim/app/assets/stylesheets/bim/ifc_viewer/tooltips.sass+++ b/frontend/src/app/modules/bim/ifc_models/pages/viewer/styles/tooltips.sass@@ -1,4 +1,4 @@-@import "../../../frontend/src/global_styles/content/tooltips"+@import "~global_styles/content/tooltips".xeokit-toolbar [data-tippy-content]@extend .tooltip--bottomdiff --git a/app/assets/images/draft.png b/frontend/src/assets/images/draft.pngsimilarity index 100%rename from app/assets/images/draft.pngrename to frontend/src/assets/images/draft.pngdiff --git a/frontend/src/assets/sass/_helpers.sass b/frontend/src/assets/sass/_helpers.sassindex d7de5f4d15c..37f455473aa 100644--- a/frontend/src/assets/sass/_helpers.sass+++ b/frontend/src/assets/sass/_helpers.sass@@ -1,2 +1,5 @@-@import "../../global_styles/openproject/_mixins"-@import "../../global_styles/content/drag_and_drop"+@import "~global_styles/openproject/variables"+@import "~global_styles/openproject/_mixins"+@import "~global_styles/content/drag_and_drop"+@import "~global_styles/fonts/openproject_icon_definitions"+@import "~global_styles/fonts/openproject_icon_font"diff --git a/frontend/src/global_styles/content/_index.sass b/frontend/src/global_styles/content/_index.sassindex 876ab4e6e58..98ecdb12d3a 100644--- a/frontend/src/global_styles/content/_index.sass+++ b/frontend/src/global_styles/content/_index.sass@@ -78,3 +78,4 @@@import menus/project_autocompletion@import menus/menu_blocks@import editor/index+@import modules/indexdiff --git a/frontend/src/global_styles/content/_preview.sass b/frontend/src/global_styles/content/_preview.sassindex 28596810302..909ca2cf7dc 100644--- a/frontend/src/global_styles/content/_preview.sass+++ b/frontend/src/global_styles/content/_preview.sass@@ -29,8 +29,7 @@.preview@extend %form--fieldset-or-sectionpadding: 1rem- // Todo for task #33508- //background: image-url('draft.png')+ background: url('~assets/images/draft.png')// Min-width has to be defined to avoid a content overflow// of the preview window. Since this class is also applied to the buttons// it should however not be too large.diff --git a/frontend/src/global_styles/content/modules/_2fa.sass b/frontend/src/global_styles/content/modules/_2fa.sassnew file mode 100644index 00000000000..1a5127c3984--- /dev/null+++ b/frontend/src/global_styles/content/modules/_2fa.sass@@ -0,0 +1,124 @@+/*-- copyright+ * OpenProject Costs Plugin+ *+ * Copyright (C) 2009 - 2015 the OpenProject Foundation (OPF)+ *+ * This program is free software; you can redistribute it and/or+ * modify it under the terms of the GNU General Public License+ * version 3.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with this program; if not, write to the Free Software+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+ *+ */++// Let the qr float next to the manual entry+.mobile-otp-qr-form+ display: flex+ margin: 2rem 0++ .qr-code-element+ margin-right: 50px++.mobile-otp-qr-manually+ align-self: center++// Add some padding to QR code+.qr-code-element+ padding: 5px++.mobile-otp-new-devices+ display: flex+ flex-direction: row+ width: 75%++.mobile-otp-new-device+ border: 1px solid #f1f1f1+ padding: 20px+ margin-right: 10px+ flex: 1 0 25%++ // Flex self for alignment of button+ display: flex+ flex-direction: column++ h2+ border-bottom: none++.mobile-otp-new-device--body+ flex: 1++#login-form input[type=radio]+ float: left++#resend_otp_container+ margin-top: 30px++#resend_otp_container input[type=radio]+ margin-right: 8px++#resend_otp_container label+ margin-right: 10px++#resend_otp_container .resend-header+ font-size: 14px+ font-weight: bold+ margin-bottom: 10px++#resend_otp_container .radios-wrapper+ padding-top: 7px+ float: left+ border: none+ overflow: hidden+ clear: none+++#resend_otp_container .radios-wrapper label+ float: left+ clear: none+ display: block+ padding: 2px 1em 0 0+++#resend_otp_container .radios-wrapper input[type=radio]+ float: left+ clear: none+ margin: 2px 0 15px 2px++// Add some paddings to action links+.mobile-otp--two-factor-device-row td.buttons+ form:not(:last-child):after+ content: ","+ padding: 0 1px++.mobile-otp--two-factor-device-row.-default+ .mobile-otp--device-text+ font-weight: bold+++// Backup codes display+.two-factor-authentication--backup-codes+ // Avoid stretching the columns too much+ max-width: 500px+ margin: 2rem 0+ background: #f8f8f8+ border: 1px solid #f1f1f1+ border-radius: 5px++ ul+ padding: 10px+ margin: 0+ column-count: 2+ column-gap: 50px+ list-style: none+ font-family: monospace+ font-size: 1.3rem+ font-weight: bold+ li+ padding: 5pxdiff --git a/modules/auth_plugins/app/assets/stylesheets/auth_plugins/auth_plugins.scss b/frontend/src/global_styles/content/modules/_auth_plugins.sasssimilarity index 85%rename from modules/auth_plugins/app/assets/stylesheets/auth_plugins/auth_plugins.scssrename to frontend/src/global_styles/content/modules/_auth_plugins.sassindex a816f71bad5..a9bf033af4f 100644--- a/modules/auth_plugins/app/assets/stylesheets/auth_plugins/auth_plugins.scss+++ b/frontend/src/global_styles/content/modules/_auth_plugins.sass@@ -16,18 +16,14 @@// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.//// See doc/COPYRIGHT.md for more details.-*/-/*// Defined by Google// see: https://developers.google.com/identity/branding-guidelines// !important is necessary to overwrite the default styling options-*/#top-menu #nav-login-content .login-auth-providers a.auth-provider.auth-provider-google,#content .login-auth-providers a.auth-provider-google,-.modal-wrapper .login-auth-providers a.auth-provider-google {- padding: 8px 8px 8px 50px;- background-position-x: 8px;- background-size: 18px 18px;- background-color: #FFF;-}+.modal-wrapper .login-auth-providers a.auth-provider-google+ padding: 8px 8px 8px 50px+ background-position-x: 8px+ background-size: 18px 18px+ background-color: #FFFdiff --git a/modules/avatars/app/assets/stylesheets/avatars/_openproject_avatars.sass b/frontend/src/global_styles/content/modules/_avatars.sasssimilarity index 100%rename from modules/avatars/app/assets/stylesheets/avatars/_openproject_avatars.sassrename to frontend/src/global_styles/content/modules/_avatars.sassdiff --git a/modules/bim/app/assets/stylesheets/bim/bcf.sass b/frontend/src/global_styles/content/modules/_bim.sasssimilarity index 99%rename from modules/bim/app/assets/stylesheets/bim/bcf.sassrename to frontend/src/global_styles/content/modules/_bim.sassindex 7524d6cf48a..b46a475b86f 100644--- a/modules/bim/app/assets/stylesheets/bim/bcf.sass+++ b/frontend/src/global_styles/content/modules/_bim.sass@@ -2,7 +2,7 @@display: flexflex-direction: rowflex-wrap: wrap-+> divflex: 0 0 250pxmargin: 10pxdiff --git a/modules/costs/app/assets/stylesheets/costs/costs.sass b/frontend/src/global_styles/content/modules/_costs.sasssimilarity index 100%rename from modules/costs/app/assets/stylesheets/costs/costs.sassrename to frontend/src/global_styles/content/modules/_costs.sassdiff --git a/modules/documents/app/assets/stylesheets/documents/documents.sass b/frontend/src/global_styles/content/modules/_documents.sasssimilarity index 59%rename from modules/documents/app/assets/stylesheets/documents/documents.sassrename to frontend/src/global_styles/content/modules/_documents.sassindex c718c7f81ce..2aa5d050e76 100644--- a/modules/documents/app/assets/stylesheets/documents/documents.sass+++ b/frontend/src/global_styles/content/modules/_documents.sass@@ -1,21 +1,11 @@/*-- copyright- * OpenProject Documents Plugin+ * OpenProject Costs Plugin*- * Former OpenProject Core functionality extracted into a plugin.- *- * Copyright (C) 2009-2014 the OpenProject Foundation (OPF)- *- * This program is free software; you can redistribute it and/or- * modify it under the terms of the GNU General Public License version 3.- *- * OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:- * Copyright (C) 2006-2013 Jean-Philippe Lang- * Copyright (C) 2010-2013 the ChiliProject Team+ * Copyright (C) 2009 - 2015 the OpenProject Foundation (OPF)** This program is free software; you can redistribute it and/or* modify it under the terms of the GNU General Public License- * as published by the Free Software Foundation; either version 2- * of the License, or (at your option) any later version.+ * version 3.** This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of@@ -26,8 +16,9 @@* along with this program; if not, write to the Free Software* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*- * See docs/COPYRIGHT.rdoc for more details.*/+dt.document:before+ @include icon-mixin-notes.sidebar--document-sort label:last-of-typemargin-bottom: 2rem@@ -46,3 +37,4 @@.document-category-elements .wikimargin-bottom: 2rem+diff --git a/frontend/src/global_styles/content/modules/_index.sass b/frontend/src/global_styles/content/modules/_index.sassnew file mode 100644index 00000000000..2530db58ae0--- /dev/null+++ b/frontend/src/global_styles/content/modules/_index.sass@@ -0,0 +1,8 @@+@import "helpers"++@import 'auth_plugins'+@import 'avatars'+@import 'bim'+@import 'costs'+@import '2fa'+@import 'webhooks'diff --git a/modules/meeting/app/assets/stylesheets/meeting/meeting.css.erb b/frontend/src/global_styles/content/modules/_meetings.scsssimilarity index 67%rename from modules/meeting/app/assets/stylesheets/meeting/meeting.css.erbrename to frontend/src/global_styles/content/modules/_meetings.scssindex c7730cca91e..5542f435c12 100644--- a/modules/meeting/app/assets/stylesheets/meeting/meeting.css.erb+++ b/frontend/src/global_styles/content/modules/_meetings.scss@@ -1,4 +1,4 @@-/*-- copyright+/** copyrightOpenProject Meeting PluginCopyright (C) 2011-2014 the OpenProject Foundation (OPF)@@ -17,15 +17,35 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.See doc/COPYRIGHT.md for more details.-++*/++*/-.meetings div.meeting {padding-bottom: 1em;}-div.meeting_content {padding-bottom: 2em;}-div.meetings_by_date {padding: 1em 0 1em 2em;}-dl.meetings p, div#activity dl.meetings dd, div#activity dl.meetings dt {padding: 0;}-dl.meetings {margin-bottom: 2em;}-dt.meeting {margin-bottom: 1.5em;}-dl.meetings p {margin-bottom: 0.75em;}+.meetings div.meeting {+ padding-bottom: 1em;+}++div.meeting_content {+ padding-bottom: 2em;+}++div.meetings_by_date {+ padding: 1em 0 1em 2em;+}++dl.meetings p, div#activity dl.meetings dd, div#activity dl.meetings dt {+ padding: 0;+}++dl.meetings {+ margin-bottom: 2em;+}++dt.meeting {+ margin-bottom: 1.5em;+}++dl.meetings p {+ margin-bottom: 0.75em;+}.meeting.details p {margin: 0;@@ -41,18 +61,26 @@ dl.meetings p {margin-bottom: 0.75em;}margin-left: 10px;}-div.tabular > div { margin: 0;+div.tabular > div {+ margin: 0;padding: 5px 0 8px 0;padding-left: 180px; /*width of left column containing the label elements*/height: 1%;- clear:left;+ clear: left;+}++#meeting_agenda_preview fieldset {+ margin-top: 1em;+ background: url('~assets/images/draft.png');}-#meeting_agenda_preview fieldset {margin-top: 1em; background: url(<%= asset_path 'draft.png' %>);}-#meeting_minutes_preview fieldset {margin-top: 1em; background: url(<%= asset_path 'draft.png' %>);}+#meeting_minutes_preview fieldset {+ margin-top: 1em;+ background: url('~assets/images/draft.png');+}div.flash.notice a.link_to_profile {- cursor:pointer;+ cursor: pointer;color: #008BD0;}diff --git a/frontend/src/global_styles/content/modules/_webhooks.sass b/frontend/src/global_styles/content/modules/_webhooks.sassnew file mode 100644index 00000000000..16bbb51cbe1--- /dev/null+++ b/frontend/src/global_styles/content/modules/_webhooks.sass@@ -0,0 +1,33 @@+/*-- copyright+ * OpenProject Costs Plugin+ *+ * Copyright (C) 2009 - 2015 the OpenProject Foundation (OPF)+ *+ * This program is free software; you can redistribute it and/or+ * modify it under the terms of the GNU General Public License+ * version 3.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU General Public License for more details.+ *+ * You should have received a copy of the GNU General Public License+ * along with this program; if not, write to the Free Software+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+ *+ */+.webhooks--delivery-success+ color: #019875++.webhooks--delivery-error+ color: #c0392b++.webhooks--response-body-modal+ min-width: 25vw++ pre+ background: #f1f1f1+ padding: 5px++diff --git a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb b/modules/auth_plugins/app/views/hooks/login/_providers.html.erbindex 94d767dd930..7854e331615 100644--- a/modules/auth_plugins/app/views/hooks/login/_providers.html.erb+++ b/modules/auth_plugins/app/views/hooks/login/_providers.html.erb@@ -27,10 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<% unless OpenProject::Plugins::AuthPlugin.providers.empty? %>- <%= stylesheet_link_tag 'auth_plugins/auth_plugins' %>-<% end %>-<% OpenProject::Plugins::AuthPlugin.providers.each do |pro| %><%opts = { script_name: OpenProject::Configuration.rails_relative_url_root }diff --git a/modules/auth_plugins/lib/open_project/auth_plugins/engine.rb b/modules/auth_plugins/lib/open_project/auth_plugins/engine.rbindex 4e003134aa6..d29017e470b 100644--- a/modules/auth_plugins/lib/open_project/auth_plugins/engine.rb+++ b/modules/auth_plugins/lib/open_project/auth_plugins/engine.rb@@ -42,7 +42,5 @@ module OpenProject::AuthPluginsinitializer 'auth_plugins.register_hooks' dorequire 'open_project/auth_plugins/hooks'end-- assets %w(auth_plugins/auth_plugins.css)endenddiff --git a/modules/avatars/lib/open_project/avatars/engine.rb b/modules/avatars/lib/open_project/avatars/engine.rbindex c2c82f680d1..90bd503c7e2 100644--- a/modules/avatars/lib/open_project/avatars/engine.rb+++ b/modules/avatars/lib/open_project/avatars/engine.rb@@ -24,7 +24,6 @@ module OpenProject::Avatarsregister 'openproject-avatars',author_url: 'https://www.openproject.com',- global_assets: { css: 'avatars/openproject_avatars' },settings: {default: {enable_gravatars: true,diff --git a/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erbindex 828b5f5793d..7a55a57ae05 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_invalid_people.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><%= toolbar title: t('bcf.bcf_xml.import_title') %><%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post) do %>diff --git a/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erbindex 0d1c1296318..8aeb271af16 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_non_members.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><%= toolbar title: t('bcf.bcf_xml.import_title') %><%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post) do %>diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erbindex 267fe7b3f90..08739c4e8bc 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_mails.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><%= toolbar title: t('bcf.bcf_xml.import_title') %><%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post) do %>diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erbindex 85563dfa65e..9202a214d75 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_priorities.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><%= toolbar title: t('bcf.bcf_xml.import_title') %><%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: '-vertical') do %>diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erbindex 902832f52f9..c9b8a324acc 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_statuses.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><%= toolbar title: t('bcf.bcf_xml.import_title') %><%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: '-vertical') do %>diff --git a/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb b/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erbindex 01e148b8a02..b665d4764c0 100644--- a/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/configure_unknown_types.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><%= toolbar title: t('bcf.bcf_xml.import_title') %><%= styled_form_tag({ action: :configure_import }, multipart: true, method: :post, class: '-vertical') do %>diff --git a/modules/bim/app/views/bim/bcf/issues/index.html.erb b/modules/bim/app/views/bim/bcf/issues/index.html.erbindex 975687a099f..06ac29e3db0 100644--- a/modules/bim/app/views/bim/bcf/issues/index.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/index.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><link rel="stylesheet" href="/highlighting/styles.css" /><%= toolbar title: t('bcf.issues'), html: {class: '-with-dropdown'} do %>diff --git a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erbindex 677d63ddf20..464a2a05994 100644--- a/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb+++ b/modules/bim/app/views/bim/bcf/issues/perform_import.html.erb@@ -1,4 +1,3 @@-<%= stylesheet_link_tag 'bim/bcf.css' %><link rel="stylesheet" href="/highlighting/styles.css" /><%= toolbar title: l(:label_summary) %>diff --git a/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb b/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erbindex 62f033d71c7..dd2805bebc0 100644--- a/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb+++ b/modules/bim/app/views/bim/ifc_models/ifc_viewer/show.html.erb@@ -31,7 +31,6 @@ See doc/COPYRIGHT.rdoc for more details.++#%><% content_for :header_tags do %>- <%= stylesheet_link_tag "bim/ifc_viewer/generic", media: 'all' %><% provision_gon_for_ifc_model(@ifc_models, @shown_model_ids) %><%= include_gon(nonce: content_security_policy_script_nonce) %><% end %>diff --git a/modules/bim/lib/open_project/bim/engine.rb b/modules/bim/lib/open_project/bim/engine.rbindex 33b4cbd104a..a1d6f4fd5eb 100644--- a/modules/bim/lib/open_project/bim/engine.rb+++ b/modules/bim/lib/open_project/bim/engine.rb@@ -93,7 +93,7 @@ module OpenProject::Bimclass_inflection_override('v2_1' => 'V2_1')- assets %w(bim/bcf.css bim/logo_openproject_bim_big.png bim/ifc_viewer/generic.css)+ assets %w(bim/logo_openproject_bim_big.png)patches %i[WorkPackage Type Journal RootSeeder Project]diff --git a/modules/costs/app/views/cost_objects/edit.html.erb b/modules/costs/app/views/cost_objects/edit.html.erbindex 6c377b7b9ba..dbc11cd4f28 100644--- a/modules/costs/app/views/cost_objects/edit.html.erb+++ b/modules/costs/app/views/cost_objects/edit.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render :partial => 'shared/costs_header' %>-<% html_title "#{t(:label_edit)} #{t(:label_cost_object_id, id: @cost_object.id)}: #{@cost_object.subject}" %><%= toolbar title: t(:label_cost_object_id, id: @cost_object.id) %>diff --git a/modules/costs/app/views/cost_objects/index.html.erb b/modules/costs/app/views/cost_objects/index.html.erbindex 3f68c45e72c..e8d8ca19cb7 100644--- a/modules/costs/app/views/cost_objects/index.html.erb+++ b/modules/costs/app/views/cost_objects/index.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render :partial => 'shared/costs_header' %>-<% html_title(t(:label_cost_object_plural)) %><%= toolbar title: t(:label_cost_object_plural) do %><% if authorize_for(:cost_objects, :new) %>diff --git a/modules/costs/app/views/cost_objects/new.html.erb b/modules/costs/app/views/cost_objects/new.html.erbindex 96510abc40f..5b941c23395 100644--- a/modules/costs/app/views/cost_objects/new.html.erb+++ b/modules/costs/app/views/cost_objects/new.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render :partial => 'shared/costs_header' %>-<% html_title(t(:label_cost_object_new)) %><%= toolbar title: t(:label_cost_object_new) %>diff --git a/modules/costs/app/views/cost_objects/show.html.erb b/modules/costs/app/views/cost_objects/show.html.erbindex da3b9f05809..934b281e27b 100644--- a/modules/costs/app/views/cost_objects/show.html.erb+++ b/modules/costs/app/views/cost_objects/show.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render :partial => 'shared/costs_header' %>-<% html_title "#{t(:label_cost_object_id, id: @cost_object.id)}: #{@cost_object.subject}" %><%= toolbar title: t(:label_cost_object_id, id: @cost_object.id) do %><% if authorize_for(:cost_objects, :edit) %>diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erbindex 6b0c9797fb9..22cb4892647 100644--- a/modules/costs/app/views/cost_types/edit.html.erb+++ b/modules/costs/app/views/cost_types/edit.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render partial: 'shared/costs_header' %>-<% if(@cost_type.id) %><% html_title t(:label_cost_type_specific, id: @cost_type.id, name: @cost_type.name) %><% local_assigns[:additional_breadcrumb] = @cost_type.name %>diff --git a/modules/costs/app/views/cost_types/index.html.erb b/modules/costs/app/views/cost_types/index.html.erbindex 4b771f534a6..28188b79a3b 100644--- a/modules/costs/app/views/cost_types/index.html.erb+++ b/modules/costs/app/views/cost_types/index.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render partial: 'shared/costs_header' %>-<% html_title l(:label_administration), t(:label_cost_type_plural) %><%= toolbar title: CostType.model_name.human(count: 2) do %><li class="toolbar-item">diff --git a/modules/costs/app/views/costlog/edit.html.erb b/modules/costs/app/views/costlog/edit.html.erbindex a17fed2f330..dd8e18bd09f 100644--- a/modules/costs/app/views/costlog/edit.html.erb+++ b/modules/costs/app/views/costlog/edit.html.erb@@ -28,7 +28,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%><% html_title t(:label_log_costs) %>-<%= render partial: 'shared/costs_header' %><h2><%= t(:label_log_costs) %></h2><% url = @cost_entry.new_record? ?diff --git a/modules/costs/app/views/hooks/costs/_activity_index_head.html.erb b/modules/costs/app/views/hooks/costs/_activity_index_head.html.erbdeleted file mode 100644index cc18b839480..00000000000--- a/modules/costs/app/views/hooks/costs/_activity_index_head.html.erb+++ /dev/null@@ -1,30 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2020 the OpenProject GmbH--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License version 3.--OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-Copyright (C) 2006-2017 Jean-Philippe Lang-Copyright (C) 2010-2013 the ChiliProject Team--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License-as published by the Free Software Foundation; either version 2-of the License, or (at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program; if not, write to the Free Software-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.--See docs/COPYRIGHT.rdoc for more details.--++#%>--<%= stylesheet_link_tag 'costs/costs.css' %>diff --git a/modules/costs/app/views/hooks/costs/_view_work_package_overview_attributes.html.erb b/modules/costs/app/views/hooks/costs/_view_work_package_overview_attributes.html.erbdeleted file mode 100644index cc18b839480..00000000000--- a/modules/costs/app/views/hooks/costs/_view_work_package_overview_attributes.html.erb+++ /dev/null@@ -1,30 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2020 the OpenProject GmbH--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License version 3.--OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-Copyright (C) 2006-2017 Jean-Philippe Lang-Copyright (C) 2010-2013 the ChiliProject Team--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License-as published by the Free Software Foundation; either version 2-of the License, or (at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program; if not, write to the Free Software-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.--See docs/COPYRIGHT.rdoc for more details.--++#%>--<%= stylesheet_link_tag 'costs/costs.css' %>diff --git a/modules/costs/app/views/hourly_rates/edit.html.erb b/modules/costs/app/views/hourly_rates/edit.html.erbindex fdd21848526..1ad829150a7 100644--- a/modules/costs/app/views/hourly_rates/edit.html.erb+++ b/modules/costs/app/views/hourly_rates/edit.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render partial: 'shared/costs_header' %>-<% html_title t(:label_administration), "#{t(:label_edit)} #{l((@project.nil? ? :caption_default_rate_history_for : :caption_rate_history_for), user: ' ')} #{@user.name}" %><%= toolbar title: (@project.nil? ? t(:caption_default_rate_history_for, user: @user.name) : t(:caption_rate_history_for_project, user: @user.name, project: @project.name) ) %>diff --git a/modules/costs/app/views/hourly_rates/show.html.erb b/modules/costs/app/views/hourly_rates/show.html.erbindex 87f831fcc5b..4923975090f 100644--- a/modules/costs/app/views/hourly_rates/show.html.erb+++ b/modules/costs/app/views/hourly_rates/show.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= render :partial => 'shared/costs_header' %>-<% html_title t(:label_administration), t(:caption_rate_history_for, user: @user.name) %><%= toolbar title: t(:caption_rate_history_for, :user => @user.name) %>diff --git a/modules/costs/app/views/shared/_costs_header.html.erb b/modules/costs/app/views/shared/_costs_header.html.erbdeleted file mode 100644index 4da20112827..00000000000--- a/modules/costs/app/views/shared/_costs_header.html.erb+++ /dev/null@@ -1,32 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2020 the OpenProject GmbH--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License version 3.--OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-Copyright (C) 2006-2017 Jean-Philippe Lang-Copyright (C) 2010-2013 the ChiliProject Team--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License-as published by the Free Software Foundation; either version 2-of the License, or (at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program; if not, write to the Free Software-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.--See docs/COPYRIGHT.rdoc for more details.--++#%>--<% content_for :header_tags do %>- <%= stylesheet_link_tag 'costs/costs.css' %>-<% end %>diff --git a/modules/costs/lib/open_project/costs/engine.rb b/modules/costs/lib/open_project/costs/engine.rbindex 36eb892e2c8..90446fbaab4 100644--- a/modules/costs/lib/open_project/costs/engine.rb+++ b/modules/costs/lib/open_project/costs/engine.rb@@ -352,11 +352,8 @@ module OpenProject::Costs}end- assets %w(costs/costs.css)-initializer 'costs.register_hooks' dorequire 'open_project/costs/hooks'- require 'open_project/costs/hooks/activity_hook'require 'open_project/costs/hooks/work_package_hook'require 'open_project/costs/hooks/work_package_action_menu'require 'open_project/costs/hooks/work_packages_show_attributes'diff --git a/modules/costs/lib/open_project/costs/hooks/activity_hook.rb b/modules/costs/lib/open_project/costs/hooks/activity_hook.rbdeleted file mode 100644index 2960fbea373..00000000000--- a/modules/costs/lib/open_project/costs/hooks/activity_hook.rb+++ /dev/null@@ -1,38 +0,0 @@-#-- copyright-# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See docs/COPYRIGHT.rdoc for more details.-#++--class OpenProject::Costs::Hooks::ActivityHook < Redmine::Hook::ViewListener- render_on :activity_index_head,- partial: 'hooks/costs/activity_index_head'-- render_on :users_show_head,- partial: 'hooks/costs/activity_index_head'-- render_on :search_index_head,- partial: 'hooks/costs/activity_index_head'-enddiff --git a/modules/costs/lib/open_project/costs/hooks/work_package_hook.rb b/modules/costs/lib/open_project/costs/hooks/work_package_hook.rbindex c238705edd4..bf5a336f781 100644--- a/modules/costs/lib/open_project/costs/hooks/work_package_hook.rb+++ b/modules/costs/lib/open_project/costs/hooks/work_package_hook.rb@@ -36,8 +36,6 @@ class OpenProject::Costs::Hooks::WorkPackageHook < Redmine::Hook::ViewListenerrender_on :view_work_packages_move_bottom, partial: 'hooks/costs/view_work_packages_move_bottom'- render_on :view_work_package_overview_attributes, partial: 'hooks/costs/view_work_package_overview_attributes'-# Updates the cost object after a move## Context:diff --git a/modules/documents/app/assets/stylesheets/documents/_global_rules.sass b/modules/documents/app/assets/stylesheets/documents/_global_rules.sassdeleted file mode 100644index 2b8f5141238..00000000000--- a/modules/documents/app/assets/stylesheets/documents/_global_rules.sass+++ /dev/null@@ -1,34 +0,0 @@-/*-- copyright- * OpenProject Documents Plugin- *- * Former OpenProject Core functionality extracted into a plugin.- *- * Copyright (C) 2009-2014 the OpenProject Foundation (OPF)- *- * This program is free software; you can redistribute it and/or- * modify it under the terms of the GNU General Public License version 3.- *- * OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:- * Copyright (C) 2006-2013 Jean-Philippe Lang- * Copyright (C) 2010-2013 the ChiliProject Team- *- * This program is free software; you can redistribute it and/or- * modify it under the terms of the GNU General Public License- * as published by the Free Software Foundation; either version 2- * of the License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU General Public License for more details.- *- * You should have received a copy of the GNU General Public License- * along with this program; if not, write to the Free Software- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.- *- * See docs/COPYRIGHT.rdoc for more details.- */--dt.document:before- @include icon-mixin-notes-diff --git a/modules/documents/app/views/documents/index.html.erb b/modules/documents/app/views/documents/index.html.erbindex 63cc0723250..f374a9ff6da 100644--- a/modules/documents/app/views/documents/index.html.erb+++ b/modules/documents/app/views/documents/index.html.erb@@ -27,8 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= stylesheet_link_tag 'documents/documents.css' %>-<%= toolbar title: l(:label_document_plural) do %><% if authorize_for(:documents, :new) %><li class="toolbar-item">diff --git a/modules/documents/app/views/hooks/documents/_activity_index_head.html.erb b/modules/documents/app/views/hooks/documents/_activity_index_head.html.erbdeleted file mode 100644index 8d6355c253c..00000000000--- a/modules/documents/app/views/hooks/documents/_activity_index_head.html.erb+++ /dev/null@@ -1,30 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2020 the OpenProject GmbH--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License version 3.--OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-Copyright (C) 2006-2017 Jean-Philippe Lang-Copyright (C) 2010-2013 the ChiliProject Team--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License-as published by the Free Software Foundation; either version 2-of the License, or (at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program; if not, write to the Free Software-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.--See docs/COPYRIGHT.rdoc for more details.--++#%>--<%= stylesheet_link_tag 'documents/documents.css' %>diff --git a/modules/documents/lib/open_project/documents/engine.rb b/modules/documents/lib/open_project/documents/engine.rbindex d70e25f285b..368aff0be03 100644--- a/modules/documents/lib/open_project/documents/engine.rb+++ b/modules/documents/lib/open_project/documents/engine.rb@@ -34,7 +34,6 @@ module OpenProject::Documentsregister 'openproject-documents',author_url: "http://www.openproject.com",- global_assets: { css: 'documents/global_rules' },bundled: true domenu :project_menu, :documents,@@ -75,15 +74,9 @@ module OpenProject::Documentsmount ::API::V3::Documents::DocumentsAPIend- assets %w(documents/documents.css)-# Add documents to allowed search paramsadditional_permitted_attributes search: %i(documents)- initializer "documents.register_hooks" do- require 'open_project/documents/hooks'- end-config.to_prepare dorequire_dependency 'document'require_dependency 'document_category'diff --git a/modules/documents/lib/open_project/documents/hooks.rb b/modules/documents/lib/open_project/documents/hooks.rbdeleted file mode 100644index ad5ca77b89c..00000000000--- a/modules/documents/lib/open_project/documents/hooks.rb+++ /dev/null@@ -1,34 +0,0 @@-#-- copyright-# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See docs/COPYRIGHT.rdoc for more details.-#++--module OpenProject::Documents- class Hooks < Redmine::Hook::ViewListener- render_on :activity_index_head,- partial: 'hooks/documents/activity_index_head'- end-enddiff --git a/modules/meeting/app/views/hooks/meetings/_activity_index_head.html.erb b/modules/meeting/app/views/hooks/meetings/_activity_index_head.html.erbdeleted file mode 100644index d694db3ec75..00000000000--- a/modules/meeting/app/views/hooks/meetings/_activity_index_head.html.erb+++ /dev/null@@ -1,30 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2020 the OpenProject GmbH--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License version 3.--OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-Copyright (C) 2006-2017 Jean-Philippe Lang-Copyright (C) 2010-2013 the ChiliProject Team--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License-as published by the Free Software Foundation; either version 2-of the License, or (at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program; if not, write to the Free Software-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.--See docs/COPYRIGHT.rdoc for more details.--++#%>--<%= stylesheet_link_tag 'meeting/meeting.css' %>diff --git a/modules/meeting/app/views/meeting_contents/_form.html.erb b/modules/meeting/app/views/meeting_contents/_form.html.erbindex 23db7007715..16c71b0acf3 100644--- a/modules/meeting/app/views/meeting_contents/_form.html.erb+++ b/modules/meeting/app/views/meeting_contents/_form.html.erb@@ -51,5 +51,3 @@ See docs/COPYRIGHT.rdoc for more details.<p><%= styled_button_tag l(:button_save), class: '-highlight -with-icon icon-checkmark button--save-agenda' %><%= link_to t(:button_cancel), "#", data: { 'content-type': content_type }, class: 'button -with-icon icon-cancel button--cancel-agenda' %><% end %>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/meeting_contents/_show.html.erb b/modules/meeting/app/views/meeting_contents/_show.html.erbindex 11cf2d8152b..f6685ff0e47 100644--- a/modules/meeting/app/views/meeting_contents/_show.html.erb+++ b/modules/meeting/app/views/meeting_contents/_show.html.erb@@ -67,5 +67,3 @@ See docs/COPYRIGHT.rdoc for more details.<% resource = ::API::V3::MeetingContents::MeetingContentRepresenter.new(content, current_user: current_user, embed_links: true) %><%= list_attachments(resource) %><% end %>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/meeting_contents/diff.html.erb b/modules/meeting/app/views/meeting_contents/diff.html.erbindex b2e4963ecf7..b4041f5e72f 100644--- a/modules/meeting/app/views/meeting_contents/diff.html.erb+++ b/modules/meeting/app/views/meeting_contents/diff.html.erb@@ -53,5 +53,3 @@ See docs/COPYRIGHT.rdoc for more details.<div class="text-diff"><%= simple_format_without_paragraph @diff.to_html %></div>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/meeting_contents/history.html.erb b/modules/meeting/app/views/meeting_contents/history.html.erbindex ca614ecef68..5a3c2006fa4 100644--- a/modules/meeting/app/views/meeting_contents/history.html.erb+++ b/modules/meeting/app/views/meeting_contents/history.html.erb@@ -134,5 +134,3 @@ See docs/COPYRIGHT.rdoc for more details.<%= styled_button_tag l(:label_view_diff), class: '-small -highlight' if show_diff %><%= pagination_links_full @content_versions %><% end %>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/meetings/_form.html.erb b/modules/meeting/app/views/meetings/_form.html.erbindex ce93f052de6..c4c64b0f8ab 100644--- a/modules/meeting/app/views/meetings/_form.html.erb+++ b/modules/meeting/app/views/meetings/_form.html.erb@@ -133,5 +133,3 @@ See docs/COPYRIGHT.rdoc for more details.<%= hidden_field_tag "copied_from_meeting_id", params[:copied_from_meeting_id] if params[:copied_from_meeting_id].present? %><%= hidden_field_tag "copied_meeting_agenda_text", params[:copied_meeting_agenda_text] if params[:copied_meeting_agenda_text].present? %></section>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/meetings/index.html.erb b/modules/meeting/app/views/meetings/index.html.erbindex 936b3404414..1cc22ab093b 100644--- a/modules/meeting/app/views/meetings/index.html.erb+++ b/modules/meeting/app/views/meetings/index.html.erb@@ -78,5 +78,3 @@ See docs/COPYRIGHT.rdoc for more details.<%= link_to_content_update(t(:label_today), page: @page_of_today, anchor: Date.today.strftime("%m-%d-%Y")) %><%= pagination_links_full @meetings, :container => false %></p>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/meetings/show.html.erb b/modules/meeting/app/views/meetings/show.html.erbindex 6de2772ce9f..5ac91f03207 100644--- a/modules/meeting/app/views/meetings/show.html.erb+++ b/modules/meeting/app/views/meetings/show.html.erb@@ -99,5 +99,3 @@ See docs/COPYRIGHT.rdoc for more details.<% end %></div><% end %>--<%= render :partial => 'shared/meeting_header' %>diff --git a/modules/meeting/app/views/shared/_meeting_header.html.erb b/modules/meeting/app/views/shared/_meeting_header.html.erbdeleted file mode 100644index 7bec74782af..00000000000--- a/modules/meeting/app/views/shared/_meeting_header.html.erb+++ /dev/null@@ -1,32 +0,0 @@-<%#-- copyright-OpenProject is an open source project management software.-Copyright (C) 2012-2020 the OpenProject GmbH--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License version 3.--OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-Copyright (C) 2006-2017 Jean-Philippe Lang-Copyright (C) 2010-2013 the ChiliProject Team--This program is free software; you can redistribute it and/or-modify it under the terms of the GNU General Public License-as published by the Free Software Foundation; either version 2-of the License, or (at your option) any later version.--This program is distributed in the hope that it will be useful,-but WITHOUT ANY WARRANTY; without even the implied warranty of-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-GNU General Public License for more details.--You should have received a copy of the GNU General Public License-along with this program; if not, write to the Free Software-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.--See docs/COPYRIGHT.rdoc for more details.--++#%>--<% content_for :header_tags do %>- <%= stylesheet_link_tag 'meeting/meeting.css' %>-<% end %>diff --git a/modules/meeting/lib/open_project/meeting/engine.rb b/modules/meeting/lib/open_project/meeting/engine.rbindex 1acbe216477..16d32a8cc44 100644--- a/modules/meeting/lib/open_project/meeting/engine.rb+++ b/modules/meeting/lib/open_project/meeting/engine.rb@@ -82,10 +82,6 @@ module OpenProject::MeetingRails.application.config.assets.precompile += %w(meeting/meeting.css meeting/meeting.js)end- initializer 'meeting.register_hooks' do- require 'open_project/meeting/hooks'- end-initializer 'meeting.register_latest_project_activity' doProject.register_latest_project_activity on: 'Meeting',attribute: :updated_atdiff --git a/modules/meeting/lib/open_project/meeting/hooks.rb b/modules/meeting/lib/open_project/meeting/hooks.rbdeleted file mode 100644index 31dfe08b858..00000000000--- a/modules/meeting/lib/open_project/meeting/hooks.rb+++ /dev/null@@ -1,40 +0,0 @@-#-- copyright-# OpenProject is an open source project management software.-# Copyright (C) 2012-2020 the OpenProject GmbH-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License version 3.-#-# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:-# Copyright (C) 2006-2017 Jean-Philippe Lang-# Copyright (C) 2010-2013 the ChiliProject Team-#-# This program is free software; you can redistribute it and/or-# modify it under the terms of the GNU General Public License-# as published by the Free Software Foundation; either version 2-# of the License, or (at your option) any later version.-#-# This program is distributed in the hope that it will be useful,-# but WITHOUT ANY WARRANTY; without even the implied warranty of-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the-# GNU General Public License for more details.-#-# You should have received a copy of the GNU General Public License-# along with this program; if not, write to the Free Software-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.-#-# See docs/COPYRIGHT.rdoc for more details.-#++--module OpenProject::Meeting- class Hooks < Redmine::Hook::ViewListener- render_on :activity_index_head,- partial: 'hooks/meetings/activity_index_head'-- render_on :users_show_head,- partial: 'hooks/meetings/activity_index_head'-- render_on :search_index_head,- partial: 'hooks/meetings/activity_index_head'- end-enddiff --git a/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/_new_types.sass b/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/_new_types.sassdeleted file mode 100644index 5979a94abac..00000000000--- a/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/_new_types.sass+++ /dev/null@@ -1,21 +0,0 @@-.mobile-otp-new-devices- display: flex- flex-direction: row- width: 75%--.mobile-otp-new-device- border: 1px solid #f1f1f1- padding: 20px- margin-right: 10px- flex: 1 0 25%-- // Flex self for alignment of button- display: flex- flex-direction: column-- h2- border-bottom: none--.mobile-otp-new-device--body- flex: 1-diff --git a/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/_totp.sass b/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/_totp.sassdeleted file mode 100644index 6cecc52d09c..00000000000--- a/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/_totp.sass+++ /dev/null@@ -1,14 +0,0 @@-// Let the qr float next to the manual entry-.mobile-otp-qr-form- display: flex- margin: 2rem 0-- .qr-code-element- margin-right: 50px--.mobile-otp-qr-manually- align-self: center--// Add some padding to QR code-.qr-code-element- padding: 5pxdiff --git a/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/two_factor_authentication.sass b/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/two_factor_authentication.sassdeleted file mode 100644index 9394ecd4c06..00000000000--- a/modules/two_factor_authentication/app/assets/stylesheets/two_factor_authentication/two_factor_authentication.sass+++ /dev/null@@ -1,71 +0,0 @@-@import '_new_types'-@import '_totp'--#login-form input[type=radio]- float: left--#resend_otp_container- margin-top: 30px--#resend_otp_container input[type=radio]- margin-right: 8px--#resend_otp_container label- margin-right: 10px--#resend_otp_container .resend-header- font-size: 14px- font-weight: bold- margin-bottom: 10px--#resend_otp_container .radios-wrapper- padding-top: 7px- float: left- border: none- overflow: hidden- clear: none---#resend_otp_container .radios-wrapper label- float: left- clear: none- display: block- padding: 2px 1em 0 0---#resend_otp_container .radios-wrapper input[type=radio]- float: left- clear: none- margin: 2px 0 15px 2px--// Add some paddings to action links-.mobile-otp--two-factor-device-row td.buttons- form:not(:last-child):after- content: ","- padding: 0 1px--.mobile-otp--two-factor-device-row.-default- .mobile-otp--device-text- font-weight: bold---// Backup codes display-.two-factor-authentication--backup-codes- // Avoid stretching the columns too much- max-width: 500px- margin: 2rem 0- background: #f8f8f8- border: 1px solid #f1f1f1- border-radius: 5px-- ul- padding: 10px- margin: 0- column-count: 2- column-gap: 50px- list-style: none- font-family: monospace- font-size: 1.3rem- font-weight: bold- li- padding: 5px\ No newline at end of filediff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/_header_tags.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/_header_tags.html.erbindex 5693c43a6b4..13f6d62cab6 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/_header_tags.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/_header_tags.html.erb@@ -1,4 +1,3 @@<% content_for :header_tags do %><%= javascript_include_tag('two_factor_authentication/two_factor_authentication.js') %>- <%= stylesheet_link_tag('two_factor_authentication/two_factor_authentication.css') %><% end %>\ No newline at end of filediff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erbindex 15655d72be5..2a8601f103f 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/enter_backup_code.html.erb@@ -1,6 +1,5 @@<% content_for :header_tags do %><%= javascript_include_tag('two_factor_authentication/two_factor_authentication.js') %>- <%= stylesheet_link_tag('two_factor_authentication/two_factor_authentication.css') %><% end %><% html_title l(:field_otp) %>diff --git a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erbindex 52ed58e5384..abe4be188a3 100644--- a/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb+++ b/modules/two_factor_authentication/app/views/two_factor_authentication/authentication/request_otp.html.erb@@ -4,7 +4,6 @@<% content_for :header_tags do %><%= javascript_include_tag('two_factor_authentication/two_factor_authentication.js') %>- <%= stylesheet_link_tag('two_factor_authentication/two_factor_authentication.css') %><% end %><% html_title l(:field_otp) %>diff --git a/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb b/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rbindex 9c695a00f73..db5a7e3c7eb 100644--- a/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb+++ b/modules/two_factor_authentication/lib/open_project/two_factor_authentication/engine.rb@@ -40,14 +40,6 @@ module OpenProject::TwoFactorAuthenticationapp.config.assets.precompile += %w(two_factor_authentication/two_factor_authentication.css two_factor_authentication/two_factor_authentication.js two_factor_authentication/two_factor_authentication.css)end- initializer 'two_factor_authentication.precompile_assets' do |app|- app.config.assets.precompile += %w(- two_factor_authentication/two_factor_authentication.css- two_factor_authentication/two_factor_authentication.js- two_factor_authentication/two_factor_authentication.css- )- end-patches %i[User]add_tab_entry :user,diff --git a/modules/webhooks/app/assets/stylesheets/webhooks/webhooks.sass b/modules/webhooks/app/assets/stylesheets/webhooks/webhooks.sassdeleted file mode 100644index e5dcf1cf1fb..00000000000--- a/modules/webhooks/app/assets/stylesheets/webhooks/webhooks.sass+++ /dev/null@@ -1,12 +0,0 @@-.webhooks--delivery-success- color: #019875--.webhooks--delivery-error- color: #c0392b--.webhooks--response-body-modal- min-width: 25vw-- pre- background: #f1f1f1- padding: 5pxdiff --git a/modules/webhooks/app/views/webhooks/outgoing/admin/_header_tags.html.erb b/modules/webhooks/app/views/webhooks/outgoing/admin/_header_tags.html.erbindex 5188ae094fb..37b532d02ed 100644--- a/modules/webhooks/app/views/webhooks/outgoing/admin/_header_tags.html.erb+++ b/modules/webhooks/app/views/webhooks/outgoing/admin/_header_tags.html.erb@@ -1,4 +1,3 @@<% content_for :header_tags do %>- <%= stylesheet_link_tag('webhooks/webhooks.css') %><%= javascript_include_tag('webhooks/webhooks.js') %><% end %>\ No newline at end of filediff --git a/modules/webhooks/lib/open_project/webhooks/engine.rb b/modules/webhooks/lib/open_project/webhooks/engine.rbindex 1fc20aedf35..f859c009cc6 100644--- a/modules/webhooks/lib/open_project/webhooks/engine.rb+++ b/modules/webhooks/lib/open_project/webhooks/engine.rb@@ -54,9 +54,5 @@ module OpenProject::Webhooksinitializer 'webhooks.subscribe_to_notifications' do::OpenProject::Webhooks::EventResources.subscribe!end-- initializer 'webhooks.precompile_assets' do |app|- app.config.assets.precompile += %w(webhooks/webhooks.css webhooks/webhooks.js)- endendend