@@ -77,6 +77,7 class RepositoriesController < ApplicationController | |||||
77 | @repository.fetch_changesets if Setting.autofetch_changesets? && @path.empty? |
|
77 | @repository.fetch_changesets if Setting.autofetch_changesets? && @path.empty? | |
78 |
|
78 | |||
79 | @entries = @repository.entries(@path, @rev) |
|
79 | @entries = @repository.entries(@path, @rev) | |
|
80 | @changeset = @repository.find_changeset_by_name(@rev) | |||
80 | if request.xhr? |
|
81 | if request.xhr? | |
81 | @entries ? render(:partial => 'dir_list_content') : render(:nothing => true) |
|
82 | @entries ? render(:partial => 'dir_list_content') : render(:nothing => true) | |
82 | else |
|
83 | else |
@@ -10,12 +10,19 dirs.each do |dir| | |||||
10 | link_path << '/' unless link_path.empty? |
|
10 | link_path << '/' unless link_path.empty? | |
11 | link_path << "#{dir}" |
|
11 | link_path << "#{dir}" | |
12 | %> |
|
12 | %> | |
13 |
/ <%= link_to h(dir), :action => 'show', :id => @project, |
|
13 | / <%= link_to h(dir), :action => 'show', :id => @project, | |
|
14 | :path => to_path_param(link_path), :rev => @rev %> | |||
14 | <% end %> |
|
15 | <% end %> | |
15 | <% if filename %> |
|
16 | <% if filename %> | |
16 | / <%= link_to h(filename), :action => 'changes', :id => @project, :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> |
|
17 | / <%= link_to h(filename), | |
|
18 | :action => 'changes', :id => @project, | |||
|
19 | :path => to_path_param("#{link_path}/#{filename}"), :rev => @rev %> | |||
17 | <% end %> |
|
20 | <% end %> | |
18 |
|
21 | <% | ||
19 | <%= "@ #{h format_revision(@changeset)}" if @changeset %> |
|
22 | # @rev is revsion or Git and Mercurial branch or tag. | |
|
23 | # For Mercurial *tip*, @rev and @changeset are nil. | |||
|
24 | rev_text = @changeset.nil? ? @rev : format_revision(@changeset) | |||
|
25 | %> | |||
|
26 | <%= "@ #{h rev_text}" if rev_text %> | |||
20 |
|
27 | |||
21 | <% html_title(with_leading_slash(path)) -%> |
|
28 | <% html_title(with_leading_slash(path)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now