Skip to content

Commit

Permalink
use svg for author edit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Nov 26, 2024
1 parent faff439 commit 8ae9610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/issues/_change_author.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
- if author_options.present?
p#change_author
= form.label_for_field :author_id
= link_to_function tag.span(l(:button_edit), class: 'icon icon-edit'), '$(this).hide(); $("#issue_author_id").show()'
= link_to_function svg_icon_tag('edit', label: :button_edit, wrapper: :span, plugin: ''),
'$(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());

0 comments on commit 8ae9610

Please sign in to comment.