2016-02-20 08:59:59 -05:00
|
|
|
%li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo) }
|
2016-02-27 05:39:33 -05:00
|
|
|
.todo-item.todo-block
|
2016-02-20 08:59:59 -05:00
|
|
|
= image_tag avatar_icon(todo.author_email, 40), class: 'avatar s40', alt:''
|
|
|
|
|
|
|
|
.todo-title
|
2016-02-27 05:39:33 -05:00
|
|
|
%span.author-name
|
2016-03-09 12:47:04 -05:00
|
|
|
- if todo.author
|
|
|
|
= link_to_author(todo)
|
|
|
|
- else
|
|
|
|
(removed)
|
2016-02-27 05:39:33 -05:00
|
|
|
%span.todo-label
|
2016-02-20 15:01:50 -05:00
|
|
|
= todo_action_name(todo)
|
2016-02-20 14:53:15 -05:00
|
|
|
= todo_target_link(todo)
|
2016-02-20 08:59:59 -05:00
|
|
|
|
|
|
|
· #{time_ago_with_tooltip(todo.created_at)}
|
|
|
|
|
|
|
|
- if todo.pending?
|
|
|
|
.todo-actions.pull-right
|
2016-02-23 15:09:35 -05:00
|
|
|
= link_to 'Done', [:dashboard, todo], method: :delete, class: 'btn done-todo'
|
2016-02-20 08:59:59 -05:00
|
|
|
|
|
|
|
.todo-body
|
|
|
|
.todo-note
|
|
|
|
.md
|
|
|
|
= event_note(todo.body, project: todo.project)
|