зеркало из https://github.com/mozilla/buddyup.git
[Bug 1201151] Mark html strings in templates as safe.
This commit is contained in:
Родитель
c268b4bc9a
Коммит
0a80c7d4ab
|
@ -21,7 +21,7 @@ module.exports = function(grunt) {
|
|||
},
|
||||
watch: {
|
||||
scripts: {
|
||||
files: ['js/app.js', 'app/views/*'],
|
||||
files: ['js/app.js', 'app/views/**'],
|
||||
tasks: ['nunjucks']
|
||||
}
|
||||
},
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</header>
|
||||
<main id="thread-scroll" class="fit scroll">
|
||||
<section id="thread-introduction" class="StartAskingMessage vbox">
|
||||
<span>{{ _('We can help<br>Ask us anything!') }}</span>
|
||||
<span>{{ _('We can help<br>Ask us anything!')|safe }}</span>
|
||||
</section>
|
||||
<section id="suggestions" class="hide">
|
||||
<ul>
|
||||
|
@ -24,7 +24,7 @@
|
|||
</main>
|
||||
<footer class="QuestionFooter">
|
||||
<form id="question_form" class="hbox">
|
||||
<textarea id="question_field" class="QuestionField" rows="1" placeholder="{{ _('Write your message…') }}"></textarea>
|
||||
<textarea id="question_field" class="QuestionField" rows="1" placeholder="{{ _('Write your message…') }}"></textarea>
|
||||
<div class="QuestionSubmitButton">
|
||||
<a href="#" role="button" data-icon="send" id="question_submit_button" class="QuestionSubmitButton-click-area"></a>
|
||||
</div>
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
</section>
|
||||
<main id="unsupported_locale_container" class="UnsupportedLocaleMessage fit scroll">
|
||||
<p>
|
||||
{{ _('BuddyUp currently doesn\'t support "<span id="language"></span>".') }}
|
||||
{{ _('BuddyUp currently doesn\'t support "<span id="language"></span>".')|safe }}
|
||||
</p>
|
||||
<p>
|
||||
{{ _('Please ask your questions in English, or go to <a href="http://support.mozilla.org">http://support.mozilla.org</a> for more help.') }}
|
||||
{{ _('Please ask your questions in English, or go to <a href="http://support.mozilla.org">http://support.mozilla.org</a> for more help.')|safe }}
|
||||
</p>
|
||||
<div class="gaia-footer gaia-footer--pinned">
|
||||
<button id="continue_button">{{ _('Continue') }}</button>
|
||||
|
|
Загрузка…
Ссылка в новой задаче