##// END OF EJS Templates
fix(gists): fixed bytes content returned in edit/copy content items§
super-admin -
r5232:8b86360e default
parent child Browse files
Show More
@@ -56,7 +56,7 b''
56 </div>
56 </div>
57 <div class="editor_container">
57 <div class="editor_container">
58 <pre id="editor_pre"></pre>
58 <pre id="editor_pre"></pre>
59 <textarea id="editor_${h.FID('f',file.path)}" name="content" >${file.content}</textarea>
59 <textarea id="editor_${h.FID('f',file.path)}" name="content" >${file.str_content}</textarea>
60 </div>
60 </div>
61 </div>
61 </div>
62 <input type="hidden" name="__end__" />
62 <input type="hidden" name="__end__" />
@@ -43,7 +43,7 b''
43
43
44 <div class="pull-right buttons">
44 <div class="pull-right buttons">
45 ## only owner should see that
45 ## only owner should see that
46 <a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard no-grey clipboard-action" data-clipboard-text="${c.files[0].content}">${_('Copy content')}</a>
46 <a href="#copySource" onclick="return false;" class="btn btn-mini icon-clipboard no-grey clipboard-action" data-clipboard-text="${c.files[0].str_content}">${_('Copy content')}</a>
47
47
48 %if c.is_super_admin or c.gist.gist_owner == c.rhodecode_user.user_id:
48 %if c.is_super_admin or c.gist.gist_owner == c.rhodecode_user.user_id:
49 ${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}
49 ${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}
General Comments 0
You need to be logged in to leave comments. Login now