Sha256: c2534b23e5ef33f06e6bb91d481913fba877e40cd84073e307bc5dde14e8bd14

Contents?: true

Size: 753 Bytes

Versions: 8

Compression:

Stored size: 753 Bytes

Contents

<% if Tr8n::Config.enabled? and (Tr8n::Config.open_registration_mode? or Tr8n::Config.current_user_is_translator?) %>
		<% if opts[:lightbox] %>
      <%=link_to_function(tr8n_language_name_tag(Tr8n::Config.current_language, opts.merge(:name => :native, :linked => false)), "tr8nLightbox.show('/tr8n/language/select?lightbox=true', {height:500, width:400})")%>
		<% else %>
	    <span style="<%=opts[:style]%>; cursor:pointer;" onClick="tr8nLanguageSelector.toggle();">
			  <%= tr8n_language_name_tag(Tr8n::Config.current_language, opts.merge(:name => :native, :linked => false)) %>
				<% if opts[:show_arrow] %>
				 <span style="<%=opts[:arrow_style]%>" id="tr8n_language_selector_trigger">▼</span>
				<% end %>
	    </span>
		<% end %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tr8n-3.1.8 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.7 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.6 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.5 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.4 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.3 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.2 app/views/tr8n/common/_language_selector.html.erb
tr8n-3.1.1 app/views/tr8n/common/_language_selector.html.erb