1
0
mirror of https://gitnet.fr/deblan/gist.git synced 2021-08-14 08:30:49 +02:00

Encrypted code: links on flags

This commit is contained in:
Simon Vieille 2015-05-11 21:15:00 +02:00
parent 5771fdb568
commit 29b72a61de
2 changed files with 6 additions and 2 deletions

View File

@ -44,10 +44,10 @@
</ul>
{% block langs %}
<p class="navbar-text navbar-right">
<a class="btn btn-xs" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({_locale: 'en'})) }}">
<a class="lang btn btn-xs" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({_locale: 'en'})) }}">
<span class="flag-icon flag-icon-gb"></span>
</a>
<a class="btn btn-xs" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({_locale: 'fr'})) }}">
<a class="lang btn btn-xs" href="{{ path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({_locale: 'fr'})) }}">
<span class="flag-icon flag-icon-fr"></span>
</a>
</p>

View File

@ -127,6 +127,10 @@ var viewerEvents = function() {
SyntaxHighlighter.all();
to = ' data-key="#key=' + key + '" ';
$('.lang').each(function() {
$(this).attr('href', $(this).attr('href') + '#key=' + key);
});
}
if ($embedInput.length) {