app/models/risk.rb
# Returns a string of css classes that apply to the issue
Returns a string of css classes that apply to the issue
Returns a string of css classes that apply to the issue
def css_classes(user=User.current)
    s = "risk"
    s << ' closed' if closed?
    s << ' created-by-me' if author_id == user.id
    s << ' assigned-to-me' if assigned_to_id == user.id
    s << ' assigned-to-my-group' if user.groups.any? {|g| g.id == assigned_to_id}
  end
def css_classes ( user = User . current ) s = "risk" s << ' closed' if closed? s << ' created-by-me' if author_id == user . id s << ' assigned-to-me' if assigned_to_id == user . id s << ' assigned-to-my-group' if user . groups . any? { | g | g . id == assigned_to_id } end
Returns a string of css classes that apply to the issue
Returns a string of css classes that apply to the issue
user
<not_specific>
current
<not_specific>