mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-23 17:01:13 +00:00
fix source indent at ApplicationHelper#parse_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@19838 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a7602a57ca
commit
487b604c57
@ -1145,14 +1145,16 @@ module ApplicationHelper
|
|||||||
"repository_id = ? AND scmid LIKE ?",
|
"repository_id = ? AND scmid LIKE ?",
|
||||||
repository.id, "#{name}%"
|
repository.id, "#{name}%"
|
||||||
).first)
|
).first)
|
||||||
link = link_to(
|
link =
|
||||||
|
link_to(
|
||||||
h("#{project_prefix}#{repo_prefix}#{name}"),
|
h("#{project_prefix}#{repo_prefix}#{name}"),
|
||||||
{:only_path => only_path, :controller => 'repositories',
|
{:only_path => only_path, :controller => 'repositories',
|
||||||
:action => 'revision', :id => project,
|
:action => 'revision', :id => project,
|
||||||
:repository_id => repository.identifier_param,
|
:repository_id => repository.identifier_param,
|
||||||
:rev => changeset.identifier},
|
:rev => changeset.identifier},
|
||||||
:class => 'changeset',
|
:class => 'changeset',
|
||||||
:title => truncate_single_line_raw(changeset.comments, 100))
|
:title => truncate_single_line_raw(changeset.comments, 100)
|
||||||
|
)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if repository && User.current.allowed_to?(:browse_repository, project)
|
if repository && User.current.allowed_to?(:browse_repository, project)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user