2017-07-07 02:38:57 +02:00
|
|
|
<div class="panel">
|
2017-07-07 03:03:29 +02:00
|
|
|
<h2>Name</h2>
|
|
|
|
<p>{{fileInfo.name}}</>
|
2017-07-07 02:38:57 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel links">
|
|
|
|
<h2 class="subheader">Links</h2>
|
2017-07-17 22:54:50 +02:00
|
|
|
{{!--short direct link to asset--}}
|
|
|
|
<div class="share-option">
|
|
|
|
<a href="/{{fileInfo.name}}/{{firstCharacter fileInfo.claimId}}">Direct Link</a>
|
|
|
|
<div class="input-error" id="input-error-copy-direct-link" hidden="true"></div>
|
|
|
|
<br/>
|
|
|
|
<input type="text" id="direct-link" class="link" readonly spellcheck="false" value="https://spee.ch/{{fileInfo.name}}/{{firstCharacter fileInfo.claimId}}" onclick="select()"/>
|
|
|
|
<button class="copy-button" data-elementtocopy="direct-link" onclick="copyToClipboard(event)">copy</button>
|
|
|
|
</div>
|
|
|
|
{{!-- link to show route for asset--}}
|
|
|
|
<div class="share-option">
|
|
|
|
<a href="/show/{{fileInfo.name}}/{{firstCharacter fileInfo.claimId}}">Details Link</a>
|
|
|
|
<div class="input-error" id="input-error-copy-show-link" hidden="true"></div>
|
|
|
|
</br>
|
|
|
|
<input type="text" id="show-link" class="link" readonly onclick="select()" spellcheck="false" value="https://spee.ch/show/{{fileInfo.name}}/{{firstCharacter fileInfo.claimId}}"/>
|
|
|
|
<button class="copy-button" data-elementtocopy="show-link" onclick="copyToClipboard(event)">copy</button>
|
|
|
|
</div>
|
|
|
|
{{!-- html text for embedding asset--}}
|
|
|
|
<div class="share-option">
|
|
|
|
Embed HTML
|
|
|
|
<div class="input-error" id="input-error-copy-embed-text" hidden="true"></div>
|
|
|
|
<br/>
|
|
|
|
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
|
|
|
|
<input type="text" id="embed-text" class="link" readonly onclick="select()" spellcheck="false" value='<video width="100%" controls><source src="https://spee.ch/{{fileInfo.name}}/{{fileInfo.claimId}}" /></video>'/>
|
|
|
|
{{else}}
|
|
|
|
<input type="text" id="embed-text" class="link" readonly onclick="select()" spellcheck="false" value='<img src="https://spee.ch/{{fileInfo.name}}/{{fileInfo.claimId}}" />'/>
|
|
|
|
{{/ifConditional}}
|
|
|
|
<button class="copy-button" data-elementtocopy="embed-text" onclick="copyToClipboard(event)">copy</button>
|
|
|
|
</div>
|
2017-07-12 17:24:45 +02:00
|
|
|
{{!--markdown text using asset--}}
|
|
|
|
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
|
|
|
|
{{else}}
|
2017-07-17 22:54:50 +02:00
|
|
|
<div class="share-option">
|
2017-07-12 17:24:45 +02:00
|
|
|
Markdown
|
2017-07-14 17:57:12 +02:00
|
|
|
<div class="input-error" id="input-error-copy-markdown-text" hidden="true"></div>
|
2017-07-12 17:24:45 +02:00
|
|
|
<br/>
|
2017-07-14 17:57:12 +02:00
|
|
|
<input type="text" id="markdown-text" class="link" readonly onclick="select()" spellcheck="false" value='![{{fileInfo.name}}](https://spee.ch/{{fileInfo.name}}/{{fileInfo.claimId}})'/>
|
2017-07-12 17:24:45 +02:00
|
|
|
<button class="copy-button" data-elementtocopy="markdown-text" onclick="copyToClipboard(event)">copy</button>
|
2017-07-17 22:54:50 +02:00
|
|
|
</div>
|
2017-07-12 17:24:45 +02:00
|
|
|
{{/ifConditional}}
|
2017-07-07 02:38:57 +02:00
|
|
|
</div>
|
|
|
|
<div class="panel">
|
|
|
|
<h2 class="subheader">Metadata</h2>
|
|
|
|
<table class="metadata-table" style="table-layout: fixed">
|
|
|
|
<tr class="metadata-row">
|
|
|
|
<td class="left-column">Name</td>
|
|
|
|
<td>{{fileInfo.name}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="metadata-row">
|
|
|
|
<td class="left-column">Claim Id</td>
|
|
|
|
<td>{{fileInfo.claimId}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="metadata-row">
|
|
|
|
<td class="left-column">File Name</td>
|
|
|
|
<td>{{fileInfo.fileName}}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2017-07-12 02:12:39 +02:00
|
|
|
<td class="left-column">File Type</td>
|
2017-07-07 02:38:57 +02:00
|
|
|
<td>{{#if fileInfo.fileType}}
|
|
|
|
{{fileInfo.fileType}}
|
|
|
|
{{else}}
|
|
|
|
unknown
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2017-07-12 02:12:39 +02:00
|
|
|
</div>
|