mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
13 lines
1.2 KiB
HTML
13 lines
1.2 KiB
HTML
<div ng-if="type == 'text'" ng-model="content" ui-ace="aceOption"></div>
|
|
<div ng-if="type == 'html'" ng-bind-html="content" class="file-content markdown-body"></div>
|
|
<div ng-if="type == 'code' && content != null" ui-ace="aceOption" ng-model="content"></div>
|
|
<img ng-if="type == 'image'" class="image-content" ng-src="{{url}}"></img>
|
|
<iframe class="h-100 overflow-auto w-100 b-0" ng-if="type == 'media'" ng-src="{{url}}"></iframe>
|
|
<div class="h-100 overflow-auto" ng-if="type == 'pdf'">
|
|
<pdfviewer class="h-100 overflow-auto" src="{{url}}" id="viewer"></pdfviewer>
|
|
</div>
|
|
<div ng-if="type == 'IPython'"><notebook file="url"></notebook></div>
|
|
<div ng-if="type == 'error'" class="file-error container d-flex h-100"><h1 class="display-1 m-auto" translate="ERRORS.{{content}}">Error</h1></div></div>
|
|
<div ng-if="type == 'loading' && !error" class="file-error container d-flex h-100"><h1 class="display-1 m-auto">Loading...</h1></div></div>
|
|
<div ng-if="type == 'empty'" class="file-error container d-flex h-100"><h1 class="display-1 m-auto">Empty repository!</h1></div>
|
|
<div ng-if="content == null && type != 'empty'" class="file-error container d-flex h-100"><h1 class="display-1 m-auto">Empty file!</h1></div> |