Skip to content
Snippets Groups Projects
Select Git revision
  • 78e5171503f5fa54dd12b0fe64b0133a6f0c436e
  • main default protected
  • OZG-7981-Statistik-Anzeige-von-Mandanten
  • OZG-8378-fix-routing
  • OZG-8376-ods-select
  • OZG-6319-inlcude-externe-fachstelle-to-collaboration
  • OZG-8405-Alfa-Bearbeiter-auswählen-und-entfernen-Design
  • OZG-8430-radio-button-card-styling
  • admin-cleanup
  • OZG-7981-Statistik-Anzeige-von-Mandanten-2
  • wip-sebo-sebastian
  • fix-storybook
  • OZG-8314-Alfa-Vorgang-Bearbeiter-Zuweisung-entfernen
  • testing-imports
  • storybook-improvements
  • release-administration
  • OZG-8422-BenutzerSpeichern
  • release-info
  • release
  • OZG-7856_schadcode-scanner-e2e
  • OZG-7985-fix-sorting
  • 1.12.1-administration
  • 1.12.0-administration
  • 1.12.0-info
  • 2.27.0-alfa
  • 1.11.0-info
  • 1.11.0-administration
  • 2.26.0-alfa
  • 1.10.0-info
  • 1.10.0-administration
  • 2.25.0-alfa
  • 1.9.0-info
  • 1.9.0-administration
  • 2.24.0-alfa
  • 1.8.0-info
  • 1.8.0-administration
  • 2.23.0-alfa
  • 1.7.0-info
  • 1.7.0-administration
  • 2.22.0-alfa
  • 1.6.0-info
41 results

release-startdev.sh

Blame
  • resource_item.html 2.44 KiB
    {% set url_action = 'edit' if url_is_edit and can_edit else 'read' %}
    {% set url = h.url_for(named_route='resource.'+url_action, id=pkg.name, resource_id=res.id) %}
    
    {# hack for correcting slave url if resource was uploaded #}
    {% set download = h.odsh_public_resource_url(res) or url %}
    
    {% set rtitle=h.resource_display_name(res) if res.name else ' '%}
    {% set resource_size = h.tpsh_get_resource_size(res) %}
    {% set res_format =  res.format.replace('_SRVC','') %}
    
    <li class="resource-item" data-id="{{ res.id }}">
        <div class="resource-title-container">
            <div class="resource-title" title="{{ rtitle }}">
                {% if res.name %}
                <a href="{{ download }}">
                    {{ h.resource_display_name(res) }}
                </a>
                {% endif %}
                {% if resource_size %}
                <p>{{ _('File size') }}: {{ resource_size }}</p>  
                {% endif %}
                {% set number_of_pages = res.get('number_of_pages') %}
                {% if number_of_pages%}
                <p>{{ _('Number of pages') }}: {{ number_of_pages }}</p>   
                {% endif %}
            </div>
            <div class="resource-icons">
                {% block resource_item_explore_links %}
                <a href="{{ download }}" aria-label="{{ _('download file') }}">
                    <div aria-hidden="true" class="icon icon-download"></div>
                </a>
                {% if can_edit %}
                <a href="{{ h.url_for(named_route='resource.edit', id=pkg.name, resource_id=res.id) }}">
                    <div class="icon icon-edit"></div>
                </a>
                {% endif %}
                {% endblock %}
            </div>
                {% if res_format %}
                <a href="{{ download }}" >
                   <div class="dataformat-label resource-dataformat-label label" style='font-size:{{150/(res_format|length)}}px'>{{res_format}}</div>
                </a>
                {% endif %}
        </div>
    </li>
        
            <!-- </div>
            <div class="row resource-description-container">
            </div>
          <div class="resource-icons">
            <a href="{{ download }}" aria-label="{{ _('download file') }}">
              <div aria-hidden="true" class="icon icon-download"></div>
            </a>
            {% if can_edit %}
            <a href="{{ h.url_for(named_route='resource.edit', id=pkg.name, resource_id=res.id) }}">
              <div class="icon icon-edit"></div>
            </a>
            {% endif %}
          </div>
          <div>
            
            
          </div>
          </div>
        </div>
      </div>
    
    </li> -->