updated show page to match columns of publish

This commit is contained in:
bill bittner 2017-10-10 12:07:32 -07:00
parent 58e180784b
commit 9306346ae1
2 changed files with 70 additions and 61 deletions

View file

@ -1,33 +1,33 @@
<div id="show-share-buttons"> <div id="show-share-buttons">
<div class="row row--wide row--short"> <div class="row row--wide">
<div class="column column--2 column--sml-10"> <div class="column column--2 column--sml-10">
<h3>Share:</h3> <span class="label">Share:</span>
</div><div class="column column--8 column--sml-10"> </div><div class="column column--8 column--sml-10">
<div class="row row--short"> <div class="row row--short row--wide">
<div class="column column--2"> <div class="column column--2">
<a target="_blank" href="https://twitter.com/intent/tweet?text=https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}">twitter</a> <a target="_blank" href="https://twitter.com/intent/tweet?text=https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}">twitter</a>
</div> </div>
<div class="column column--2"> <div class="column column--2">
<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fspee.ch%2F{{fileInfo.shortId}}%2F{{fileInfo.name}}.{{fileInfo.fileExt}}&amp;src=sdkpreparse">facebook</a> <a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fspee.ch%2F{{fileInfo.shortId}}%2F{{fileInfo.name}}.{{fileInfo.fileExt}}&amp;src=sdkpreparse">facebook</a>
</div> </div>
<div class="column column--2"> <div class="column column--2">
<a target="_blank" href="https://www.tumblr.com/widgets/share/tool?posttype=photo&title=Spee.ch%20%7C%20Share&caption=Shared%20From%20https://spee.ch%20A%20Decentralized%20Image%20Hosting%20Service%20Running%20On%20The%20LBRY%20Protocol%20&content=https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}&tags=lbry%2C%20spee.ch%2C%20lbry.io&canonicalUrl=https%3A%2F%2Fspee.ch%2F{{fileInfo.shortId}}%2F{{fileInfo.name}}.{{fileInfo.fileExt}}&shareSource=tumblr_share_button">tublr</a> <a target="_blank" href="https://www.tumblr.com/widgets/share/tool?posttype=photo&title=Spee.ch%20%7C%20Share&caption=Shared%20From%20https://spee.ch%20A%20Decentralized%20Image%20Hosting%20Service%20Running%20On%20The%20LBRY%20Protocol%20&content=https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}&tags=lbry%2C%20spee.ch%2C%20lbry.io&canonicalUrl=https%3A%2F%2Fspee.ch%2F{{fileInfo.shortId}}%2F{{fileInfo.name}}.{{fileInfo.fileExt}}&shareSource=tumblr_share_button">tublr</a>
</div> </div>
<div class="column column--2"> <div class="column column--2">
<a target="_blank" href="https://www.reddit.com/submit?url=http%3A%2F%2Fspee.ch%2F{{fileInfo.shortId}}%2F{{fileInfo.name}}.{{fileInfo.fileExt}}&title={{fileInfo.name}}(Decentralized%20Hosting%20Provided%20By%20Spee.ch%20Using%20the%20LBRY%20Protocol)">reddit</a> <a target="_blank" href="https://www.reddit.com/submit?url=http%3A%2F%2Fspee.ch%2F{{fileInfo.shortId}}%2F{{fileInfo.name}}.{{fileInfo.fileExt}}&title={{fileInfo.name}}(Decentralized%20Hosting%20Provided%20By%20Spee.ch%20Using%20the%20LBRY%20Protocol)">reddit</a>
</div>
</div> </div>
</div> </div>
</div> </div>
</div>
</div> </div>
<div id="show-short-link"> <div class="row row--wide">
<div class="row row--wide row--short"> <div id="show-short-link">
<div class="column column--2 column--sml-10"> <div class="column column--2 column--sml-10">
<h3>Link:</h3> <span class="label">Link:</span>
</div><div class="column column--8 column--sml-10"> </div><div class="column column--8 column--sml-10">
<div class="row row--short"> <div class="row row--short row--wide">
<div class="column column--7"> <div class="column column--7">
<div class="input-error" id="input-error-copy-short-link" hidden="true"></div> <div class="input-error" id="input-error-copy-short-link" hidden="true"></div>
<input type="text" id="short-link" class="input-disabled input-text--full-width" readonly spellcheck="false" value="https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}" onclick="select()"/> <input type="text" id="short-link" class="input-disabled input-text--full-width" readonly spellcheck="false" value="https://spee.ch/{{fileInfo.shortId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}" onclick="select()"/>
@ -37,52 +37,61 @@
</div> </div>
</div> </div>
</div> </div>
</div> <div id="show-embed-code">
<div id="show-embed-code">
<div class="row row--wide row--short">
<div class="column column--2 column--sml-10"> <div class="column column--2 column--sml-10">
<h3>Embed:</h3> <span class="label">Embed:</span>
</div><div class="column column--8 column--sml-10"> </div><div class="column column--8 column--sml-10">
<div class="row row--short"> <div class="row row--short row--wide">
<div class="column column--7"> <div class="column column--7">
<div class="input-error" id="input-error-copy-embed-text" hidden="true"></div> <div class="input-error" id="input-error-copy-embed-text" hidden="true"></div>
{{#ifConditional fileInfo.fileType '===' 'video/mp4'}} {{#ifConditional fileInfo.fileType '===' 'video/mp4'}}
<input type="text" id="embed-text" class="input-disabled input-text--full-width" readonly onclick="select()" spellcheck="false" value='&lt;video width="100%" controls poster="{{fileInfo.thumbnail}}" src="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}"/>&lt;/video>'/> <input type="text" id="embed-text" class="input-disabled input-text--full-width" readonly onclick="select()" spellcheck="false" value='&lt;video width="100%" controls poster="{{fileInfo.thumbnail}}" src="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}"/>&lt;/video>'/>
{{else}} {{else}}
<input type="text" id="embed-text" class="input-disabled input-text--full-width" readonly onclick="select()" spellcheck="false" value='&lt;img src="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}"/>'/> <input type="text" id="embed-text" class="input-disabled input-text--full-width" readonly onclick="select()" spellcheck="false" value='&lt;img src="https://spee.ch/{{fileInfo.claimId}}/{{fileInfo.name}}.{{fileInfo.fileExt}}"/>'/>
{{/ifConditional}} {{/ifConditional}}
</div><div class="column column--1"></div><div class="column column--2"> </div><div class="column column--1"></div><div class="column column--2">
<button class="button--primary" data-elementtocopy="embed-text" onclick="copyToClipboard(event)">copy</button> <button class="button--primary" data-elementtocopy="embed-text" onclick="copyToClipboard(event)">copy</button>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<h3><a class="label" id="show-details-toggle" href="#" onclick="toggleSection(event)" data-open="false" data-openlabel="[less]" data-closedlabel="[more]" data-slaveelementid="show-details">[more]</a></h3> <div class="row row--wide">
<div id="show-details" hidden="true"> <a class="label" id="show-details-toggle" href="#" onclick="toggleSection(event)" data-open="false" data-openlabel="[less]" data-closedlabel="[more]" data-slaveelementid="show-details">[more]</a>
<table class="metadata-table" style="table-layout: fixed"> </div>
<tr class="metadata-row">
<td class="left-column">Name</td> <div id="show-details" hidden="true">
<td>{{fileInfo.name}}</td> <div id="show-claim-name">
</tr> <div class="column column--2 column--sml-10">
<tr class="metadata-row"> <span class="label">Name:</span>
<td class="left-column">Claim Id</td> </div><div class="column column--8 column--sml-10">
<td class="wrap-words">{{fileInfo.claimId}}</td> {{fileInfo.name}}
</tr> </div>
<tr class="metadata-row"> </div>
<td class="left-column">File Name</td> <div id="show-claim-id">
<td>{{fileInfo.fileName}}</td> <div class="column column--2 column--sml-10">
</tr> <span class="label">Claim Id:</span>
<tr> </div><div class="column column--8 column--sml-10">
<td class="left-column">File Type</td> {{fileInfo.claimId}}
<td>{{#if fileInfo.fileType}} </div>
{{fileInfo.fileType}} </div>
{{else}} <div id="show-claim-id">
unknown <div class="column column--2 column--sml-10">
{{/if}} <span class="label">File Name:</span>
</td> </div><div class="column column--8 column--sml-10">
</tr> {{fileInfo.fileName}}
</table> </div>
</div>
<div id="show-claim-id">
<div class="column column--2 column--sml-10">
<span class="label">File Type:</span>
</div><div class="column column--8 column--sml-10">
{{#if fileInfo.fileType}}
{{fileInfo.fileType}}
{{else}}
unknown
{{/if}}
</div>
</div>
</div> </div>