2017-07-06 17:38:57 -07:00
|
|
|
<div class="panel">
|
2017-07-06 18:03:29 -07:00
|
|
|
<h2>Name</h2>
|
|
|
|
<p>{{fileInfo.name}}</>
|
2017-07-06 17:38:57 -07:00
|
|
|
</div>
|
|
|
|
<div class="panel links">
|
|
|
|
<h2 class="subheader">Links</h2>
|
2017-08-18 16:52:58 -07:00
|
|
|
{{!--short direct link to asset--}}
|
|
|
|
<div class="share-option">
|
|
|
|
<a href="/{{fileInfo.shortId}}/{{fileInfo.name}}{{fileInfo.fileExt}}">Permanent Short Link</a> (most convenient)
|
|
|
|
<div class="input-error" id="input-error-copy-short-link" hidden="true"></div>
|
|
|
|
<br/>
|
|
|
|
<input type="text" id="short-link" class="link" readonly spellcheck="false" value="https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}{{fileInfo.fileExt}}" onclick="select()"/>
|
|
|
|
<button class="copy-button" data-elementtocopy="short-link" onclick="copyToClipboard(event)">copy</button>
|
|
|
|
</div>
|
2017-07-17 13:54:50 -07:00
|
|
|
{{!-- link to show route for asset--}}
|
|
|
|
<div class="share-option">
|
2017-08-18 16:52:58 -07:00
|
|
|
<a href="/{{fileInfo.claimId}}/{{fileInfo.name}}{{fileInfo.fileExt}}">Permanent Long Link</a> (fastest service)
|
2017-07-19 14:11:47 -07:00
|
|
|
<div class="input-error" id="input-error-copy-long-link" hidden="true"></div>
|
2017-07-17 13:54:50 -07:00
|
|
|
</br>
|
2017-08-01 18:58:13 -07:00
|
|
|
<input type="text" id="long-link" class="link" readonly onclick="select()" spellcheck="false" value="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}{{fileInfo.fileExt}}"/>
|
2017-07-19 14:11:47 -07:00
|
|
|
<button class="copy-button" data-elementtocopy="long-link" onclick="copyToClipboard(event)">copy</button>
|
2017-08-03 22:10:50 -07:00
|
|
|
</div>
|
2017-08-18 16:52:58 -07:00
|
|
|
{{!-- gif v link --}}
|
|
|
|
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
|
2017-08-03 22:10:50 -07:00
|
|
|
<div class="share-option">
|
2017-08-18 16:52:58 -07:00
|
|
|
<a href="/{{fileInfo.shortId}}/{{fileInfo.name}}.gifv">gifv</a>
|
|
|
|
<div class="input-error" id="input-error-copy-gifv-text" hidden="true"></div>
|
2017-08-03 22:10:50 -07:00
|
|
|
<br/>
|
2017-08-18 16:52:58 -07:00
|
|
|
<input type="text" id="gifv-text" class="link" readonly onclick="select()" spellcheck="false" value='https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.gifv'/>
|
|
|
|
<button class="copy-button" data-elementtocopy="gifv-text" onclick="copyToClipboard(event)">copy</button>
|
2017-07-17 13:54:50 -07:00
|
|
|
</div>
|
2017-08-20 16:56:37 -07:00
|
|
|
{{/ifConditional}}
|
2017-07-17 13:54:50 -07:00
|
|
|
{{!-- 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'}}
|
2017-08-01 18:58:13 -07:00
|
|
|
<input type="text" id="embed-text" class="link" readonly onclick="select()" spellcheck="false" value='<video width="100%" controls src="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}{{fileInfo.fileExt}}"/></video>'/>
|
2017-07-17 13:54:50 -07:00
|
|
|
{{else}}
|
2017-08-01 18:58:13 -07:00
|
|
|
<input type="text" id="embed-text" class="link" readonly onclick="select()" spellcheck="false" value='<img src="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}{{fileInfo.fileExt}}" />'/>
|
2017-07-17 13:54:50 -07:00
|
|
|
{{/ifConditional}}
|
|
|
|
<button class="copy-button" data-elementtocopy="embed-text" onclick="copyToClipboard(event)">copy</button>
|
|
|
|
</div>
|
2017-07-12 08:24:45 -07:00
|
|
|
{{!--markdown text using asset--}}
|
|
|
|
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
|
|
|
|
{{else}}
|
2017-07-17 13:54:50 -07:00
|
|
|
<div class="share-option">
|
2017-07-12 08:24:45 -07:00
|
|
|
Markdown
|
2017-07-14 08:57:12 -07:00
|
|
|
<div class="input-error" id="input-error-copy-markdown-text" hidden="true"></div>
|
2017-07-12 08:24:45 -07:00
|
|
|
<br/>
|
2017-08-01 18:58:13 -07:00
|
|
|
<input type="text" id="markdown-text" class="link" readonly onclick="select()" spellcheck="false" value='![{{fileInfo.name}}](https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}{{fileInfo.fileExt}})'/>
|
2017-07-12 08:24:45 -07:00
|
|
|
<button class="copy-button" data-elementtocopy="markdown-text" onclick="copyToClipboard(event)">copy</button>
|
2017-07-17 13:54:50 -07:00
|
|
|
</div>
|
2017-07-12 08:24:45 -07:00
|
|
|
{{/ifConditional}}
|
2017-07-06 17:38:57 -07: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-11 17:12:39 -07:00
|
|
|
<td class="left-column">File Type</td>
|
2017-07-06 17:38:57 -07:00
|
|
|
<td>{{#if fileInfo.fileType}}
|
|
|
|
{{fileInfo.fileType}}
|
|
|
|
{{else}}
|
|
|
|
unknown
|
|
|
|
{{/if}}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2017-07-11 17:12:39 -07:00
|
|
|
</div>
|