@@ -633,7 +633,7 module ApplicationHelper | |||||
633 | if prefix.nil? && sep == 'r' |
|
633 | if prefix.nil? && sep == 'r' | |
634 | # project.changesets.visible raises an SQL error because of a double join on repositories |
|
634 | # project.changesets.visible raises an SQL error because of a double join on repositories | |
635 | if project && project.repository && (changeset = Changeset.visible.find_by_repository_id_and_revision(project.repository.id, identifier)) |
|
635 | if project && project.repository && (changeset = Changeset.visible.find_by_repository_id_and_revision(project.repository.id, identifier)) | |
636 | link = link_to("#{project_prefix}r#{identifier}", {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.revision}, |
|
636 | link = link_to(h("#{project_prefix}r#{identifier}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.revision}, | |
637 | :class => 'changeset', |
|
637 | :class => 'changeset', | |
638 | :title => truncate_single_line(changeset.comments, :length => 100)) |
|
638 | :title => truncate_single_line(changeset.comments, :length => 100)) | |
639 | end |
|
639 | end | |
@@ -683,7 +683,7 module ApplicationHelper | |||||
683 | if project && project.repository && (changeset = Changeset.visible.find(:first, :conditions => ["repository_id = ? AND scmid LIKE ?", project.repository.id, "#{name}%"])) |
|
683 | if project && project.repository && (changeset = Changeset.visible.find(:first, :conditions => ["repository_id = ? AND scmid LIKE ?", project.repository.id, "#{name}%"])) | |
684 | link = link_to h("#{project_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.identifier}, |
|
684 | link = link_to h("#{project_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project, :rev => changeset.identifier}, | |
685 | :class => 'changeset', |
|
685 | :class => 'changeset', | |
686 | :title => truncate_single_line(changeset.comments, :length => 100) |
|
686 | :title => truncate_single_line(h(changeset.comments), :length => 100) | |
687 | end |
|
687 | end | |
688 | when 'source', 'export' |
|
688 | when 'source', 'export' | |
689 | if project && project.repository && User.current.allowed_to?(:browse_repository, project) |
|
689 | if project && project.repository && User.current.allowed_to?(:browse_repository, project) |
General Comments 0
You need to be logged in to leave comments.
Login now