mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-08-15 08:20:33 +02:00
fix: improve pdf rendering and html
This commit is contained in:
@@ -91,6 +91,30 @@
|
||||
aria-label="Edit"
|
||||
><i class="far fa-edit"></i><span class="d-none d-md-inline"> Edit</span></a
|
||||
>
|
||||
<button
|
||||
ng-if="type == 'html-doc' && !showSource"
|
||||
ng-click="toggleAllowScripts()"
|
||||
class="btn btn-sm"
|
||||
ng-class="{'btn-active': allowScripts}"
|
||||
aria-label="Allow this document to run JavaScript"
|
||||
title="Scripts in this file are blocked by default. Enable them only if you trust the repository — the document stays isolated from your session either way."
|
||||
>
|
||||
<i class="fab fa-js"></i><span class="d-none d-md-inline">
|
||||
{{ allowScripts ? "JS on" : "JS off" }}</span
|
||||
>
|
||||
</button>
|
||||
<button
|
||||
ng-if="type == 'html-doc'"
|
||||
ng-click="toggleSource()"
|
||||
class="btn btn-sm"
|
||||
aria-label="Toggle between the rendered document and its source"
|
||||
title="Toggle between the rendered document and its source"
|
||||
>
|
||||
<i class="fas" ng-class="showSource ? 'fa-eye' : 'fa-code'"></i
|
||||
><span class="d-none d-md-inline">
|
||||
{{ showSource ? "Rendered" : "Source" }}</span
|
||||
>
|
||||
</button>
|
||||
<a
|
||||
ng-show="content != null"
|
||||
ng-href="{{url}}"
|
||||
|
||||
Reference in New Issue
Block a user