Fix conding standards
This commit is contained in:
parent
22dddfdca4
commit
80b5b9b80a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user