* Persian translation * adding :fa to make the site use the rtl stylesheet based on [this comment](https://github.com/tootsuite/mastodon/pull/2405#issuecomment-296721105) * fix missing quotes * add 'fa' locale
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			355 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# frozen_string_literal: true
 | 
						|
 | 
						|
module ApplicationHelper
 | 
						|
  def active_nav_class(path)
 | 
						|
    current_page?(path) ? 'active' : ''
 | 
						|
  end
 | 
						|
 | 
						|
  def show_landing_strip?
 | 
						|
    !user_signed_in? && !single_user_mode?
 | 
						|
  end
 | 
						|
 | 
						|
  def add_rtl_body_class(other_classes)
 | 
						|
    other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale)
 | 
						|
    other_classes
 | 
						|
  end
 | 
						|
end
 |