﻿@model IEnumerable<GiveCRM.Models.Donation>

@{
    Layout = null;
}

<table>
<tr>
    <th>Date</th><th>Amount</th>
</tr>

@foreach (var donation in Model)
{
    <tr>
        <td>@donation.Date.ToLongDateString()</td>
        <td>@donation.Amount</td>
    </tr>
}

</table>
﻿@using System.Globalization
@model IEnumerable<GiveCRM.Models.Donation>

@{
    Layout = null;
}

<table>
<tr>
    <th>Date</th><th>Amount</th>
</tr>

@foreach (var donation in Model)
{
    <tr>
        <td>@donation.Date.ToLongDateString()</td>
        <td>@donation.Amount.ToString("C2", NumberFormatInfo.CurrentInfo)</td>
    </tr>
}

</table>
Fix a niggle from the wiki: display donation amounts to two decimal places. Also format them as a currency, and respect the current culture.
Fix a niggle from the wiki: display donation amounts to two decimal places. Also format them as a currency, and respect the current culture.
