graspapp/grasp

View on GitHub
app/helpers/application_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ApplicationHelper
  def full_title(page_title)
    base_title = "Grasp"
    page_title.empty? ? base_title : "#{ page_title } | #{ base_title }".html_safe
  end
  
  def convert_mastery?(mastery)
    if mastery == -1
      "NY"
    elsif mastery == 0
      "N"
    else
      mastery
    end
  end
end