Nuevo plugin Additionals 2.0.20

This commit is contained in:
Manuel Cillero 2019-06-16 12:53:09 +02:00
parent a2a901b71b
commit 93e1e28683
354 changed files with 40514 additions and 0 deletions

View file

@ -0,0 +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)),
issue_assign_to_me_path(@issue), method: :put,
class: 'assign-to-me')

View file

@ -0,0 +1,21 @@
- if Additionals.setting?(:issue_change_status_in_sidebar) && \
@issue && \
User.current.allowed_to?(:edit_issues, @project) && \
(!@issue.closed? || User.current.allowed_to?(:edit_closed_issues, @project))
- statuses = @issue.sidbar_change_status_allowed_to(User.current)
- if statuses.present?
h3 = l(:label_issue_change_status)
ul.issue-status-change-sidebar
- statuses.each do |s|
- if s != @issue.status
li
- if s.is_closed?
= link_to(font_awesome_icon('fas_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}")
- else
= 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,9 @@
- if show_issue_change_author?(issue) && issue.safe_attribute?('author_id')
- author_options = issue_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()'
= form.select :author_id, author_options, { required: true, no_label: true }, style: 'display: none'
javascript:
$('#change_author').insertBefore($('#issue_tracker_id').parent());

View file

@ -0,0 +1,7 @@
- if @project && User.current.allowed_to?(:edit_issue_author, @project)
- author_options = issue_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)

View file

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