summaryrefslogtreecommitdiff
path: root/app/views/dashboard/tasks/_common.html.haml
blob: b6d0c3c03acbbf3a10071899ed2ee7220b05f92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
.task-title
  %span.author_name= link_to_author task
  %span.task_label{class: task.action_name}
    = task_action_name(task)

  %strong= link_to "##{task.target_iid}", [task.project.namespace.becomes(Namespace), task.project, task.target]

  · #{time_ago_with_tooltip(task.created_at)}

- if task.pending?
  .task-actions.pull-right
    = link_to 'Done', [:dashboard, task], method: :delete, class: 'btn'

- if task.body?
  .task-body
    .task-note
      = task.target.title