Skip to content
GitLab
项目 群组 主题 代码片段
  • /
  • 帮助
    • 帮助
    • 支持
    • 社区论坛
    • 提交反馈
  • 登录
  • L large
  • 项目信息
    • 项目信息
    • 动态
    • 标记
    • 成员
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者统计
    • 分支图
    • 比较修订版本
  • 议题 21
    • 议题 21
    • 列表
    • 看板
    • 服务台
    • 里程碑
  • 合并请求 12
    • 合并请求 12
  • CI/CD
    • CI/CD
    • 流水线
    • 作业
    • 产物
    • 计划
  • 部署
    • 部署
    • 环境
    • 发布
  • 软件包与镜像库
    • 软件包与镜像库
    • 软件包库
    • 容器镜像库
    • Terraform 模块
    • 模型实验
  • 监控
    • 监控
    • 事件
  • 分析
    • 分析
    • 价值流
    • CI/CD
    • 仓库
  • Wiki
    • Wiki
  • 代码片段
    • 代码片段
  • 动态
  • 分支图
  • 创建新议题
  • 作业
  • 提交
  • 议题看板
收起侧边栏
  • 王权利
  • large
  • 议题
  • #188

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.

指派人
分配到
工时统计