-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtool-tiles.html
105 lines (105 loc) · 4.76 KB
/
tool-tiles.html
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<div
class="
tool-tiles
pat-masonry"
data-pat-masonry="
column-width: .grid-sizer;
gutter: 0;
item-selector: .tool-tile">
<div
class="grid-sizer"></div>
{% for item in site.tools %}
{% if item.layout == 'apps/assessments/tool' %}
<div
class="tool-tile">
<a
class="pat-inject"
data-pat-inject="history: record"
href="{{ item.url }}#document-body-{{ layout.application }}">
<figure
class="tool-icon">
{% if item.icon %}
<img
alt=""
src="{{ item.icon }}">
{% endif %}
</figure>
</a>
<div
class="tool-info">
<h2
class="tool-title">
<a
class="pat-inject"
data-pat-inject="history: record"
href="{{ item.url }}#document-body-{{ layout.application }}">
{{ item.title }}
</a>
</h2>
{% if item.tags %}
<p
class="tool-tags tag-cloud">
{% for tag in item.tags %}
{% if include.mode == "edit" %}
<span
class="tag">{{ tag }}</span>
{% else %}
<a
href="/tools/"
data-pat-inject="history: record; source: #application-content; target: #application-content && source: #assessments-toolbar-view-options; target: #assessments-toolbar-view-options"
class="tag pat-inject">{{ tag }}</a>
{% endif %}
{% endfor %}
</p>
{% endif %}
{% if item.summary %}
<section
class="summary">
<p>
{{ item.summary }}
</p>
</section>
{% endif %}
{% if include.mode == "edit" %}
<div
class="button-bar">
<a
href="{{ item.url | replace: 'index','edit' }}#application-body-{{ layout.application }}"
data-pat-inject="
history: record"
data-pat-switch="
selector: #application-body-{{ layout.application }};
remove: sidebar-left-*;
add: sidebar-left-open"
class="default pat-button pat-inject pat-switch">{%- include patterns/i18n id="label_edit_imp" -%}</a>
<button
type="submit"
name="tool-button"
value="test-tool"
class="pat-button">{%- include patterns/i18n id="label_test_imp" -%}</button>
<!-- <a
class= pat-button pat-inject"
data-pat-inject="history: record"
href="{{ item.url }}#content">Information</a> -->
</div>
{% else %}
<form
class="button-bar pat-inject"
action="/preparation#main"
data-pat-inject="history: record">
<button
type="submit"
name="tool-button"
value="edit-tool"
class="default pat-button">{%- include patterns/i18n id="label_start_ra" -%}</button>
<a
class= pat-button pat-inject"
data-pat-inject="history: record"
href="{{ item.url }}#content">Information</a>
</form>
{% endif %}
</div>
</div>
{% endif %}
{% endfor %}
</div>