Sha256: 638ad58638a1bee565a952a4bcc2ed1319ea133a6fedd229787c1808f538317a

Contents?: true

Size: 1.34 KB

Versions: 2

Compression:

Stored size: 1.34 KB

Contents

<div class="block" id="language_settings">
  <div class="header">
    <div class="header_text">
 <%= t("account.lang.change")%>
    </div>
    <div class="header_icon_right">
 <%= link_to (image_tag('btn/edit.png')),  "javascript:showSettings(\"language_settings\");" %>
    </div>
  </div>
  <div id="lang_form_briefing" class="settings_briefing content">
    <div class="form_row">
 <%= t('settings.lang_change.briefing')%>
    </div>
  </div>
  <div class="content settings_content" id="language_settings_content" style="display:none;">
    <%= form_tag update_all_settings_path, :method => :put, :id => 'form_lang', :remote => false do %>
    <div class="form_row">
 <div class="form_label"><%= label_tag :language, t('settings.lang_change.name') %></div>
 <div class="form_field">
 <%= select_tag(:language, options_for_select([[t('lang.browser'), 'browser']] + I18n.available_locales.map{|l| [ t("lang_names.#{l.to_s}") + ' (' + l.to_s + ')' , l.to_s ] }, (current_user.language.blank? ? 'browser' : current_user.language)), :class => 'form_tag', :onchange => "$(\'#form_lang\').submit();" )%>
 </div>
    </div>
            <div class="actions center">
                <%= hidden_field_tag :settings_section, :language %>
		<noscript>
                <%= submit_tag "Update Settings", :class => "button" %>
		</noscript>
            </div>
    <% end%>
  </div>
</div>

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
social_stream-0.17.1 base/app/views/settings/_language.html.erb
social_stream-base-0.12.1 app/views/settings/_language.html.erb