Show More
@@ -72,6 +72,7 b' class RepoSummaryView(RepoAppView):' | |||||
72 | log.debug("Searching for a README file.") |
|
72 | log.debug("Searching for a README file.") | |
73 | readme_node = ReadmeFinder(_renderer_type).search(commit) |
|
73 | readme_node = ReadmeFinder(_renderer_type).search(commit) | |
74 | if readme_node: |
|
74 | if readme_node: | |
|
75 | log.debug('Found README node: %s', readme_node) | |||
75 | relative_urls = { |
|
76 | relative_urls = { | |
76 | 'raw': h.route_path( |
|
77 | 'raw': h.route_path( | |
77 | 'repo_file_raw', repo_name=_repo_name, |
|
78 | 'repo_file_raw', repo_name=_repo_name, | |
@@ -82,7 +83,8 b' class RepoSummaryView(RepoAppView):' | |||||
82 | } |
|
83 | } | |
83 | readme_data = self._render_readme_or_none( |
|
84 | readme_data = self._render_readme_or_none( | |
84 | commit, readme_node, relative_urls) |
|
85 | commit, readme_node, relative_urls) | |
85 | readme_filename = readme_node.path |
|
86 | readme_filename = readme_node.unicode_path | |
|
87 | ||||
86 | return readme_data, readme_filename |
|
88 | return readme_data, readme_filename | |
87 |
|
89 | |||
88 | inv_context_manager = rc_cache.InvalidationContext( |
|
90 | inv_context_manager = rc_cache.InvalidationContext( |
@@ -219,7 +219,7 b' class _ToolTip(object):' | |||||
219 |
|
219 | |||
220 | tooltip = _ToolTip() |
|
220 | tooltip = _ToolTip() | |
221 |
|
221 | |||
222 |
files_icon = |
|
222 | files_icon = u'<i class="file-breadcrumb-copy tooltip icon-clipboard clipboard-action" data-clipboard-text="{}" title="Copy the full path"></i>' | |
223 |
|
223 | |||
224 |
|
224 | |||
225 | def files_breadcrumbs(repo_name, commit_id, file_path, at_ref=None, limit_items=False, linkify_last_item=False): |
|
225 | def files_breadcrumbs(repo_name, commit_id, file_path, at_ref=None, limit_items=False, linkify_last_item=False): |
@@ -35,7 +35,9 b'' | |||||
35 | <div class="box"> |
|
35 | <div class="box"> | |
36 | <div class="title" title="${h.tooltip(_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1]))}"> |
|
36 | <div class="title" title="${h.tooltip(_('Readme file from commit %s:%s') % (c.rhodecode_db_repo.landing_rev[0], c.rhodecode_db_repo.landing_rev[1]))}"> | |
37 | <h3 class="breadcrumbs"> |
|
37 | <h3 class="breadcrumbs"> | |
38 |
<a href="${h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.rhodecode_db_repo.landing_rev[1],f_path=c.readme_file)}"> |
|
38 | <a href="${h.route_path('repo_files',repo_name=c.repo_name,commit_id=c.rhodecode_db_repo.landing_rev[1],f_path=c.readme_file)}"> | |
|
39 | ${c.readme_file} | |||
|
40 | </a> | |||
39 | </h3> |
|
41 | </h3> | |
40 | </div> |
|
42 | </div> | |
41 | <div class="readme codeblock"> |
|
43 | <div class="readme codeblock"> |
General Comments 0
You need to be logged in to leave comments.
Login now