Sha256: 1ef46e598c7868d60d4f86639d0b202438ea9adef2282560cfc3acd71783668b

Contents?: true

Size: 1.24 KB

Versions: 8

Compression:

Stored size: 1.24 KB

Contents

<% if Tr8n::Config.enabled? and (Tr8n::Config.open_registration_mode? or Tr8n::Config.current_user_is_translator?) %>
  <div class="tr8n_language_strip" style="font-size:12px;">
	  <% featured_languages = Tr8n::Language.featured_languages %>
		
  	<% featured_languages.each do |lang| %>
		    <%= tr8n_language_name_tag(lang, opts) %> &nbsp;
		<% end %>
		
		<% if featured_languages.size > 0 %>
				<% if opts[:javascript] %>
				  <span id="tr8n_more_strip_languages">
				    <%=link_to_function("&raquo;".html_safe, "Tr8n.Effects.hide('tr8n_more_strip_languages'); Tr8n.Effects.appear('tr8n_other_strip_languages');") %>
					</span>	
					
					<span id="tr8n_other_strip_languages" style="display:none">
					  <% (Tr8n::Language.enabled_languages - featured_languages).each do |lang| %>
			        <%= tr8n_language_name_tag(lang, opts) %> &nbsp;
			      <% end %>
						
			      <span id="tr8n_less_strip_languages">
			        <%=link_to_function("&laquo;".html_safe, "Tr8n.Effects.show('tr8n_more_strip_languages'); Tr8n.Effects.fade('tr8n_other_strip_languages');") %>
			      </span> 
					</span>
				<% else %>
		      <%=link_to("&raquo;".html_safe, :controller => "/tr8n/language", :action => :table) %>
				<% end %>	
    <% end %> 
  </div>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tr8n-3.1.5 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.1.4 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.1.3 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.1.2 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.1.1 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.0.5 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.0.3 app/views/tr8n/common/_language_strip.html.erb
tr8n-3.0.2 app/views/tr8n/common/_language_strip.html.erb