{{!
    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/>.
}}

{{=<% %>=}}
<div class="treasurehunt-play-clue-page">

  <ion-card padding class="clue-card">
    <div class="card-title">
      {{gameStatus.lastSuccessfulStage.name}}
      <ion-badge>{{gameStatus.lastSuccessfulStage.position}} / {{gameStatus.lastSuccessfulStage.totalnumber}}</ion-badge>
    </div>
    <ion-card-content>
      <core-format-text  [text]="gameStatus.lastSuccessfulStage.clue"></core-format-text>
    </ion-card-content>
    <ion-row>
      <ion-col text-right>
        <button *ngIf="gameStatus.lastSuccessfulStage.question" icon-start ion-button core-site-plugins-new-content 
          title="{{'plugin.mod_treasurehunt.question' | translate}}" component="mod_treasurehunt" method="mobile_treasurehunt_play_question" 
          [jsData]="{lastSuccessfulStage:gameStatus.lastSuccessfulStage, sendAnswer: sendAnswer}" [preSets]="{getFromCache: 1, saveToCache: 1}">
          <ion-icon name="help-circle"></ion-icon>
          {{'plugin.mod_treasurehunt.question' | translate}}
        </button>
      </ion-col>
    </ion-row>
  </ion-card>

</div>