src/NCBS/WebsiteBundle/Resources/views/Exposition/edit_translation.html.twig line 1

Open in your IDE?
  1. {% set nColNum = 0 %}
  2. {% if column_num is defined %}
  3.     {% set nColNum = column_num %}
  4. {% endif %}
  5. {% set sLink = '' %}
  6. {% if explanation_translation_id_to_edit is defined and explanation_translation_id_to_edit is not null %}    
  7.     {% set sLink = path("editexplanation", {'translationID': explanation_translation_id_to_edit}) %}    
  8. {% elseif work_translation_id_to_edit is defined and work_translation_id_to_edit is not null and work_passage_num_to_edit is defined %}          
  9.     {% set sLink = path("editwork", {'translationID': work_translation_id_to_edit, 'passageNumber': work_passage_num_to_edit }) %}    
  10. {% endif %}
  11. {% if sLink != '' %}    
  12.     <li class="nav-item"><a href="javascript:openWin('{{ sLink }}',screen.width/2,screen.height/1.2,screen.width/2,20);" alt="{{ app.session.get('ui_str')["generic.editicon"] }}" title="{{ app.session.get('ui_str')["generic.editicon"] }}" class="nav-link">{% if nColNum >= 2 %}<span class="mobile-hide">| &nbsp;&nbsp;</span>{% endif %}<i class="far fa-pen-to-square"></i><span class="mobile-only"> {{ app.session.get('ui_str')["generic.editicon"] }}</span></a></li>
  13. {% endif %}