2016-03-30 10:17:03 -04:00
|
|
|
%li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo), data:{url: todo_target_path(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:''
|
|
|
|
|
2016-03-18 14:02:08 -04:00
|
|
|
.todo-title.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-03-23 21:52:16 -04:00
|
|
|
- if todo.target
|
|
|
|
= todo_target_link(todo)
|
|
|
|
- else
|
|
|
|
(removed)
|
2016-02-20 08:59:59 -05:00
|
|
|
|
|
|
|
· #{time_ago_with_tooltip(todo.created_at)}
|
|
|
|
|
|
|
|
- if todo.pending?
|
|
|
|
.todo-actions.pull-right
|
2016-03-17 08:54:02 -04:00
|
|
|
= link_to [:dashboard, todo], method: :delete, class: 'btn btn-loading done-todo' do
|
|
|
|
Done
|
2016-03-17 09:08:59 -04:00
|
|
|
= icon('spinner spin')
|
2016-02-20 08:59:59 -05:00
|
|
|
|
|
|
|
.todo-body
|
|
|
|
.todo-note
|
|
|
|
.md
|
|
|
|
= event_note(todo.body, project: todo.project)
|