gitlab-org--gitlab-foss/app/views/dashboard/todos/_todo.html.haml

30 lines
865 B
Text
Raw Normal View History

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)} }
.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.title
%span.author-name
- if todo.author
= link_to_author(todo)
- else
(removed)
%span.todo-label
= todo_action_name(todo)
- 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
= 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)