Actualizar plugin Additionals a 3.0.0

This commit is contained in:
Manuel Cillero 2020-11-22 21:30:25 +01:00
parent 3d976f1b3b
commit a26f5567af
399 changed files with 70374 additions and 4093 deletions

View file

@ -1,5 +0,0 @@
- overview_bottom = Additionals.settings[:overview_bottom]
- if overview_bottom.present?
.clear-both
.overview-bottom.wiki.box
= textilizable(overview_bottom)

View file

@ -1,5 +0,0 @@
- unless Additionals.setting?(:remove_news)
.news.box
h3 = l(:label_news_latest)
= render partial: 'news/news', collection: @news
= link_to l(:label_news_view_all), news_index_path

View file

@ -1,4 +0,0 @@
- overview_right = Additionals.settings[:overview_right]
- if overview_right.present?
.overview-right.wiki.box
= textilizable(overview_right)

View file

@ -1,4 +0,0 @@
- overview_top = Additionals.settings[:overview_top]
- if overview_top.present?
.overview-top.wiki.box
= textilizable(overview_top)

View file

@ -0,0 +1,6 @@
- if Additionals.setting(:global_sidebar).present?
br
.sidebar-additionals
= textilizable Additionals.setting(:global_sidebar)
= render_sidebar_dashboards @dashboard

View file

@ -0,0 +1,54 @@
/ 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) && @dashboard&.editable?
= link_to l(:button_dashboard_edit),
edit_dashboard_path(@dashboard),
class: 'icon icon-edit'
= call_hook :view_welcome_contextual_links
- if @dashboard&.editable?
= form_tag(add_block_dashboard_path(@dashboard), remote: true, id: 'block-form', authenticity_token: true) do
= dashboard_block_select_tag @dashboard
= actions_dropdown do
- if User.current.allowed_to? :save_dashboards, nil, global: true
= link_to l(:label_new_dashboard),
new_dashboard_path,
class: 'icon icon-add new-additionals-dashboard'
- if @dashboard&.destroyable?
= delete_dashboard_link dashboard_path(@dashboard),
class: 'icon icon-del'
= sidebar_action_toggle @dashboard_sidebar, @dashboard
- unless @dashboard_sidebar
= render_dashboard_actionlist @dashboard
= call_hook :view_welcome_show_actions_dropdown
h2 = welcome_overview_name @dashboard
= call_hook :view_welcome_index_top
= render partial: 'common/dashboard', locals: { dashboard: @dashboard }
= call_hook :view_welcome_index_bottom
- if @dashboard_sidebar
- content_for :sidebar do
= render partial: 'sidebar'
= call_hook :view_welcome_show_sidebar_bottom
- content_for :header_tags do
= auto_discovery_link_tag :atom,
{ controller: 'news',
action: 'index',
key: User.current.rss_key,
format: 'atom' },
title: "#{Setting.app_title}: #{l :label_news_latest}"
= auto_discovery_link_tag :atom,
{ controller: 'activities',
action: 'index',
key: User.current.rss_key,
format: 'atom' },
title: "#{Setting.app_title}: #{l :label_activity}"