mirror of
https://github.com/Blockstream/satellite-api.git
synced 2025-02-21 21:31:37 +01:00
only show message download link in development
This commit is contained in:
parent
32e2933109
commit
6b6e0f1eb9
2 changed files with 8 additions and 1 deletions
5
main.rb
5
main.rb
|
@ -41,6 +41,11 @@ get '/info' do
|
|||
response.body
|
||||
end
|
||||
|
||||
get '/queue.html' do
|
||||
content_type "text/html;charset=utf-8"
|
||||
erb :queue
|
||||
end
|
||||
|
||||
# GET /orders/queued
|
||||
# params:
|
||||
# limit - return top limit orders (optional)
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
<tr>
|
||||
<th class="created_at">Created</th>
|
||||
<th class="bid_per_byte">Bid per Byte (millisatoshis)</th>
|
||||
<th class="message">Message</th>
|
||||
<% if settings.development? %><th class="message">Message</th><% end %>
|
||||
<th class="message_size">Message Size</th>
|
||||
<th class="unpaid_bid">Unpaid Bid</th>
|
||||
<th class="uuid">Order ID</th>
|
||||
|
@ -144,7 +144,9 @@
|
|||
$("#sent_table").append($('<tr>').append(
|
||||
$('<td>').text(moment(val.created_at).fromNow()),
|
||||
$('<td>').text(val.bid_per_byte),
|
||||
<% if settings.development? %>
|
||||
$('<td>').html('<a href="order/' + val.uuid + '/sent_message">download</a>'),
|
||||
<% end %>
|
||||
$('<td>').text(val.message_size),
|
||||
$('<td>').text(val.unpaid_bid),
|
||||
$('<td>').text(val.uuid),
|
Loading…
Add table
Reference in a new issue