# HG changeset patch # User Daniel Dourvaris # Date 2020-03-30 09:14:24 # Node ID 347fefc5eea6ae58e758e5fd827e650712c77b1a # Parent 0d8d4107caed3e4e128dc9e4f08688d5299f98dc files: changed the copy path label to indicate we're actually copying only the path. - added copy permalink helper to copy the url quickly - fixes #5602 diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -253,7 +253,7 @@ class _ToolTip(object): tooltip = _ToolTip() -files_icon = u'' +files_icon = u'' def files_breadcrumbs(repo_name, commit_id, file_path, at_ref=None, limit_items=False, linkify_last_item=False): diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako --- a/rhodecode/templates/codeblocks/diffs.mako +++ b/rhodecode/templates/codeblocks/diffs.mako @@ -477,7 +477,7 @@ from rhodecode.lib.diffs import NEW_FILE <% final_path = filediff.target_file_path %> %endif %endif - + ## anchor link ΒΆ diff --git a/rhodecode/templates/files/files_source.mako b/rhodecode/templates/files/files_source.mako --- a/rhodecode/templates/files/files_source.mako +++ b/rhodecode/templates/files/files_source.mako @@ -104,6 +104,7 @@ | ${h.link_to(_('Raw'), h.route_path('repo_file_raw',repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path))} % if not c.file.is_binary: |${_('Copy content')} + |${_('Copy permalink')} % endif