Chinaunix首页 | 论坛 | 博客
  • 博客访问: 120860
  • 博文数量: 13
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 189
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-05 17:00
文章分类

全部博文(13)

文章存档

2017年(1)

2013年(12)

我的朋友

分类: LINUX

2013-04-22 11:17:25

redmine的subtasks中默认的列只有ticket号、标题、状态、委派人以及进度表。

如果我想在其中加入priority这一列怎么办?

图形界面上没有提供这项功能,只能在后台修改。


  1. vi app/helpers/issues_helper.rb

定位到 content_tag('td', h(child.status)) + 这一行,加入

  1. content_tag('td', h(child.priority)) +

整个subtasks的代码就像这样:

  1. content_tag('td', check_box_tag("ids[]", child.id, false, :id => nil), :class => 'checkbox') +
  2. content_tag('td', link_to_issue(child, :truncate => 60, :project => (issue.project_id != child.project_id)), :class => 'subject') +
  3. content_tag('td', h(child.status)) +
  4. content_tag('td', h(child.priority)) +
  5. content_tag('td', link_to_user(child.assigned_to)) +
  6. content_tag('td', progress_bar(child.done_ratio, :width => '80px')),
  7. :class => css)
然后重启http服务。

阅读(1379) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~