浏览代码

code layout clean up app/helpers/application_helper.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@19298 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Toshi MARUYAMA 4 年前
父节点
当前提交
6f30f70c43
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7
    1
      app/helpers/application_helper.rb

+ 7
- 1
app/helpers/application_helper.rb 查看文件

@@ -1112,7 +1112,13 @@ module ApplicationHelper
repository = project.repository
end
if prefix == 'commit'
if repository && (changeset = Changeset.visible.where("repository_id = ? AND scmid LIKE ?", repository.id, "#{name}%").first)
if repository &&
(changeset =
Changeset.visible.
where(
"repository_id = ? AND scmid LIKE ?",
repository.id, "#{name}%"
).first)
link = link_to(
h("#{project_prefix}#{repo_prefix}#{name}"),
{:only_path => only_path, :controller => 'repositories',

正在加载...
取消
保存