##// 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 float: right;
424 float: right;
425 }
425 }
426
426
427 .gist_url {
428 padding: 0px 0px 10px 0px;
429 }
430
427 .author {
431 .author {
428 clear: both;
432 clear: both;
429 vertical-align: middle;
433 vertical-align: middle;
@@ -37,11 +37,16 b''
37 </ul>
37 </ul>
38 %endif
38 %endif
39 </div>
39 </div>
40 <code>${c.gist.gist_url()}</code>
40
41 <div class="table">
41 <div class="table">
42 <div id="files_data">
42 <div id="files_data">
43 <div id="codeblock" class="codeblock">
43 <div id="codeblock" class="codeblock">
44 <div class="code-header">
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 <div class="stats">
50 <div class="stats">
46 %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
51 %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
47 <div class="remove_gist">
52 <div class="remove_gist">
@@ -52,7 +57,7 b''
52 %endif
57 %endif
53 <div class="buttons">
58 <div class="buttons">
54 ## only owner should see that
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 %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
62 %if h.HasPermissionAny('hg.admin')() or c.gist.gist_owner == c.rhodecode_user.user_id:
58 ${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}
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 ${h.age_component(h.time_to_utcdatetime(c.gist.gist_expires))}
76 ${h.age_component(h.time_to_utcdatetime(c.gist.gist_expires))}
72 %endif
77 %endif
73 </span>
78 </span>
79
74 </div>
80 </div>
75 </div>
81 </div>
76
82
General Comments 0
You need to be logged in to leave comments. Login now