templates/frontend/Ranking/tabla_ranking.html.twig line 1

Open in your IDE?
  1. <div class="tableRanking" id="ranking">
  2.     <div class="tableHeader">
  3.         <div class="tableRow">
  4.             <div class="tableCell tableCell-pos tableHeader">
  5.                 <div class="ui small header" style="margin:0px">
  6.                     #{#{{ 'competicion.clasificacion.posicion'|trans({}, 'FrontendBundle') }}#}
  7.                 </div>
  8.             </div>
  9.             <div class="tableCell tableCell-licencia tableHeader left aligned">
  10.                 <div class="ui small header" style="margin:0px">
  11.                     {{ 'competicion.clasificacion.licencia'|trans({}, 'FrontendBundle') }}
  12.                 </div>
  13.             </div>
  14.             <div class="tableCell tableCell-nombre tableHeader left aligned">
  15.                 <div class="ui small header" style="margin:0px">
  16.                     {{ 'competicion.clasificacion.jugador'|trans({}, 'FrontendBundle') }}
  17.                 </div>
  18.             </div>
  19.             <div class="tableCell tableCell-total tableHeader">
  20.                 <div class="ui small header" style="margin:0px">
  21.                     {{ 'competicion.clasificacion.total'|trans({}, 'FrontendBundle') }}
  22.                 </div>
  23.             </div>
  24.             <div class="tableGroup-variable headerCompetitions points-columns ">
  25.                 {% set competitionTitle = ranking.tituloCompeticion %}
  26.                 {% for cranking in ranking.competiciones %}
  27.                     {% if not cranking.jornadasIndependientes %}
  28.                         <div class="tableCell tableCell-competicion tableHeader competition-title {% if cranking.competicion is null %}no-link{% endif %}" data-content="{{ cranking.name }}" {% if cranking.competicion is not null %}data-competition-id="{{ cranking.competicion.id }}" {% endif %}>
  29.                             {% set dateRelated = cranking.date %}
  30.                             {% include 'frontend/Ranking/competition-title-ranking.html.twig' %}
  31.                         </div>
  32.                     {% else %}
  33.                         {% for jornada in cranking.competicion.jornadas  %}
  34.                             <div class="tableCell tableCell-competicion tableHeader competition-title " data-content="{{ cranking.name }}" data-competition-id="{{ cranking.competicion.id }}">
  35.                                 {% set dateRelated = jornada.fecha %}
  36.                                 {% include 'frontend/Ranking/competition-title-ranking.html.twig' %}
  37.                             </div>
  38.                         {% endfor %}
  39.                     {% endif %}
  40.                 {% endfor %}
  41.             </div>
  42.         </div>
  43.     </div>
  44.     <div class="bodyTable">
  45.         {% set pos = 0 %}
  46.         {% set posTexto = "" %}
  47.         {% set clase = "" %}
  48.         {% set totalAnt = -10 %}
  49.         {% for clasificadoRankingId, punto in jugadores %}
  50.             {% if puntos[clasificadoRankingId] is defined and (jugadores[clasificadoRankingId]['results']|length >= ranking.minimoPruebas) %}
  51.                 {% set clase = "" %}
  52.                 {% set pos = pos + 1 %}
  53.                 {% if totalAnt != puntos[clasificadoRankingId]['total'] %}
  54.                     {% set posTexto = pos %}
  55.                 {% else %}
  56.                     {% set posTexto = "" %}
  57.                 {% endif %}
  58.             {% else %}
  59.                 {% if jugadores[clasificadoRankingId]['results']|length != 0 %}
  60.                     {% set clase = "aCambiar filaOculta" %}
  61.                     {% set posTexto = "-" %}
  62.                 {% elseif jugadores[clasificadoRankingId]['total'] != 0 %}
  63.                     {% set pos = pos + 1 %}
  64.                     {% set posTexto = pos %}
  65.                 {% endif %}
  66.                 {% if jugadores[clasificadoRankingId]['total'] == 0 and isMedal %}
  67.                     {% set clase = "aCambiar filaOculta" %}
  68.                     {% set posTexto = '' %}
  69.                 {% endif %}
  70.             {% endif %}
  71.             <div class="tableRow center aligned ui fila {{ clase }} ">
  72.                 <div class="tableCell tableCell-pos">
  73.                     {{ posTexto }}
  74.                 </div>
  75.                 <div class="tableCell tableCell-licencia left aligned" style="text-align:left" data-jugador="{{ clasificadoRankingId }}">
  76.                     {# <a href="{{ path("ranking_resultados", {'id': ranking.id,'idj': clasificadoRankingId}) }}"> #}
  77.                     {{ jugadores[clasificadoRankingId]['licencia'] }}
  78.                     {# </a> #}
  79.                 </div>
  80.                 <div class="tableCell tableCell-nombre left aligned" style="text-align:left" data-jugador="{{ clasificadoRankingId }}">
  81.                     {# <a href="{{ path("ranking_resultados", {'id': ranking.id,'idj': clasificadoRankingId}) }}"> #}
  82.                     {{ jugadores[clasificadoRankingId]['nombre'] }}
  83.                     {# </a> #}
  84.                 </div>
  85.                 {% if puntos[clasificadoRankingId] is defined %}
  86.                     {% include 'frontend/Ranking/components/total_cell.html.twig' %}
  87.                     <div class="tableGroup-variable headerPoints points-columns " data-jugador="{{ clasificadoRankingId }}">
  88.                     {% for cranking in ranking.competiciones %}
  89.                         {% if not cranking.jornadasIndependientes %}
  90.                             {% include 'frontend/Ranking/components/competition_cells.html.twig' %}
  91.                         {% else %}
  92.                             {% include 'frontend/Ranking/components/competition_independients_rounds_cells.html.twig' %}
  93.                         {% endif %}
  94.                     {% endfor %}
  95.                 </div>
  96.                     {% set totalAnt = puntos[clasificadoRankingId]['total'] %}
  97.                 {% else %}
  98.                     <div class="tableCell tableCell-total total{{ loop.index }}">-</div>
  99.                     <div class="tableGroup-variable headerPoints points-columns " data-jugador="{{ clasificadoRankingId }}">
  100.                         {% for cranking in ranking.competiciones %}
  101.                             {% if not cranking.jornadasIndependientes %}
  102.                                 <div class="tableCell tableCell-competicion">-</div>
  103.                             {% else %}
  104.                                 <div class="tableCell tableCell-competicion">-</div>
  105.                             {% endif %}
  106.                         {% endfor %}
  107.                     </div>
  108.                 {% endif %}
  109.             </div>
  110.         {% endfor %}
  111.     </div>
  112. </div>