Project

General

Profile

« Previous | Next » 

Revision 2567

Adds 2 css classes (created-by-me and assigned-to-me) to issues created by or assigned to the current user (#2651).

View differences:

trunk/app/helpers/issues_helper.rb
38 38
    s = "issue status-#{issue.status.position} priority-#{issue.priority.position}"
39 39
    s << ' closed' if issue.closed?
40 40
    s << ' overdue' if issue.overdue?
41
    s << ' created-by-me' if User.current.logged? && issue.author_id == User.current.id
42
    s << ' assigned-to-me' if User.current.logged? && issue.assigned_to_id == User.current.id
41 43
    s
42 44
  end
43 45
  

Also available in: Unified diff