Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
j_platform / app / helpers / j_platform / ticket_helper.rb
Size: Mime:
module JPlatform
  module TicketHelper
    def display_change_action(feed_item)
      case feed_item.type
      when 'Ticket::Comment'
        I18n.t(:left_a_comment, scope: 'tickets._ticket_view').downcase
      when 'Ticket::Activity'
        I18n.t(:updated_ticket, scope: 'tickets._ticket_view').downcase
      end
    end

    def priority_sort_rank
      Ticket::PRIORITIES
    end

    def status_sort_rank
      Ticket::STATUSES
    end
  end
end