src/NCBS/WebsiteBundle/Resources/views/Exposition/interface/popup/work_compare_popup.html.twig line 1

Open in your IDE?
  1. {% set sName = app.session.get('ui_str')["exposition.translate.comparetranslations"]|raw %}
  2. {% set sUrlEnd = '' %}
  3. {% set sTranslationUrl2 = '-none-' %}    
  4. {% if compare_to is defined and compare_to is not null %}    
  5.     {% set sTranslationUrl2 = compare_to.url %}    
  6. {% endif %}
  7. {% set sTranslationName = '' %}
  8. {% set sTranslationUrl = '' %}
  9. {% if translation is defined and translation is not null %}
  10.     {% set sTranslationName = translation.name %}
  11.     {% set sTranslationUrl = translation.url %}    
  12. {% endif %}    
  13. {% set sPathStr = "select_work_compare" %}
  14. {% set sUrl = path(sPathStr, {'workID': work.id, 'translationUrl': sTranslationUrl, 'translationUrl2': sTranslationUrl2, 'divisionUrl': passage.getDivision().getUrl(), 'passageNumber': passage.ordering}) ~ sUrlEnd %}
  15. <button type="button" class="btn btn-link" style="font-weight:400;"  onclick='openNav("{{ sName }}","{{ sUrl }}")'><i class="fa-duotone fa-line-columns"></i> {{ sName }}</button>