Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Miriam Fougeras
howto-cards
Commits
c42bfbb6
Commit
c42bfbb6
authored
Dec 11, 2020
by
Jacek Lebioda
Browse files
Merge branch 'develop' into 'master'
Develop See merge request
!222
parents
7fff1b1f
ee250ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
_includes/search.html
View file @
c42bfbb6
...
...
@@ -54,7 +54,7 @@
window
.
content
=
{
{
%
for
card
in
the_cards
%
}
"
{{ card.url | slugify }}
"
:
{
"
title
"
:
"
{{ card.shortcut | xml_escape }}
"
,
"
content
"
:
{{
card
.
content
|
strip_html
|
strip_newlines
|
jsonify
}},
"
content
"
:
{{
card
.
content
|
strip_html
|
strip_newlines
|
truncate
:
150
|
jsonify
}},
"
url
"
:
"
{{ card.url | xml_escape | relative_url }}
"
}
{
%
unless
forloop
.
last
%
},{
%
endunless
%
}
{
%
endfor
%
}
};
...
...
@@ -68,7 +68,7 @@
for
(
var
i
=
0
;
i
<
results
.
length
;
i
++
)
{
var
node
=
document
.
createElement
(
"
tr
"
);
node
.
innerHTML
=
construct_cell
(
prettify
(
window
.
content
[
results
[
i
].
ref
].
title
),
window
.
content
[
results
[
i
].
ref
].
content
.
substring
(
0
,
1
2
5
)
+
'
...
'
,
window
.
content
[
results
[
i
].
ref
].
content
.
substring
(
0
,
15
0
)
+
'
...
'
,
window
.
content
[
results
[
i
].
ref
].
url
);
el_table_body
.
appendChild
(
node
);
}
...
...
@@ -84,4 +84,4 @@
el_tr_placeholder
.
style
.
display
=
"
none
"
;
})
</script>
\ No newline at end of file
</script>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment