diff options
author | winniehell <git@winniehell.de> | 2016-07-20 14:01:29 +0200 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-08-16 23:34:23 +0200 |
commit | bd02aa193d890baf15fc18d67ac3d471333d0e1c (patch) | |
tree | ec3c37a7de60ad1014690594d7a0f3e3bbbdbbcf /app/views/dashboard | |
parent | 7dde4ed26b27fb4524687cfc73c4bf765300bfa3 (diff) | |
download | gitlab-ce-bd02aa193d890baf15fc18d67ac3d471333d0e1c.tar.gz |
Add hover state to todos (!5361)
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/todos/_todo.html.haml | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml index 98f302d2f93..b40395c74de 100644 --- a/app/views/dashboard/todos/_todo.html.haml +++ b/app/views/dashboard/todos/_todo.html.haml @@ -1,6 +1,7 @@ %li{class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo), data:{url: todo_target_path(todo)} } + = author_avatar(todo, size: 40) + .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) @@ -19,13 +20,13 @@ · #{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) + + - if todo.pending? + .todo-actions + = link_to [:dashboard, todo], method: :delete, class: 'btn btn-loading done-todo' do + Done + = icon('spinner spin') |