only show message download link in development

This commit is contained in:
Ben Teitelbaum 2019-03-12 16:27:02 -07:00
parent 32e2933109
commit 6b6e0f1eb9
2 changed files with 8 additions and 1 deletions

View file

@ -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)

View file

@ -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),