added dropdown menu

This commit is contained in:
Sai
2014-04-11 12:34:55 +02:00
parent 99492e9380
commit c226eb8613
3 changed files with 15 additions and 2 deletions

View File

@@ -23,12 +23,23 @@
<%= link_to 'Admin' , config_path%> <%= link_to 'Admin' , config_path%>
</li> </li>
</ul> </ul>
<span class="pull-right"><%if I18n.locale == :en %> <ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><%= I18n.t('sprache',:scope=>'home')%><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%> </li>
<li><%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> </li>
</ul>
</li>
</ul>
<!--<span class="pull-right"><%if I18n.locale == :en %>
<%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%> <%= link_to image_tag("/flaggen/png/at.png") + " Deutsch" ,switch_locale_url(:de)%>
<% elsif I18n.locale == :de %> <% elsif I18n.locale == :de %>
<%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%> <%= link_to image_tag("/flaggen/png/gb.png") + " English" ,switch_locale_url(:en)%>
<%end %> <%end %>
</span> </span>-->
</div> </div>
</div> </div>

View File

@@ -12,6 +12,7 @@ de:
back: "Zurück" back: "Zurück"
sure_del: "Sicher endgültig löschen?" sure_del: "Sicher endgültig löschen?"
home: home:
sprache: "Deutsch"
kontakt: "Kontakt" kontakt: "Kontakt"
mtitle: "Menu" mtitle: "Menu"
login: "FET Login" login: "FET Login"

View File

@@ -8,6 +8,7 @@ en:
edit: "Edit" edit: "Edit"
home: home:
sprache: "English"
mtitle: "Menu" mtitle: "Menu"
hallobeiderfet: "This is the page of Fachschaft Elektrotechnik at TU Wien" hallobeiderfet: "This is the page of Fachschaft Elektrotechnik at TU Wien"
home: "Home" home: "Home"