% if Fullstack::Cms.localized? %> <%= nav :class => "nav-pills" do %> <%= content_tag :li, :class => (:active if @locale.blank?) do %> <%= link_to t("fullstack.cms.commons", :default => "Commons"), request.path %> <% end %> <% I18n.available_locales.each do |locale| %> <%= content_tag :li, :class => (:active if @locale == locale.to_s) do %> <%= link_to t("locale_names.#{locale}", :default => "#{locale}".humanize), "?locale=#{locale}" %> <% end %> <% end %> <% end %> <% end %>