Error 500 on dashboard with no projects (master with ruby 1.9.3-p0)
Created by: bjorngylling
Looks like the new(?) dashboard crashes when there are no activity on any projects in the system yet? I did a fresh install and I've added a project but without any activity on it this shows up in my log and a friendly 500 page greets me in the browser.
Rendered dashboard/index.html.haml within layouts/application (6.0ms)
Completed 500 Internal Server Error in 10ms
ActionView::Template::Error (/home/gitlabhq/gitlabhq/app/views/dashboard/index.html.haml:24: syntax error, unexpected keyword_do_block
/home/gitlabhq/gitlabhq/app/views/dashboard/index.html.haml:27: syntax error, unexpected keyword_do_block, expecting keyword_end
project.updates(3).each do |update|
^
/home/gitlabhq/gitlabhq/app/views/dashboard/index.html.haml:43: syntax error, unexpected keyword_ensure, expecting $end
...:Util.html_safe(_erbout);ensure;@haml_buffer = @haml_buffer....
... ^):
21: Dashboard
22: - @active_projects.first(3).each do |project|
23: .project-box.project-updates.ui-box.ui-box-small.ui-box-big
24: = link_to project, do
25: %h3= project.name
26: .data
27: - project.updates(3).each do |update|
app/controllers/dashboard_controller.rb:8:in `index'
After pushing a few commits to the project I added this error still seems to show up.