# HG changeset patch # User bsw # Date 1613147160 -3600 # Node ID 12a73990db76e5b722f717158264d4a4da441c5a # Parent 4188405c242549e32838542dc42b882986f7c5e8 Added icons to context links in issue listing diff -r 4188405c2425 -r 12a73990db76 app/main/issue/_list.lua --- a/app/main/issue/_list.lua Thu Feb 11 15:48:02 2021 +0100 +++ b/app/main/issue/_list.lua Fri Feb 12 17:26:00 2021 +0100 @@ -164,8 +164,8 @@ discussion = "question_answer", verification = "find_in_page", voting = "mail", - finished_with_winner = "gavel", - finished_without_winner = "gavel", + finished_with_winner = "emoji_events", + finished_without_winner = "do_not_disturb", canceled = "clear" } event_icon = event_icons_map[issue.state] or event_icons_map["canceled"] @@ -203,23 +203,27 @@ ui.container{ attr = { class = "contextlinks" }, content = function() if not (config.single_unit_id and config.single_area_id) then if not config.single_unit_id then - slot.put ( " " ) + ui.icon("group") + slot.put(" ") ui.link{ module = "index", view = "index", params = { unit = issue.area.unit_id }, - attr = { class = "unit" }, content = issue.area.unit.name - } + attr = { class = "unit" }, content = issue.area.unit.name } end if not config.single_area_id then if not config.single_unit_id then - slot.put(" » ") + slot.put("     ") end + ui.icon("category") + slot.put(" ") ui.link{ module = "index", view = "index", params = { unit = issue.area.unit_id, area = issue.area_id }, attr = { class = "area" }, content = issue.area.name } end end - slot.put(" » ") + slot.put("     ") + ui.icon("gavel") + slot.put(" ") ui.link{ module = "issue", view = "show", id = issue.id, attr = { class = "issue" }, content = issue.name