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 +1,5 @@
- if User.current.logged? && @issue.editable? && Additionals.setting?(:issue_assign_to_me) && \
@issue.assigned_to_id != User.current.id && @project.assignable_users.detect { |u| u.id == User.current.id }
= link_to(font_awesome_icon('far_user-circle', post_text: l(:button_assign_to_me)),
= link_to font_awesome_icon('far_user-circle', post_text: l(:button_assign_to_me)),
issue_assign_to_me_path(@issue), method: :put,
class: 'assign-to-me')
class: 'assign-to-me'

View file

@ -0,0 +1,2 @@
- if User.current.allowed_to?(:log_time, @project) && @issue.log_time_allowed?
= link_to l(:button_log_time), new_issue_time_entry_path(@issue), class: 'icon icon-time-add'

View file

@ -17,5 +17,3 @@
= link_to(font_awesome_icon('far_caret-square-left', post_text: s.name),
issue_change_status_path(@issue, new_status_id: s.id),
method: :put, class: "status-switch status-#{s.id}")
h3 = l(:label_planning)

View file

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

View file

@ -1,9 +1,9 @@
- if show_issue_change_author?(issue) && issue.safe_attribute?('author_id')
- author_options = issue_author_options_for_select(issue.project, issue)
- author_options = author_options_for_select(issue.project, issue)
- if author_options.present?
p#change_author
= form.label_for_field :author_id
= link_to_function content_tag(:span, l(:button_edit), class: 'icon icon-edit'), '$(this).hide(); $("#issue_author_id").show()'
= link_to_function tag.span(l(:button_edit), class: 'icon icon-edit'), '$(this).hide(); $("#issue_author_id").show()'
= form.select :author_id, author_options, { required: true, no_label: true }, style: 'display: none'
javascript:
$('#change_author').insertBefore($('#issue_tracker_id').parent());

View file

@ -1,7 +1,7 @@
- if @project && User.current.allowed_to?(:edit_issue_author, @project)
- author_options = issue_author_options_for_select(@project)
- author_options = author_options_for_select(@project)
- if author_options.present?
p#change_author
= label_tag('issue[author_id]', l(:field_author))
= select_tag('issue[author_id]',
content_tag('option', l(:label_no_change_option), value: '') + author_options)
tag.option(l(:label_no_change_option), value: '') + author_options)

View file

@ -1,3 +1,3 @@
- if @issue.new_ticket_message.present?
.nodata.nodata-left
= textilizable(@issue.new_ticket_message).html_safe
= textilizable @issue, :new_ticket_message, inline_attachments: false