Patch #33437: Add missing .icon classes to links in context menu
右クリックで表示されるコンテキストメニュー内のステータスやトラッカーで、現在選択されている項目に表示されるチェックマークのアイコンに icon クラスがセットされていない件を修正するパッチ。
もともとコンテキストメニューのアイコンにはすべて icon クラスが設定されていなかったが、Patch #28605 (Redmine 4.1.0) で修正された。そのときの修正漏れと考えられる。
icon-checked を見ている既存のテストを以下のように変更して追加した icon クラスもチェックするようにした上でコミット (r19778)。
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index 94417bffe..1e926c29d 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -155,7 +155,7 @@ class ContextMenusControllerTest < Redmine::ControllerTest
assert_select 'a[href="#"]', :text => 'List'
assert_select 'ul' do
assert_select 'a', 3
- assert_select 'a.icon-checked', :text => 'Bar'
+ assert_select 'a.icon.icon-checked', :text => 'Bar'
end
end
end
RedMica 公式サイト用のテーマ探し
そろそろRedMicaの公式サイトを作りたい。Hugoで作ろうと思い、 https://themes.gohugo.io/ でテーマを探している。