Actualizar plugin Additionals a 3.0.0
This commit is contained in:
parent
3d976f1b3b
commit
a26f5567af
399 changed files with 70374 additions and 4093 deletions
33
plugins/additionals/app/models/dashboard_content_welcome.rb
Normal file
33
plugins/additionals/app/models/dashboard_content_welcome.rb
Normal file
|
@ -0,0 +1,33 @@
|
|||
class DashboardContentWelcome < DashboardContent
|
||||
TYPE_NAME = 'WelcomeDashboard'.freeze
|
||||
|
||||
def block_definitions
|
||||
blocks = super
|
||||
|
||||
# legacy_left or legacy_right should not be moved to DashboardContent,
|
||||
# because DashboardContent is used for areas in other plugins
|
||||
blocks['legacy_left'] = { label: l(:label_dashboard_legacy_left),
|
||||
no_settings: true }
|
||||
|
||||
blocks['legacy_right'] = { label: l(:label_dashboard_legacy_right),
|
||||
no_settings: true }
|
||||
|
||||
blocks['welcome'] = { label: l(:setting_welcome_text),
|
||||
no_settings: true,
|
||||
partial: 'dashboards/blocks/welcome' }
|
||||
|
||||
blocks['activity'] = { label: l(:label_activity),
|
||||
async: { data_method: 'activity_dashboard_data',
|
||||
partial: 'dashboards/blocks/activity' } }
|
||||
|
||||
blocks
|
||||
end
|
||||
|
||||
# Returns the default layout for a new dashboard
|
||||
def default_layout
|
||||
{
|
||||
'left' => %w[welcome legacy_left],
|
||||
'right' => ['legacy_right']
|
||||
}
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue