Skip to content

Commit

Permalink
Fix downloads button downloading wrong thing (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
PringlePot authored Jul 20, 2023
1 parent 2566640 commit 9272ac3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ <h3 class="text-secondary">(<span id="place-capable" class="odometer text-light"
<hr/>
<p class="card-text">${order.message ? cleanHTML(order.message) : '<span class="text-secondary">no description provided</span>'}</p>
<a href="${cleanHTML(order.images.order)}" download class="btn btn-primary mt-1">Download image</a>
${order.images.priority ? `<a href="${cleanHTML(order.images.order)}" download class="btn btn-secondary ml-1 mt-1">Download priority map</a>` : ''}
${order.images.priority ? `<a href="${cleanHTML(order.images.priority)}" download class="btn btn-secondary ml-1 mt-1">Download priority map</a>` : ''}
<div class="flex mt-2 text-secondary">
${order.creator ? `<img alt="Avatar" src="${cleanHTML(order.creator.avatar)}" class="rounded" width="32" height="32"> ${cleanHTML(order.creator.name)}` : 'anonymous artist'} - ${new Date(order.createdAt).toLocaleString()}
</div>
Expand Down

0 comments on commit 9272ac3

Please sign in to comment.