Defect #8741 » rev-url-short.diff
app/helpers/application_helper.rb | ||
---|---|---|
105 | 105 |
def link_to_revision(revision, project, options={}) |
106 | 106 |
text = options.delete(:text) || format_revision(revision) |
107 | 107 |
rev = revision.respond_to?(:identifier) ? revision.identifier : revision |
108 | ||
109 |
link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev}, |
|
108 |
rev_short = rev[0, 12] |
|
109 |
link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev_short},
|
|
110 | 110 |
:title => l(:label_revision_id, format_revision(revision))) |
111 | 111 |
end |
112 | 112 |