debian-mirror-gitlab/app/views/dashboard/todos/_todo.html.haml

34 lines
910 B
Text
Raw Normal View History

2016-06-02 11:05:42 +05:30
%li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo), data:{url: todo_target_path(todo)} }
2016-09-29 09:46:39 +05:30
= author_avatar(todo, size: 40)
2016-06-02 11:05:42 +05:30
.todo-item.todo-block
.todo-title.title
- unless todo.build_failed?
= todo_target_state_pill(todo)
2016-06-02 11:05:42 +05:30
%span.author-name
- if todo.author
= link_to_author(todo)
- else
(removed)
2016-04-02 18:10:28 +05:30
%span.todo-label
= todo_action_name(todo)
2016-06-02 11:05:42 +05:30
- if todo.target
= todo_target_link(todo)
- else
(removed)
2016-04-02 18:10:28 +05:30
· #{time_ago_with_tooltip(todo.created_at)}
2016-11-03 12:29:30 +05:30
= todo_due_date(todo)
2016-04-02 18:10:28 +05:30
.todo-body
.todo-note
.md
= event_note(todo.body, project: todo.project)
2016-09-29 09:46:39 +05:30
- if todo.pending?
.todo-actions
= link_to [:dashboard, todo], method: :delete, class: 'btn btn-loading done-todo' do
Done
= icon('spinner spin')