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

32 lines
948 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)} }
.todo-item.todo-block
2016-04-02 18:10:28 +05:30
= image_tag avatar_icon(todo.author_email, 40), class: 'avatar s40', alt:''
2016-06-02 11:05:42 +05:30
.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)}
- if todo.pending?
.todo-actions.pull-right
2016-06-02 11:05:42 +05:30
= link_to [:dashboard, todo], method: :delete, class: 'btn btn-loading done-todo' do
Done
= icon('spinner spin')
2016-04-02 18:10:28 +05:30
.todo-body
.todo-note
.md
= event_note(todo.body, project: todo.project)