Change issue new? behavior
Issues that are less than 24 hours old are new now.
Also it does not matter if creation and edit dates are different.
Use `new?` instead of `today?` for UI highligt of new issues.
Signed-off-by:
Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
显示
- app/helpers/issues_helper.rb 1 个添加, 1 个删除app/helpers/issues_helper.rb
- app/models/concerns/issuable.rb 5 个添加, 1 个删除app/models/concerns/issuable.rb
- changelogs/unreleased/dz-improve-new-issue-highlight.yml 5 个添加, 0 个删除changelogs/unreleased/dz-improve-new-issue-highlight.yml
- spec/models/concerns/issuable_spec.rb 5 个添加, 11 个删除spec/models/concerns/issuable_spec.rb
加载中
想要评论请 注册 或 登录