##// END OF EJS Templates
i18n: replaced fragile extraction of JS translations from an _TM variable....
i18n: replaced fragile extraction of JS translations from an _TM variable. We replaced it with similar to babel functions _gettext, and _ngettext, that will prevent UI from breaking in case of untranslated strings. This also will allow to use babel built in extractors to fetch the translations stored inside html and JS.

File last commit:

r1:854a839a default
r325:9f2e29d4 stable
Show More
flash_msg.html
16 lines | 487 B | text/html | HtmlLexer
<div class="flash_msg">
<% messages = h.flash.pop_messages() %>
% if messages:
% for message in messages:
<div class="alert alert-dismissable alert-${message.category}">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
${message}
</div>
% endfor
% endif
<script>
if (typeof jQuery != 'undefined') {
$(".alert").alert();
}
</script>
</div>