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 backlogs styles into frontend
Oliver Güntherb38a5e7e8390
diff --git a/app/views/layouts/angular.html.erb b/app/views/layouts/angular.html.erbindex b43d4190688..54207973c5d 100644--- a/app/views/layouts/angular.html.erb+++ b/app/views/layouts/angular.html.erb@@ -37,6 +37,11 @@ See docs/COPYRIGHT.rdoc for more details.<%= content_for :content_body do %><openproject-base></openproject-base>++ <%# Allow projection pages to show rails rendered content after initialization %>+ <div id="projected-content" hidden>+ <%= yield %>+ </div><% end -%><%= render template: 'layouts/base', locals: local_assigns.merge({ no_action_menu: true }) %>diff --git a/frontend/src/app/global-dynamic-components.const.ts b/frontend/src/app/global-dynamic-components.const.tsindex ebdfee7d036..75bccee61ce 100644--- a/frontend/src/app/global-dynamic-components.const.ts+++ b/frontend/src/app/global-dynamic-components.const.ts@@ -134,6 +134,10 @@ import {TriggerActionsEntryComponent,triggerActionsEntryComponentSelector} from "core-app/modules/time_entries/edit/trigger-actions-entry.component";+import {+ BacklogsPageComponent,+ backlogsPageComponentSelector+} from "core-app/modules/backlogs/backlogs-page/backlogs-page.component";export const globalDynamicComponents:OptionalBootstrapDefinition[] = [{ selector: appBaseSelector, cls: ApplicationBaseComponent },@@ -175,6 +179,7 @@ export const globalDynamicComponents:OptionalBootstrapDefinition[] = [{ selector: wpOverviewGraphSelector, cls: WorkPackageOverviewGraphComponent },{ selector: wpQuerySelectSelector, cls: WorkPackageQuerySelectDropdownComponent },{ selector: triggerActionsEntryComponentSelector, cls: TriggerActionsEntryComponent, embeddable: true },+ { selector: backlogsPageComponentSelector, cls: BacklogsPageComponent },];diff --git a/frontend/src/app/init-vendors.ts b/frontend/src/app/init-vendors.tsindex ec2b805e913..dc3fe8ce837 100644--- a/frontend/src/app/init-vendors.ts+++ b/frontend/src/app/init-vendors.ts@@ -54,7 +54,10 @@ require('@uirouter/angular');// Jquery UIrequire('jquery-ui/ui/core.js');require('jquery-ui/ui/position.js');+require('jquery-ui/ui/disable-selection.js');+require('jquery-ui/ui/widgets/sortable.js');require('jquery-ui/ui/widgets/autocomplete.js');+require('jquery-ui/ui/widgets/dialog.js');require('jquery-ui/ui/widgets/tooltip.js');require('expose-loader?moment!moment');diff --git a/frontend/src/app/modules/backlogs/backlogs-page/backlogs-page.component.ts b/frontend/src/app/modules/backlogs/backlogs-page/backlogs-page.component.tsnew file mode 100644index 00000000000..b04220d0054--- /dev/null+++ b/frontend/src/app/modules/backlogs/backlogs-page/backlogs-page.component.ts@@ -0,0 +1,19 @@+import {Component, OnInit, ViewEncapsulation} from "@angular/core";++export const backlogsPageComponentSelector = 'op-backlogs-page';++@Component({+ selector: backlogsPageComponentSelector,+ // Empty wrapper around legacy backlogs for CSS loading+ // that got removed in the Rails assets pipeline+ encapsulation: ViewEncapsulation.None,+ template: '',+ styleUrls: [+ './styles/backlogs.sass'+ ]+})+export class BacklogsPageComponent implements OnInit {+ ngOnInit() {+ document.getElementById('projected-content').hidden = false;+ }+}\ No newline at end of filediff --git a/modules/backlogs/app/assets/stylesheets/backlogs/backlogs.css.sass b/frontend/src/app/modules/backlogs/backlogs-page/styles/backlogs.sasssimilarity index 93%rename from modules/backlogs/app/assets/stylesheets/backlogs/backlogs.css.sassrename to frontend/src/app/modules/backlogs/backlogs-page/styles/backlogs.sassindex c666fcb36a2..147c95afb5a 100644--- a/modules/backlogs/app/assets/stylesheets/backlogs/backlogs.css.sass+++ b/frontend/src/app/modules/backlogs/backlogs-page/styles/backlogs.sass@@ -33,7 +33,9 @@* See docs/COPYRIGHT.rdoc for more details.*/-@import backlogs/global-@import backlogs/global_print-@import backlogs/jqplot-@import backlogs/statistics+@import global+@import global_print+@import jqplot+@import statistics+@import master_backlog+@import taskboarddiff --git a/modules/backlogs/app/assets/stylesheets/backlogs/global.css b/frontend/src/app/modules/backlogs/backlogs-page/styles/global.csssimilarity index 100%rename from modules/backlogs/app/assets/stylesheets/backlogs/global.cssrename to frontend/src/app/modules/backlogs/backlogs-page/styles/global.cssdiff --git a/modules/backlogs/app/assets/stylesheets/backlogs/global_print.css b/frontend/src/app/modules/backlogs/backlogs-page/styles/global_print.csssimilarity index 100%rename from modules/backlogs/app/assets/stylesheets/backlogs/global_print.cssrename to frontend/src/app/modules/backlogs/backlogs-page/styles/global_print.cssdiff --git a/frontend/src/app/modules/backlogs/backlogs-page/styles/jqplot.css b/frontend/src/app/modules/backlogs/backlogs-page/styles/jqplot.cssnew file mode 100644index 00000000000..663ed0299ef--- /dev/null+++ b/frontend/src/app/modules/backlogs/backlogs-page/styles/jqplot.css@@ -0,0 +1,185 @@+/*-- copyright+OpenProject Backlogs Plugin++Copyright (C)2013-2014 the OpenProject Foundation (OPF)+Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda+Copyright (C)2010-2011 friflaj+Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns+Copyright (C)2009-2010 Mark Maglana+Copyright (C)2009 Joe Heck, Nate Lowrie++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 Backlogs is a derivative work based on ChiliProject Backlogs.+The copyright follows:+Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj+Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany++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.++++*/++.jqplot-target {+ position: relative;+ color: #666;+ font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;+ font-size: 1em;+}++.jqplot-axis {+ font-size: .75em;+}++.jqplot-xaxis {+ margin-top: 10px;+}++.jqplot-x2axis {+ margin-bottom: 10px;+}++.jqplot-yaxis {+ margin-right: 10px;+}++.jqplot-y2axis, .jqplot-y3axis, .jqplot-y4axis, .jqplot-y5axis, .jqplot-y6axis, .jqplot-y7axis, .jqplot-y8axis, .jqplot-y9axis {+ margin-left: 10px;+ margin-right: 10px;+}++.jqplot-axis-tick, .jqplot-xaxis-tick, .jqplot-yaxis-tick, .jqplot-x2axis-tick, .jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick, .jqplot-y9axis-tick {+ position: absolute;+}++.jqplot-xaxis-tick {+ top: 0;+ left: 15px;+ vertical-align: top;+}++.jqplot-x2axis-tick {+ bottom: 0;+ left: 15px;+ vertical-align: bottom;+}++.jqplot-yaxis-tick {+ right: 0;+ top: 15px;+ text-align: right;+}++.jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick, .jqplot-y9axis-tick {+ left: 0;+ top: 15px;+ text-align: left;+}++.jqplot-xaxis-label {+ margin-top: 10px;+ font-size: 11pt;+ position: absolute;+}++.jqplot-x2axis-label {+ margin-bottom: 10px;+ font-size: 11pt;+ position: absolute;+}++.jqplot-yaxis-label {+ margin-right: 10px;+ font-size: 11pt;+ position: absolute;+}++.jqplot-y2axis-label, .jqplot-y3axis-label, .jqplot-y4axis-label, .jqplot-y5axis-label, .jqplot-y6axis-label, .jqplot-y7axis-label, .jqplot-y8axis-label, .jqplot-y9axis-label {+ font-size: 11pt;+ position: absolute;+}++table.jqplot-table-legend, table.jqplot-cursor-legend {+ background-color: rgba(255, 255, 255, 0.6);+ border: 1px solid #ccc;+ position: absolute;+ font-size: .75em;+}++td.jqplot-table-legend {+ vertical-align: middle;+}++td.jqplot-table-legend > div {+ border: 1px solid #ccc;+ padding: .2em;+}++div.jqplot-table-legend-swatch {+ width: 0;+ height: 0;+ border-top-width: .35em;+ border-bottom-width: .35em;+ border-left-width: .6em;+ border-right-width: .6em;+ border-top-style: solid;+ border-bottom-style: solid;+ border-left-style: solid;+ border-right-style: solid;+}++.jqplot-title {+ top: 0;+ left: 0;+ padding-bottom: .5em;+ font-size: 1.2em;+}++table.jqplot-cursor-tooltip {+ border: 1px solid #ccc;+ font-size: .75em;+}++.jqplot-cursor-tooltip {+ border: 1px solid #ccc;+ font-size: .75em;+ white-space: nowrap;+ background: rgba(208, 208, 208, 0.5);+ padding: 1px;+}++.jqplot-highlighter-tooltip {+ border: 1px solid #ccc;+ font-size: .75em;+ white-space: nowrap;+ background: rgba(208, 208, 208, 0.5);+ padding: 1px;+}++.jqplot-point-label {+ font-size: .75em;+}++td.jqplot-cursor-legend-swatch {+ vertical-align: middle;+ text-align: center;+}++div.jqplot-cursor-legend-swatch {+ width: 1.2em;+ height: .7em;+}diff --git a/modules/backlogs/app/assets/stylesheets/backlogs/master_backlog.sass b/frontend/src/app/modules/backlogs/backlogs-page/styles/master_backlog.sasssimilarity index 98%rename from modules/backlogs/app/assets/stylesheets/backlogs/master_backlog.sassrename to frontend/src/app/modules/backlogs/backlogs-page/styles/master_backlog.sassindex 86aec3d718f..86a422cd1c2 100644--- a/modules/backlogs/app/assets/stylesheets/backlogs/master_backlog.sass+++ b/frontend/src/app/modules/backlogs/backlogs-page/styles/master_backlog.sass@@ -164,7 +164,7 @@margin-left: 30pxmargin-right: 50px&.saving- background-image: image-url("loading.gif")+ background-image: url('~assets/images/loading.gif')background-repeat: no-repeatbackground-position: center&.error.icon-bug@@ -215,7 +215,7 @@&.evenbackground-color: #FFF&.saving- background-image: image-url("loading.gif")+ background-image: url('~assets/images/loading.gif')background-repeat: no-repeatbackground-position: center&.error.icon-bugdiff --git a/modules/backlogs/app/assets/stylesheets/backlogs/statistics.css b/frontend/src/app/modules/backlogs/backlogs-page/styles/statistics.csssimilarity index 100%rename from modules/backlogs/app/assets/stylesheets/backlogs/statistics.cssrename to frontend/src/app/modules/backlogs/backlogs-page/styles/statistics.cssdiff --git a/modules/backlogs/app/assets/stylesheets/backlogs/taskboard.sass b/frontend/src/app/modules/backlogs/backlogs-page/styles/taskboard.sasssimilarity index 97%rename from modules/backlogs/app/assets/stylesheets/backlogs/taskboard.sassrename to frontend/src/app/modules/backlogs/backlogs-page/styles/taskboard.sassindex d88e16e2171..a0213ea8762 100644--- a/modules/backlogs/app/assets/stylesheets/backlogs/taskboard.sass+++ b/frontend/src/app/modules/backlogs/backlogs-page/styles/taskboard.sass@@ -26,9 +26,8 @@* See docs/COPYRIGHT.rdoc for more details. ++*/-// Todo for task #33508-@import "../../../frontend/src/global_styles/openproject/variables"-@import "../../../frontend/src/global_styles/openproject/functions"+@import "~global_styles/openproject/variables"+@import "~global_styles/openproject/functions"@mixin story-headerbackground-color: #FFFFFF@@ -61,7 +60,7 @@line-height: inheritwhite-space: inherit-#rb+#rb #taskboardoverflow-x: auto#assigned_to_id_optionsdisplay: none@@ -182,6 +181,7 @@display: none&.saving .indicator+ background-image: url('~assets/images/loading.gif')background-color: #FFFFFFbackground-position: centerbackground-repeat: no-repeat@@ -192,7 +192,6 @@left: 36pxtop: 38pxwidth: 16px- background-image: image-url("loading.gif")display: block&.error .indicatordiff --git a/frontend/src/app/modules/backlogs/openproject-backlogs.module.ts b/frontend/src/app/modules/backlogs/openproject-backlogs.module.tsnew file mode 100644index 00000000000..f53e4feb7cc--- /dev/null+++ b/frontend/src/app/modules/backlogs/openproject-backlogs.module.ts@@ -0,0 +1,48 @@+// -- 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-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.+// ++++import {NgModule} from '@angular/core';+import {UIRouterModule} from "@uirouter/angular";+import {BacklogsPageComponent} from "core-app/modules/backlogs/backlogs-page/backlogs-page.component";+import {BACKLOGS_ROUTES, uiRouterBacklogsConfiguration} from "core-app/modules/backlogs/openproject-backlogs.routes";++@NgModule({+ imports: [+ // Routes for /boards+ UIRouterModule.forChild({+ states: BACKLOGS_ROUTES,+ config: uiRouterBacklogsConfiguration+ }),+ ],+ declarations: [+ BacklogsPageComponent+ ]+})+export class OpenprojectBacklogsModule {+}+diff --git a/frontend/src/app/modules/backlogs/openproject-backlogs.routes.ts b/frontend/src/app/modules/backlogs/openproject-backlogs.routes.tsnew file mode 100644index 00000000000..0cbd34dcf35--- /dev/null+++ b/frontend/src/app/modules/backlogs/openproject-backlogs.routes.ts@@ -0,0 +1,51 @@+// -- 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-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.+// ++++import {Ng2StateDeclaration, UIRouter} from "@uirouter/angular";+import {BacklogsPageComponent} from "core-app/modules/backlogs/backlogs-page/backlogs-page.component";++export const BACKLOGS_ROUTES:Ng2StateDeclaration[] = [+ {+ name: 'backlogs',+ parent: 'root',+ // The trailing slash is important+ // cf., https://community.openproject.com/wp/29754+ url: '/backlogs/',+ component: BacklogsPageComponent+ },+];++export function uiRouterBacklogsConfiguration(uiRouter:UIRouter) {+ // Ensure backlogs/ are being redirected correctly+ // cf., https://community.openproject.com/wp/29754+ uiRouter.urlService.rules+ .when(+ new RegExp("^/projects/(.*)/backlogs$"),+ match => `/projects/${match[1]}/backlogs/`+ );+}diff --git a/frontend/src/app/modules/router/openproject.routes.ts b/frontend/src/app/modules/router/openproject.routes.tsindex dedab6a90a2..3c3ecef839c 100644--- a/frontend/src/app/modules/router/openproject.routes.ts+++ b/frontend/src/app/modules/router/openproject.routes.ts@@ -63,6 +63,12 @@ export const OPENPROJECT_ROUTES:Ng2StateDeclaration[] = [url: '/bcf',loadChildren: () => import('../bim/ifc_models/openproject-ifc-models.module').then(m => m.OpenprojectIFCModelsModule)},+ {+ name: 'backlogs.**',+ parent: 'root',+ url: '/backlogs',+ loadChildren: () => import('../backlogs/openproject-backlogs.module').then(m => m.OpenprojectBacklogsModule)+ },];/**diff --git a/frontend/src/assets/images/loading.gif b/frontend/src/assets/images/loading.gifnew file mode 100644index 00000000000..085ccaecaf5Binary files /dev/null and b/frontend/src/assets/images/loading.gif differdiff --git a/frontend/src/global_styles/content/_ajax_indicator.sass b/frontend/src/global_styles/content/_ajax_indicator.sassindex 34eb0a0b477..2b11d4f1a0f 100644--- a/frontend/src/global_styles/content/_ajax_indicator.sass+++ b/frontend/src/global_styles/content/_ajax_indicator.sass@@ -48,8 +48,7 @@ html > body #ajax-indicator#ajax-indicator span, .ajax-indicatorbackground-position: 0% 40%background-repeat: no-repeat- // Todo for task #33508- //background-image: image-url("loading.gif")+ background-image: url('~assets/images/loading.gif')padding-left: 26pxvertical-align: bottomdiff --git a/modules/backlogs/app/assets/stylesheets/backlogs/jqplot.css b/modules/backlogs/app/assets/stylesheets/backlogs/jqplot.cssdeleted file mode 100644index 8b54a570ae4..00000000000--- a/modules/backlogs/app/assets/stylesheets/backlogs/jqplot.css+++ /dev/null@@ -1,37 +0,0 @@-/*-- copyright-OpenProject Backlogs Plugin--Copyright (C)2013-2014 the OpenProject Foundation (OPF)-Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda-Copyright (C)2010-2011 friflaj-Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns-Copyright (C)2009-2010 Mark Maglana-Copyright (C)2009 Joe Heck, Nate Lowrie--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 Backlogs is a derivative work based on ChiliProject Backlogs.-The copyright follows:-Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj-Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany--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.--++*/--.jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em;}.jqplot-axis{font-size:.75em;}.jqplot-xaxis{margin-top:10px;}.jqplot-x2axis{margin-bottom:10px;}.jqplot-yaxis{margin-right:10px;}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis{margin-left:10px;margin-right:10px;}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{position:absolute;}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top;}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom;}.jqplot-yaxis-tick{right:0;top:15px;text-align:right;}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left;}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute;}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute;}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute;}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;position:absolute;}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em;}td.jqplot-table-legend{vertical-align:middle;}td.jqplot-table-legend>div{border:1px solid #ccc;padding:.2em;}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:.35em;border-bottom-width:.35em;border-left-width:.6em;border-right-width:.6em;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid;}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em;}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-highlighter-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-point-label{font-size:.75em;}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center;}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em;}diff --git a/modules/backlogs/app/controllers/rb_application_controller.rb b/modules/backlogs/app/controllers/rb_application_controller.rbindex 5fc547d94c1..41b5e29e692 100644--- a/modules/backlogs/app/controllers/rb_application_controller.rb+++ b/modules/backlogs/app/controllers/rb_application_controller.rb@@ -34,6 +34,10 @@ class RbApplicationController < ApplicationControllerskip_before_action :verify_authenticity_token, if: -> { Rails.env.test? }+ # Render angular layout to handle CSS loading+ # from the frontend+ layout 'angular'+private# Loads the project to be used by the authorize filter to determine ifdiff --git a/modules/backlogs/app/views/hooks/backlogs/_view_work_packages_form_details_bottom.html.erb b/modules/backlogs/app/views/hooks/backlogs/_view_work_packages_form_details_bottom.html.erbdeleted file mode 100644index 6059257f26a..00000000000--- a/modules/backlogs/app/views/hooks/backlogs/_view_work_packages_form_details_bottom.html.erb+++ /dev/null@@ -1,83 +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.--++#%>--<% work_package = issue %>--<% if work_package.is_story? && params[:copy_from] %>- <div id="backlogs-attributes" class="attributes">- <div class="form--field">- <%= styled_label_tag :link_to_original, l(:rb_label_link_to_original) %>- <span class="form--field-container">- <%= styled_check_box_tag('link_to_original',- params[:copy_from],- true, label: l(:rb_label_link_to_original)) %>- </span>- </div>-- <div class="form--grouping" role="group" aria-labelledby="copy-tasks-label">- <div id="copy_tasks_label"- class="form--grouping-label">- <%= l(:rb_label_copy_tasks) %>- </div>- <div class="form--grouping-row">- <div class="form--field">- <span class="form--field-container -vertical">- <span class="form--radio-button-container">- <label class="form--label">- <%= radio_button_tag('copy_tasks',- 'open:' + params[:copy_from],- true,- { id: 'copy_tasks_open' }) %>- <%= l(:rb_label_copy_tasks_open) %>- </label>- </span>- <span class="form--radio-button-container">- <label class="form--label">- <%= radio_button_tag('copy_tasks',- 'none',- false,- { id: 'copy_tasks_none' }) %>- <%= l(:rb_label_copy_tasks_none) %>- </label>- </span>- <span class="form--radio-button-container">- <label class="form--label">- <%= radio_button_tag('copy_tasks',- 'all:' + params[:copy_from],- false,- { id: 'copy_tasks_all' }) %>- <%= l(:rb_label_copy_tasks_all) %>- </label>- </span>- </span>- </div>- </div>- </div>- </div>-<% end %>diff --git a/modules/backlogs/app/views/rb_burndown_charts/show.html.erb b/modules/backlogs/app/views/rb_burndown_charts/show.html.erbindex 7fbd3ae2fc6..785bbbf67e4 100644--- a/modules/backlogs/app/views/rb_burndown_charts/show.html.erb+++ b/modules/backlogs/app/views/rb_burndown_charts/show.html.erb@@ -29,7 +29,6 @@ See docs/COPYRIGHT.rdoc for more details.<% content_for :header_tags do %><%= render :partial => 'shared/backlogs_header' %>- <%= stylesheet_link_tag 'backlogs/master_backlog.css' %><% end %><h2>diff --git a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb b/modules/backlogs/app/views/rb_master_backlogs/index.html.erbindex 997b14783b3..bef80e9f724 100644--- a/modules/backlogs/app/views/rb_master_backlogs/index.html.erb+++ b/modules/backlogs/app/views/rb_master_backlogs/index.html.erb@@ -29,7 +29,6 @@ See docs/COPYRIGHT.rdoc for more details.<% content_for :header_tags do %><%= render :partial => 'shared/backlogs_header' %>- <%= stylesheet_link_tag 'backlogs/master_backlog.css' %><% end %><div class='contextual'></div>diff --git a/modules/backlogs/app/views/rb_taskboards/show.html.erb b/modules/backlogs/app/views/rb_taskboards/show.html.erbindex 931c38a1117..4284e0937ad 100644--- a/modules/backlogs/app/views/rb_taskboards/show.html.erb+++ b/modules/backlogs/app/views/rb_taskboards/show.html.erb@@ -29,8 +29,8 @@ See docs/COPYRIGHT.rdoc for more details.<% content_for :header_tags do %><%= render :partial => 'shared/backlogs_header' %>- <%= stylesheet_link_tag 'backlogs/taskboard.css' %><% end %>+<% html_title @sprint.name %><%= toolbar title: @sprint.name do %><li class="toolbar-item toolbar-input-group" id="col_width">diff --git a/modules/backlogs/app/views/shared/_backlogs_header.html.erb b/modules/backlogs/app/views/shared/_backlogs_header.html.erbindex fbfaf806f6e..c935c618916 100644--- a/modules/backlogs/app/views/shared/_backlogs_header.html.erb+++ b/modules/backlogs/app/views/shared/_backlogs_header.html.erb@@ -27,7 +27,6 @@ See docs/COPYRIGHT.rdoc for more details.++#%>-<%= stylesheet_link_tag 'backlogs/backlogs.css' %><%= javascript_include_tag 'backlogs/backlogs.js' %><%= nonced_javascript_tag do %>diff --git a/modules/backlogs/lib/open_project/backlogs/engine.rb b/modules/backlogs/lib/open_project/backlogs/engine.rbindex d13b626c175..6b99f9b91e7 100644--- a/modules/backlogs/lib/open_project/backlogs/engine.rb+++ b/modules/backlogs/lib/open_project/backlogs/engine.rb@@ -105,15 +105,6 @@ module OpenProject::Backlogsicon: 'icon2 icon-backlogs'end- assets %w(- backlogs/backlogs.css- backlogs/backlogs.js- backlogs/master_backlog.css- backlogs/taskboard.css- backlogs/jquery.flot/excanvas.js- backlogs/burndown.js- )-# We still override version and project settings views from the core! URHoverride_core_views!diff --git a/modules/backlogs/lib/open_project/backlogs/hooks.rb b/modules/backlogs/lib/open_project/backlogs/hooks.rbindex f363daa9ddd..9915e7a67a2 100644--- a/modules/backlogs/lib/open_project/backlogs/hooks.rb+++ b/modules/backlogs/lib/open_project/backlogs/hooks.rb@@ -65,12 +65,6 @@ module OpenProject::Backlogs::Hooksclass LayoutHook < Redmine::Hook::ViewListenerinclude RbCommonHelper- # TODO: there are hook implementations in here that need to be ported- # to render a partial instead of returning a hand crafted snippet-- render_on :view_work_packages_form_details_bottom,- partial: 'hooks/backlogs/view_work_packages_form_details_bottom'-def view_versions_show_bottom(context = {})version = context[:version]project = version.project