{{!
    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 customcertelement_expiry/date

    The certificate's expiry date as shown in HTML reports (this is not used to
    render the date on the certificate).

    Context variables required for this template:
    * expiry A string describing the expiry status, one of "ok" (certificate
      has not expired and is valid for the next two weeks, "soon" (certificate
      expires in the next two weeks), "expired" (certificate has expired).
    * date Human-readable date string.

    Example context (json):
    {
        "expiry": "ok",
        "date": "Thursday, 16 July 2026, 3:40 PM"
    }
}}
<span class="customcertelement-expiry {{expiry}}">{{date}}</span>
