{{!
    This file is part of Moodle - http://moodle.org/

    Moodle is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Moodle is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
}}
{{!
    @template block_xp/recent-activity

    Recent activity list.

    Example context (json):
    {
    }
}}
<div class="block_xp-recent-activity">
    <h5 class="block_xp-heading">{{#str}}recentrewards, block_xp{{/str}}</h5>
    {{^hasrecentactivities}}
        <p>-</p>
    {{/hasrecentactivities}}
    {{#hasrecentactivities}}
    {{#x}}
        <div class="xp-space-y-0.5">
        {{#recentactivities}}
            <div class="activity-entry xp-text-sm xp-flex">
                <div class="xp-flex-none xp-text-gray-500 xp-order-1" title="{{date}}">{{dateagotiny}}</div>
                <div class="xp-flex-none xp-min-w-[2.25rem]">{{{xphtml}}}</div>
                <div class="xp-flex-1 xp-mx-2">{{description}}</div>
            </div>
        {{/recentactivities}}
        </div>
        {{/x}}

        <table class="xp-w-full xp-border-0">
        {{#recentactivities}}
            <tr>
                <td class="xp-align-top xp-p-0 xp-pr-2">{{{xphtml}}}</td>
                <td class="xp-align-top xp-p-0 xp-mx-2">{{description}}</td>
                <td class="xp-align-top xp-p-0 xp-pl-2 xp-text-gray-500 xp-text-right" title="{{date}}">{{dateagotiny}}</td>
            </tr>
        {{/recentactivities}}
        </table>

    {{/hasrecentactivities}}
</div>