add svg list-detail

This commit is contained in:
Alexander Meindl 2024-10-18 13:59:09 +02:00
parent 26c53e3358
commit a8cbfe6e2b
3 changed files with 14 additions and 8 deletions

View File

@ -1,5 +1,6 @@
table.list.issue-report.values
= title_with_fontawesome l(:label_table_of_values), 'far fa-list-alt', 'caption'
caption
= svg_icon_tag 'list-details', label: :label_table_of_values, size: 16
thead
tr
th = @chart[:label]

View File

@ -137,6 +137,18 @@
<path d="M11 18l9 0" />
</g>
</symbol>
<symbol viewBox="0 0 24 24" id="icon--list-details">
<!-- list-details -->
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M13 5h8" />
<path d="M13 9h5" />
<path d="M13 15h8" />
<path d="M13 19h5" />
<path d="M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
<path d="M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z" />
</g>
</symbol>
<symbol viewBox="0 0 24 24" id="icon--issue-add">
<!-- code-plus -->
<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2">

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -197,13 +197,6 @@ module Additionals
RedminePluginKit.textarea_cols text, min:, max:
end
def title_with_fontawesome(title, symbole, wrapper = 'span')
tag.send wrapper do
concat tag.i class: "#{symbole} for-fa-title", 'aria-hidden': 'true'
concat title
end
end
def format_yes(value, lowercase: false)
if RedminePluginKit.true? value
lowercase ? l(:general_text_yes) : l(:general_text_Yes)