Previews

No matching results.

x
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
<div class="attributes-group">
<div class="attributes-group--header">
<div class="attributes-group--header-container">
<h3 class="attributes-group--header-text">A Title</h3>
</div>
</div>
<div class="attributes-group--attributes">
<div class="attributes-key-value">
<div class="attributes-key-value--key">Some key</div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span>A value</span>
</div>
</div>
</div>
<div class="attributes-key-value">
<div class="attributes-key-value--key">With icons</div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span><i class="icon-checkmark" aria-hidden="true"></i></span>
</div>
</div>
</div>
<div class="attributes-key-value">
<div class="attributes-key-value--key">With HTML</div>
<div class="attributes-key-value--value-container">
<div class="attributes-key-value--value -text">
<span><a href="https://www.openproject.org">OpenProject homepage</a></span>
</div>
</div>
</div>
</div>
<div class="attributes-group--content">
</div>
</div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<%= render(AttributeGroups::AttributeGroupComponent.new) do |component|
component.with_header(title: "A Title")
component.with_attribute(
key: "Some key",
value: "A value"
)
component.with_attribute(
key: "With icons",
value: op_icon("icon-checkmark")
)
component.with_attribute(
key: "With HTML",
value: link_to("OpenProject homepage", "https://www.openproject.org")
)
end %>