fix(gists): fixed bytes content returned in edit/copy content items§

This commit is contained in:
RhodeCode Admin 2023-12-18 09:16:24 +01:00
parent d60f55ad06
commit bc67143575
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@
</div>
<div class="editor_container">
<pre id="editor_pre"></pre>
<textarea id="editor_${h.FID('f',file.path)}" name="content" >${file.content}</textarea>
<textarea id="editor_${h.FID('f',file.path)}" name="content" >${file.str_content}</textarea>
</div>
</div>
<input type="hidden" name="__end__" />

View file

@ -43,7 +43,7 @@
<div class="pull-right buttons">
## only owner should see that
<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>
<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>
%if c.is_super_admin or c.gist.gist_owner == c.rhodecode_user.user_id:
${h.link_to(_('Edit'), h.route_path('gist_edit', gist_id=c.gist.gist_access_id), class_="btn btn-mini")}