blob: b45b8b1de384efa450eea7bd664a5c9a2262381f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
module SystemNoteHelper
def icon_for_system_note(note)
icon_name =
case note.system_note_metadata.action
when 'commit'
'icon_commit'
when 'merge'
'icon_merge'
when 'merged'
'icon_merged'
when 'opened'
'icon_status_open'
when 'closed'
'icon_status_closed'
when 'time_tracking'
'icon_timer'
when 'assignee'
'icon_user'
when 'title'
'icon_pencil'
when 'task'
'icon_check_square_o'
when 'label'
'icon_tags'
when 'cross_reference'
'icon_random'
when 'branch'
'icon_code_fork'
when 'confidential'
'icon_eye_slash'
when 'visible'
'icon_eye'
when 'milestone'
'icon_clock_o'
when 'moved'
'icon_arrow-circle-o-right'
else
'icon_diamond'
end
custom_icon(icon_name)
end
end
|