##// END OF EJS Templates
gists: add copy url to clipboard helper icon.
marcink -
r2126:a8550f9e default
parent child Browse files
Show More
@@ -424,6 +424,10 b' div.codeblock {'
424 424 float: right;
425 425 }
426 426
427 .gist_url {
428 padding: 0px 0px 10px 0px;
429 }
430
427 431 .author {
428 432 clear: both;
429 433 vertical-align: middle;
@@ -37,11 +37,16 b''
37 37 </ul>
38 38 %endif
39 39 </div>
40 <code>${c.gist.gist_url()}</code>
40
41 41 <div class="table">
42 42 <div id="files_data">
43 43 <div id="codeblock" class="codeblock">
44 44 <div class="code-header">
45 <div class="gist_url">
46 <code>
47 ${c.gist.gist_url()} <span class="icon-clipboard clipboard-action" data-clipboard-text="${c.gist.gist_url()}" title="${_('Copy the url')}"></span>
48 </code>
49 </div>
45 50 <div class="stats">
46 51 %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
47 52 <div class="remove_gist">
@@ -52,7 +57,7 b''
52 57 %endif
53 58 <div class="buttons">
54 59 ## only owner should see that
55 <a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard clipboard-action" data-clipboard-text="${c.files[0].content}">${_('Copy Content')}</a>
60 <a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard clipboard-action" data-clipboard-text="${c.files[0].content}">${_('Copy content')}</a>
56 61
57 62 %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
58 63 ${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}
@@ -71,6 +76,7 b''
71 76 ${h.age_component(h.time_to_utcdatetime(c.gist.gist_expires))}
72 77 %endif
73 78 </span>
79
74 80 </div>
75 81 </div>
76 82
General Comments 0
You need to be logged in to leave comments. Login now