-
Notifications
You must be signed in to change notification settings - Fork 434
/
component.html.erb
55 lines (47 loc) · 1.25 KB
/
component.html.erb
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
45
46
47
48
49
50
51
52
53
54
55
<div class="list list-wrapper divide-x-2">
<% @field.each do |item| %>
<div class="list-item cursor-pointer"
<% if item["action"] %>
data-cy="action-<%= item["id"] %>"
data-action="<%= action_method(item["action"]) %>"
data-field-json="<%= item.to_json %>"
<% end %>
>
<div
class="list-item-b"
data-action--nono="click->definitions-renderer#dispatchAction">
<div class="content">
<div class="avatar-content">
<!--{avatar && avatar}-->
<% if item["image"] %>
<img width="55" src="<%= item["image"] %>" />
<% end %>
<div class="list-item-wrapper">
<div>
<div class="list-item-primary">
<% if item["title"] %>
<%= item["title"] %>
<% end %>
</div>
<div class="list-item-secondary">
<% if item["subtitle"] %>
<%= item["subtitle"] %>
<% end %>
</div>
</div>
<div class="list-item-terciary">
<div>
<div class="terciary-text">
<% if item["tertiary_text"] %>
<%= item["tertiary_text"] %>
<% end %>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<% end %>
</div>