Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Roman Karwacik
website
Commits
dd0f9f1b
Commit
dd0f9f1b
authored
Jan 29, 2018
by
Andreas Valder
Browse files
have to use double escaping in tooltips
parent
e844b21e
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/macros.html
View file @
dd0f9f1b
...
...
@@ -298,7 +298,7 @@ $('#embedcodebtn').popover(
{% macro moderator_editor (path,value,reload=false) %}
{% if ismod() %}
<span
class=
"moderator_editor"
data-path=
"{{path|join('.')}}"
data-reload=
"{{ reload|int }}"
>
<a
class=
"moderator_editor_sign btn btn-default"
title=
"{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new|truncate(60)|forceescape }}{% endfor %}"
data-toggle=
"tooltip"
tabindex=
"0"
style=
"padding: 3px; margin-right: 5px;"
>
<a
class=
"moderator_editor_sign btn btn-default"
title=
"{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new|truncate(60)|forceescape
|forceescape
}}{% endfor %}"
data-toggle=
"tooltip"
tabindex=
"0"
style=
"padding: 3px; margin-right: 5px;"
>
<span
class=
"glyphicon glyphicon-pencil"
></span>
</a>
<span
class=
"moderator_editor_value"
>
{{ value|fixnl|safe }}
</span>
...
...
@@ -310,7 +310,7 @@ $('#embedcodebtn').popover(
{% macro moderator_checkbox (path,value) %}
{% if ismod() %}
<input
title=
"{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new|truncate(60)|forceescape }}{% endfor %}"
data-toggle=
"tooltip"
type=
"checkbox"
data-path=
"{{path|join('.')}}"
{%
if
value
%}
checked
{%
endif
%}
onchange=
"moderator.editor.changeboxclick(this)"
/>
<input
title=
"{{path|join('.')}}{{ path|join('.')|getfielddescription }}{% for l in path|join('.')|getfieldchangelog %}<br>{% if (l.who != l.who|string) %}{{ l.name }} ({{ l.who }}){% else %}{{ l.who }}{%endif%} <{{ l.when }}>: {{ l.value_new|truncate(60)|forceescape
|forceescape
}}{% endfor %}"
data-toggle=
"tooltip"
type=
"checkbox"
data-path=
"{{path|join('.')}}"
{%
if
value
%}
checked
{%
endif
%}
onchange=
"moderator.editor.changeboxclick(this)"
/>
{% endif %}
{% endmacro %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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