Skip to content

Commit

Permalink
add links to Stripe dashboard for admins in ledgers
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco committed Jan 5, 2024
1 parent e1314db commit b720bb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion liberapay/utils/history.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def iter_payin_events(db, participant, period_start, period_end, minimize=False)
params = locals()
payins = db.all("""
SELECT pi.id, pi.ctime, pi.amount, pi.status, pi.error, pi.amount_settled, pi.fee
, pi.refunded_amount, pi.off_session, r.network AS payin_method
, pi.refunded_amount, pi.off_session, pi.remote_id, r.network AS payin_method
FROM payins pi
JOIN exchange_routes r ON r.id = pi.route
WHERE pi.payer = %(id)s
Expand Down
4 changes: 2 additions & 2 deletions www/%username/ledger/index.spt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if participant.join_time:
years = list(range(current_year, max(participant.join_time.year, 2018) - 1, -1))

[---] text/html
% from "templates/macros/icons.html" import glyphicon
% from "templates/macros/icons.html" import fontawesome, glyphicon
% from "templates/macros/payment-methods.html" import payment_method_icon with context

% extends "templates/layouts/settings.html"
Expand Down Expand Up @@ -184,7 +184,7 @@ if participant.join_time:
<td class="fees">{{ locale.format_money(event['fee']) if event['fee'] else '' }}</td>
<td class="method">{{ payment_method_icon(event['payin_method']) }}</td>
% if show_id
<td class="id">{{ event['id'] }}</td>
<td class="id">{{ event['id'] }}{% if event['remote_id'] %} <a href="https://dashboard.stripe.com/payments/{{ event['remote_id'] }}">{{ fontawesome('external-link-square') }}</a>{% endif %}</td>
% endif
</tr>
% elif event['kind'] == 'payin_transfer'
Expand Down

0 comments on commit b720bb3

Please sign in to comment.