class SquadGoals::App

Constants

MEMCACHE_TTL

Public Instance Methods

avatar(user) click to toggle source
# File lib/squad_goals/app.rb, line 49
def avatar(user)
  "<img class=\"avatar avatar-small\" src=\"https://github.com/#{user}.png\" alt=\"user\" width=\"20\" height=\"20\">"
end
locals() click to toggle source
# File lib/squad_goals/app.rb, line 54
def locals
  {
    organization: settings.organization,
    teams: settings.organization.teams,
    org_id: settings.organization.login,
    team_requested: team_requested,
    user: (github_user.login if github_user)
  }
end
team_requested() click to toggle source
# File lib/squad_goals/app.rb, line 44
def team_requested
  settings.organization.teams.find { |team| team.slug == params['team'] }
end