Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving language selection dropdown to a partial for use elsewhere
- Loading branch information
Kieran Pilkington
committed
May 29, 2009
1 parent
f3a5f91
commit de005f8
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div id="footer_language_selection" class="footer_div"> | ||
<% if User.language_choices.keys.size > 1 %> | ||
<% form_tag do %> | ||
<div class="form-element"> | ||
<noscript><label><%=t 'layouts.application.language' %></label></noscript> | ||
<%= locale_dropdown(nil, { :default => I18n.locale, :pre_text => t('layouts.application.choose_language') }) -%> | ||
<noscript><%= submit_tag t('layouts.application.change_language') %></noscript> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters