summaryrefslogtreecommitdiff
path: root/app/views/dashboard/todos/_todo.html.haml
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-09 14:47:04 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-03-09 14:47:04 -0300
commit7500a12aae91231aba1021df2034d724126ba55f (patch)
tree815925f8bd687db36f164122174da4f11d3acf8f /app/views/dashboard/todos/_todo.html.haml
parentcac83cead523bc5a314950c2168fcebf8da8d405 (diff)
downloadgitlab-ce-7500a12aae91231aba1021df2034d724126ba55f.tar.gz
Avoid error 500 when todo author was removed
Diffstat (limited to 'app/views/dashboard/todos/_todo.html.haml')
-rw-r--r--app/views/dashboard/todos/_todo.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/dashboard/todos/_todo.html.haml b/app/views/dashboard/todos/_todo.html.haml
index f878d36e739..45cfe3da188 100644
--- a/app/views/dashboard/todos/_todo.html.haml
+++ b/app/views/dashboard/todos/_todo.html.haml
@@ -4,7 +4,10 @@
.todo-title
%span.author-name
- = link_to_author todo
+ - if todo.author
+ = link_to_author(todo)
+ - else
+ (removed)
%span.todo-label
= todo_action_name(todo)
= todo_target_link(todo)