templates/frontend/Ranking/components/total_cell.html.twig line 1

Open in your IDE?
  1. {% set dataContent = '' %}
  2. {% set dataInverted = '' %}
  3. {% if bonus[clasificadoRankingId] is defined or penalidad[clasificadoRankingId] is defined %}
  4.     {% set dataContent = "Puntos: " ~ puntos[clasificadoRankingId]['totalNotCalculated'] %}
  5.     {% if penalidad[clasificadoRankingId] is defined %}
  6.         {% set dataContent = dataContent ~ " | Penalidad: " ~ penalidad[clasificadoRankingId] %}
  7.     {% endif %}
  8.     {% if bonus[clasificadoRankingId] is defined %}
  9.         {% set dataContent = dataContent ~ " | Bonus: " ~ bonus[clasificadoRankingId] %}
  10.     {% endif %}
  11. {% endif %}
  12. <div class="tableCell tableCell-total total{{ loop.index }}"
  13.      data-content="{{ dataContent }}"
  14.      data-inverted=""
  15. >
  16.     {{ puntos[clasificadoRankingId]['total']+0 }}
  17.     <span class="icon-penalty">{% if penalidad[clasificadoRankingId] is defined %}
  18.             <svg class="icon-bonus-penalty" xmlns="http://www.w3.org/2000/svg" width="32" height="32"
  19.                  viewBox="0 0 32 32"><path fill="currentColor"
  20.                                            d="M16 4c6.6 0 12 5.4 12 12s-5.4 12-12 12S4 22.6 4 16S9.4 4 16 4m0-2C8.3 2 2 8.3 2 16s6.3 14 14 14s14-6.3 14-14S23.7 2 16 2"></path><path
  21.                         fill="currentColor" d="M8 15h16v2H8z"></path></svg>{% endif %}</span>
  22.     <span class="icon-bonus">{% if bonus[clasificadoRankingId] is defined %}
  23.             <svg class="icon-bonus-penalty" xmlns="http://www.w3.org/2000/svg" width="32" height="32"
  24.                  viewBox="0 0 32 32"><path fill="currentColor"
  25.                                            d="M16 4c6.6 0 12 5.4 12 12s-5.4 12-12 12S4 22.6 4 16S9.4 4 16 4m0-2C8.3 2 2 8.3 2 16s6.3 14 14 14s14-6.3 14-14S23.7 2 16 2"></path><path
  26.                         fill="currentColor" d="M24 15h-7V8h-2v7H8v2h7v7h2v-7h7z"></path></svg>{% endif %}</span>
  27. </div>