Fix top and project menu items and also styling.
Some checks failed
continuous-integration/drone Build is failing
Some checks failed
continuous-integration/drone Build is failing
This commit is contained in:
@@ -9,21 +9,6 @@ end
|
||||
require lib_dir
|
||||
require File.join(lib_dir, 'hooks')
|
||||
|
||||
Redmine::MenuManager.map :top_menu do |menu|
|
||||
menu.push(:easy_gantt, { controller: 'easy_gantt', action: 'index', set_filter: 0 },
|
||||
caption: :label_easy_gantt,
|
||||
after: :documents,
|
||||
html: { class: 'icon icon-stats' },
|
||||
if: proc { User.current.allowed_to_globally?(:view_global_easy_gantt) })
|
||||
end
|
||||
|
||||
Redmine::MenuManager.map :project_menu do |menu|
|
||||
menu.push(:easy_gantt, { controller: 'easy_gantt', action: 'index' },
|
||||
param: :project_id,
|
||||
caption: :button_project_menu_easy_gantt,
|
||||
if: proc { |p| User.current.allowed_to?(:view_easy_gantt, p) })
|
||||
end
|
||||
|
||||
Redmine::MenuManager.map :easy_gantt_tools do |menu|
|
||||
menu.push(:back, 'javascript:void(0)',
|
||||
param: :project_id,
|
||||
|
||||
@@ -302,7 +302,7 @@ This software is covered by GPL license. You also can obtain Commercial or Enter
|
||||
height: 1px
|
||||
}
|
||||
.gantt_hor_scroll {
|
||||
height: 0;
|
||||
height: 10px !important;
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
clear: both;
|
||||
|
||||
@@ -305,7 +305,7 @@ body {
|
||||
height: 1px
|
||||
}
|
||||
.gantt_hor_scroll {
|
||||
height: 0;
|
||||
height: 10px !important;
|
||||
background-color: transparent;
|
||||
width: 100%;
|
||||
clear: both;
|
||||
@@ -2625,7 +2625,7 @@ div#easy_gantt.easy .selected.button.active {
|
||||
|
||||
/* line 10, plugins/easy_gantt/assets/stylesheets/easy_gantt/sass/_gantt_icons.scss */
|
||||
.easy-gantt__icon:before {
|
||||
font-family: "Material Icons", sans-serif;
|
||||
font-family: "Material Icons", sans-serif !important;
|
||||
}
|
||||
|
||||
/* line 14, plugins/easy_gantt/assets/stylesheets/easy_gantt/sass/_gantt_icons.scss */
|
||||
@@ -2710,6 +2710,7 @@ div#easy_gantt.easy .selected.button.active {
|
||||
.redmine .gantt-menu-button.icon, .redmine .gantt_button.icon {
|
||||
padding: 8px 10px 8px 25px;
|
||||
background-position-x: 5px;
|
||||
background-position-y: center;
|
||||
}
|
||||
|
||||
/* line 47, plugins/easy_gantt/assets/stylesheets/easy_gantt/sass/_gantt_redmine.scss */
|
||||
|
||||
@@ -8,7 +8,7 @@ $gantt-icons: (
|
||||
&__icon {
|
||||
@include icon-parent;
|
||||
&:before {
|
||||
font-family: "Material Icons", sans-serif;
|
||||
font-family: "Material Icons", sans-serif !important;
|
||||
}
|
||||
@each $icon, $sign in $gantt-icons {
|
||||
&--#{$icon}:before {
|
||||
|
||||
@@ -44,6 +44,7 @@ $redmine_icons: (
|
||||
.gantt-menu-button.icon, .gantt_button.icon{
|
||||
padding: 8px 10px 8px 25px;
|
||||
background-position-x: 5px;
|
||||
background-position-y: center;
|
||||
}
|
||||
@each $icon, $image in $redmine_icons{
|
||||
.icon-#{$icon}{
|
||||
|
||||
@@ -6,6 +6,19 @@ Redmine::Plugin.register :easy_gantt do
|
||||
description 'Cool gantt for redmine'
|
||||
version '2.0'
|
||||
|
||||
menu :top_menu,
|
||||
:easy_gantt, { controller: 'easy_gantt', action: 'index', set_filter: 0 },
|
||||
caption: :label_easy_gantt,
|
||||
after: :documents,
|
||||
html: { class: 'icon icon-stats' },
|
||||
if: proc { User.current.allowed_to_globally?(:view_global_easy_gantt) }
|
||||
|
||||
menu :project_menu,
|
||||
:easy_gantt, { controller: 'easy_gantt', action: 'index' },
|
||||
param: :project_id,
|
||||
caption: :button_project_menu_easy_gantt,
|
||||
if: proc { |p| User.current.allowed_to?(:view_easy_gantt, p) }
|
||||
|
||||
requires_redmine version_or_higher: '5.0'
|
||||
|
||||
settings partial: 'settings/easy_gantt', default: {
|
||||
|
||||
Reference in New Issue
Block a user