summaryrefslogtreecommitdiff
path: root/app/views/dashboard/todos/_todo.html.haml
blob: 98f302d2f937dc769547f9cf9848d0091f41eddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo), data:{url: todo_target_path(todo)} }
  .todo-item.todo-block
    = image_tag avatar_icon(todo.author_email, 40), class: 'avatar s40', alt:''
    .todo-title.title
      - unless todo.build_failed?
        = todo_target_state_pill(todo)

        %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)

      · #{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
          = icon('spinner spin')

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