Added short url on upload
This commit is contained in:
parent
90adfe0b23
commit
95481a07fa
8 changed files with 99 additions and 4 deletions
|
@ -85,7 +85,7 @@
|
|||
<img src="/img/logo.png" id="previewImage" alt="Image">
|
||||
</div>
|
||||
<div>
|
||||
<%- include('../partials/details', {file: {}, index: 0}) %>
|
||||
<%- include('../partials/details', {file: {}, index: 0, hideShortUrl: true}) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<img src="<%= page.upload.smallFile %>" alt="Miniature">
|
||||
</div>
|
||||
<div>
|
||||
<%- include('../partials/details', {file: page.upload, index: 0}) %>
|
||||
<%- include('../partials/details', {file: page.upload, index: 0, hideShortUrl: false}) %>
|
||||
</div>
|
||||
</div>
|
||||
<% } %>
|
||||
|
|
|
@ -8,6 +8,18 @@
|
|||
onclick="copyToClipboard('originalFile-<%= index %>', 'Lien copié')"
|
||||
>
|
||||
</div>
|
||||
<% if ( hideShortUrl === false ) { %>
|
||||
<div class="field">
|
||||
<label for="urlshort-<%= index %>">Taille originale (url raccourcie)</label>
|
||||
<input
|
||||
type="text"
|
||||
name="urlshort-<%= index %>"
|
||||
id="urlshort-<%= index %>"
|
||||
value="<%= file.urlshort %>"
|
||||
onclick="copyToClipboard('urlshort-<%= index %>', 'Lien copié')"
|
||||
>
|
||||
</div>
|
||||
<% } %>
|
||||
<div class="field">
|
||||
<label for="mediumFile-<%= index %>">Taille moyenne (800x600)</label>
|
||||
<input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue