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:
parent
5771fdb568
commit
29b72a61de
@ -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>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user