Fix conding standards

This commit is contained in:
Alexander Meindl 2020-09-02 14:26:28 +02:00
parent 22dddfdca4
commit 80b5b9b80a
3 changed files with 21 additions and 21 deletions

View File

@ -1,11 +1,13 @@
- if Additionals.setting?(:issue_freezed_with_close) && !User.current.allowed_to?(:edit_closed_issues, project)
- if @issues.detect(&:closed?)
ruby:
@safe_attributes = []
@can[:edit] = false
@can[:edit] = false
@allowed_statuses = nil
@trackers = nil
@can[:add_watchers] = nil
@can[:delete] = nil
@options_by_custom_field = []
ruby:
if Additionals.setting?(:issue_freezed_with_close) &&
!User.current.allowed_to?(:edit_closed_issues, project) &&
@issues.detect(&:closed?)
@safe_attributes = []
@can[:edit] = false
@can[:edit] = false
@allowed_statuses = nil
@trackers = nil
@can[:add_watchers] = nil
@can[:delete] = nil
@options_by_custom_field = []
end

View File

@ -1,11 +1,10 @@
/ Some plugins use @news (e.g. redmine_wysiwyg_editor), to detect news
- @news = nil
.contextual
- if User.current.allowed_to? :save_dashboards, @project
- if @dashboard&.editable?
= link_to l(:button_dashboard_edit),
edit_project_dashboard_path(@project, @dashboard),
class: 'icon icon-edit'
- if User.current.allowed_to?(:save_dashboards, @project) && @dashboard&.editable?
= link_to l(:button_dashboard_edit),
edit_project_dashboard_path(@project, @dashboard),
class: 'icon icon-edit'
- unless Redmine::Plugin.installed? 'redmine_reporting'
= bookmark_link @project

View File

@ -1,11 +1,10 @@
/ Some plugins use @news (e.g. redmine_wysiwyg_editor), to detect news
- @news = nil
.contextual
- if User.current.allowed_to? :save_dashboards, nil, global: true
- if @dashboard&.editable?
= link_to l(:button_dashboard_edit),
edit_dashboard_path(@dashboard),
class: 'icon icon-edit'
- if User.current.allowed_to?(:save_dashboards, nil, global: true) && @dashboard&.editable?
= link_to l(:button_dashboard_edit),
edit_dashboard_path(@dashboard),
class: 'icon icon-edit'
= call_hook :view_welcome_contextual_links