Commit 50057773 authored by Milan's avatar Milan
Browse files

application: make language switch a simple dropdown menu

parent 0580619b
......@@ -87,26 +87,14 @@
<%= yield(:license) %>
<%= yield(:impressum) %>
<li><a id="footer_nav" class="footer_lang" data-target="#lang" data-toggle="modal"><i class="glyphicon glyphicon-globe"></i> toggle language</a></li>
<div class="modal fade" id="lang" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body container-fluid">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<div style="text-align:center;">
<h2>available languages</h2>
<div class="col-md-6">
<%= link_to "German", change_locale_path(:de), :class => "btn btn-default" %>
<div class="col-md-6">
<%= link_to "English", change_locale_path(:en), :class => "btn btn-default" %>
<div class="dropdown dropup pull-right">
<a id="footer_nav" class="footer_lang dropdown-toggle" data-toggle="dropdown"><i class="glyphicon glyphicon-globe"></i> toggle language</a>
<ul class="dropdown-menu" role="menu">
<li><%= link_to "German", change_locale_path(:de), :class => "btn btn-default" %></li>
<li><%= link_to "English", change_locale_path(:en), :class => "btn btn-default" %></li>
<script src="//"></script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment