File tree 5 files changed +20
-14
lines changed
5 files changed +20
-14
lines changed Original file line number Diff line number Diff line change 77
77
depends=include.depends
78
78
checked=include.checked
79
79
action=include.action
80
- class=include.class %}
80
+ class=include.class
81
+ data=include.data %}
81
82
{% endif %}
Original file line number Diff line number Diff line change 6
6
attachments
7
7
{% if item.depends %}pat-depends{% endif %} ">
8
8
< legend > {% include patterns/form-field-label-conditional.html %}</ legend >
9
- {% include patterns/sortable-files.html %}
9
+ {% include patterns/sortable-files.html
10
+ data=include.data %}
10
11
< div
11
12
class ="pat-button-bar ">
12
13
< label
17
18
target: #attachment-list "
18
19
{% endif %}
19
20
class ="
21
+ pat-button
20
22
{% include patterns/form-field-auto-save-classes %}
21
23
file-upload-button ">
22
24
{% include patterns/i18n id="patterns.upload_files_imp" %}
Original file line number Diff line number Diff line change 17
17
< input
18
18
name ="location "
19
19
type ="text "
20
- value ="{% if page.event_location %}{{ page.event_location }}{% else %}Frankfurt Star Alliance head office{% endif %} ">
20
+ value ="{% if page.event_location %}{{ page.event_location }}{% else %}Head office, Amsterdam {% endif %} ">
21
21
< iframe
22
22
id ="{{ this_preview_id }} "
23
23
width ="100% "
24
24
height ="240 "
25
- src ="https://maps.google.com/maps?q={% if page.event_location %}{{ page.event_location }}{% else %}Frankfurt Star Alliance head office{% endif %}&t=&z=13&ie=UTF8&iwloc=&output=embed "
25
+ src ="https://maps.google.com/maps?q={% if page.event_location %}{{ page.event_location }}{% else %}Head office, Amsterdam {% endif %}&t=&z=13&ie=UTF8&iwloc=&output=embed "
26
26
frameborder ="0 "
27
27
scrolling ="no "
28
28
marginheight ="0 "
36
36
< input
37
37
name ="location "
38
38
type ="text "
39
- value ="{% if page.event_location %}{{ page.event_location }}{% else %}Frankfurt head office {% endif %} ">
39
+ value ="{% if page.event_location %}{{ page.event_location }}{% else %}Amsterdam {% endif %} ">
40
40
{% endif %}
41
41
</ fieldset >
Original file line number Diff line number Diff line change 72
72
depends=item.depends
73
73
checked=item.checked
74
74
action=item.action
75
- class=item.class %}
75
+ class=item.class
76
+ data=item.data %}
76
77
{% endfor %}
77
78
{% elsif include.src contains 'page.' %}
78
79
{% for item in page[src] %}
94
95
depends=item.depends
95
96
checked=item.checked
96
97
action=item.action
97
- class=item.class %}
98
+ class=item.class
99
+ data=item.data %}
98
100
{% endfor %}
99
101
{% else %}
100
102
{% for item in site.data[src] %}
116
118
depends=item.depends
117
119
checked=item.checked
118
120
action=item.action
119
- class=item.class %}
121
+ class=item.class
122
+ data=item.data %}
120
123
{% endfor %}
121
124
{% endif %}
122
125
<!-- </slot> -->
Original file line number Diff line number Diff line change 1
1
{%- if include.source -%}
2
- {%- assign this_source = include.source -%}
2
+ {%- assign this_source = include.data -%}
3
3
{%- else -%}
4
- {%- assign this_source = ' page.attachments' -%}
4
+ {%- assign this_source = page.attachments -%}
5
5
{%- endif -%}
6
6
< ol
7
7
id ="{{ include.id }} "
12
12
title-summary "
13
13
data-pat-sortable ="
14
14
selector: .sortable-item ">
15
- {% for item in this_source %}
15
+ {% for attachment in this_source %}
16
16
< li
17
17
class ="
18
18
clone
26
26
item-info ">
27
27
< h1
28
28
class ="title ">
29
- {{ item .title }}
29
+ {{ attachment .title | default: 'Title' }}
30
30
</ h1 >
31
- {% if item .summary %}
31
+ {% if attachment .summary %}
32
32
< div
33
33
class ="
34
34
pat-rich
35
35
description ">
36
- {{ item .summary }}
36
+ {{ attachment .summary }}
37
37
</ div >
38
38
{% endif %}
39
39
</ article >
You can’t perform that action at this time.
0 commit comments