Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Illuna-Minecraft
illuna-minecraft.tk
Commits
50057773
Commit
50057773
authored
Sep 02, 2016
by
Milan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
application: make language switch a simple dropdown menu
parent
0580619b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
19 deletions
+7
-19
app/views/layouts/application.html.erb
app/views/layouts/application.html.erb
+7
-19
No files found.
app/views/layouts/application.html.erb
View file @
50057773
...
...
@@ -87,26 +87,14 @@
<%=
yield
(
:license
)
%>
<li>
|
</li>
<%=
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>
</ul>
<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"
>
×
</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>
<div
class=
"col-md-6"
>
<%=
link_to
"English"
,
change_locale_path
(
:en
),
:class
=>
"btn btn-default"
%>
</div>
</div>
</div>
</div>
<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>
</ul>
</div>
</
div
>
</
ul
>
</div>
</footer>
<script
src=
"//assets.illuna-minetest.tk/js/jquery.min.js"
></script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment