##// END OF EJS Templates
files: changed the copy path label to indicate we're actually copying only the path....
dan -
r4278:347fefc5 default
parent child
Show More
@@ -253,7 +253,7 class _ToolTip(object):
253 253
254 254 tooltip = _ToolTip()
255 255
256 files_icon = u'<i class="file-breadcrumb-copy tooltip icon-clipboard clipboard-action" data-clipboard-text="{}" title="Copy the full path"></i>'
256 files_icon = u'<i class="file-breadcrumb-copy tooltip icon-clipboard clipboard-action" data-clipboard-text="{}" title="Copy file path"></i>'
257 257
258 258
259 259 def files_breadcrumbs(repo_name, commit_id, file_path, at_ref=None, limit_items=False, linkify_last_item=False):
@@ -477,7 +477,7 from rhodecode.lib.diffs import NEW_FILE
477 477 <% final_path = filediff.target_file_path %>
478 478 %endif
479 479 %endif
480 <i style="color: #aaa" class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${final_path}" title="${_('Copy the full path')}" onclick="return false;"></i>
480 <i style="color: #aaa" class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${final_path}" title="${_('Copy file path')}" onclick="return false;"></i>
481 481 </span>
482 482 ## anchor link
483 483 <a class="pill filediff-anchor" href="#a_${h.FID(filediff.raw_id, filediff.patch['filename'])}"></a>
@@ -104,6 +104,7
104 104 | ${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))}
105 105 % if not c.file.is_binary:
106 106 |<a href="#copySource" onclick="return false;" class="no-grey clipboard-action" data-clipboard-text="${c.file.content}">${_('Copy content')}</a>
107 |<a href="#copySource" onclick="return false;" class="no-grey clipboard-action" data-clipboard-text="${h.route_url('repo_files', repo_name=c.repo_name,commit_id=c.commit.raw_id,f_path=c.f_path)}">${_('Copy permalink')}</a>
107 108 % endif
108 109
109 110 </div>
General Comments 0
You need to be logged in to leave comments. Login now