Project

General

Profile

Feature #44436 » 0001-Change-the-My-page-block-sort-handle-icon-to-arrows-.patch

Mizuki ISHIKAWA, 2026-09-09 03:04

View differences:

app/assets/images/icons.svg
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--arrow-right">
<path d="M4 9h8v-3.586a1 1 0 0 1 1.707 -.707l6.586 6.586a1 1 0 0 1 0 1.414l-6.586 6.586a1 1 0 0 1 -1.707 -.707v-3.586h-8a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--arrows-move">
<path d="M18 9l3 3l-3 3"/>
<path d="M15 12h6"/>
<path d="M6 9l-3 3l3 3"/>
<path d="M3 12h6"/>
<path d="M9 18l3 3l3 -3"/>
<path d="M12 15v6"/>
<path d="M15 6l-3 -3l-3 3"/>
<path d="M12 3v6"/>
</symbol>
<symbol viewBox="0 0 24 24" stroke-linecap="round" stroke-linejoin="round" id="icon--attachment">
<path d="M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5"/>
</symbol>
app/helpers/my_helper.rb
def render_block(block, user)
content = render_block_content(block, user)
if content.present?
handle = content_tag('span', sprite_icon('reorder', ''), :class => 'icon-only icon-sort-handle sort-handle', :title => l(:button_move))
handle = content_tag('span', sprite_icon('arrows-move', ''), :class => 'icon-only icon-sort-handle sort-handle', :title => l(:button_move))
close = link_to(sprite_icon('close', l(:button_delete)),
{:action => "remove_block", :block => block},
:remote => true, :method => 'post',
config/icon_source.yml
svg: chart-bar
- name: reorder
svg: menu-order
- name: arrows-move
svg: arrows-move
- name: close
svg: square-x
- name: checked
(3-3/3)