summaryrefslogtreecommitdiff
path: root/app/views/dashboard/todos/_todo.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/dashboard/todos/_todo.html.haml')
-rw-r--r--app/views/dashboard/todos/_todo.html.haml26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml
new file mode 100644
index 00000000000..4c848a50181
--- /dev/null
+++ b/app/views/dashboard/todos/_todo.html.haml
@@ -0,0 +1,26 @@
+%li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo) }
+ .todo-item.todo-block
+ = image_tag avatar_icon(todo.author_email, 40), class: 'avatar s40', alt:''
+
+ .todo-title
+ %span.author-name
+ - if todo.author
+ = link_to_author(todo)
+ - else
+ (removed)
+ %span.todo-label
+ = todo_action_name(todo)
+ = todo_target_link(todo)
+
+ · #{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)