BigW Consortium Gitlab

_todo.html.haml 948 Bytes
Newer Older
1
%li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo), data:{url: todo_target_path(todo)} }
2
  .todo-item.todo-block
3
    = image_tag avatar_icon(todo.author_email, 40), class: 'avatar s40', alt:''
4
    .todo-title.title
5
      - unless todo.build_failed?
Alfredo Sumaran committed
6
        = todo_target_state_pill(todo)
7

8 9 10 11 12
        %span.author-name
          - if todo.author
            = link_to_author(todo)
          - else
            (removed)
13
      %span.todo-label
14
        = todo_action_name(todo)
15 16 17 18
        - if todo.target
          = todo_target_link(todo)
        - else
          (removed)
19 20 21 22 23

      · #{time_ago_with_tooltip(todo.created_at)}

    - if todo.pending?
      .todo-actions.pull-right
24 25
        = link_to [:dashboard, todo], method: :delete, class: 'btn btn-loading done-todo' do
          Done
26
          = icon('spinner spin')
27 28 29 30 31

    .todo-body
      .todo-note
        .md
          = event_note(todo.body, project: todo.project)