{% extends "layout.html.twig" %} {% set current_route = app.request.attributes.get('_route') %} {% set current_route_from_query_params = app.request.query.get('currentRoute') %} {% set active_route = null %} {% if current_route == 'all' or current_route_from_query_params == 'all' %} {% set active_route = 'all' %} {% elseif current_route == 'annotated' or current_route_from_query_params == 'annotated' %} {% set active_route = 'annotated' %} {% elseif current_route == 'archive' or current_route_from_query_params == 'archive' %} {% set active_route = 'archive' %} {% elseif current_route == 'starred' or current_route_from_query_params == 'starred' %} {% set active_route = 'starred' %} {% elseif current_route == 'unread' or current_route_from_query_params == 'unread' %} {% set active_route = 'unread' %} {% elseif current_route == 'untagged' %} {% set active_route = 'untagged' %} {% endif %} {% set has_filters = form is not null %} {% set export_category = current_route == 'homepage' ? 'unread' : current_route %} {% set export_filters = {} %} {% if export_category == 'tag_entries' %} {% set export_filters = {tag: tag.slug} %} {% elseif export_category == 'search' %} {% set export_filters = {search_entry: {term: searchTerm}, currentRoute: current_route_from_query_params} %} {% elseif export_category == 'same_domain' %} {% set export_filters = {entry: app.request.attributes.get('id')} %} {% endif %} {% set list_exports = knp_menu_get('wallabag_list_exports', [], {category: export_category, filters: export_filters}) %} {% set has_exports = list_exports.hasChildren and list_exports.displayChildren %} {% block head %} {{ parent() }} {% if tag is defined and app.user.config.feedToken %} {% endif %} {% endblock %} {% block title %} {% set filter = '' %} {% if tag is defined %} {% set filter = tag.slug %} {% endif %} {% if searchTerm is defined and searchTerm is not empty %} {% set filter = searchTerm %} {% endif %} {% include "Entry/_title.html.twig" with {'filter': filter} %} {% endblock %} {% block nav_panel_extra_actions %} {% if active_route %}
  • casino
  • {% endif %} {% if has_filters %}
  • {% endif %} {% if has_exports %}
  • {% endif %} {% endblock %} {% block content %} {% set current_path = app.request.requesturi %} {% set list_mode = app.user.config.listMode %} {% set entries_with_archived_class_routes = ['tag_entries', 'search', 'all'] %} {% set current_route = app.request.attributes.get('_route') %} {% if current_route == 'homepage' %} {% set current_route = 'unread' %} {% endif %}
    {{ 'entry.list.number_on_the_page'|trans({'%count%': entries.count}) }} {% if entries.count > 0 %}
    {% endif %} {% if entries.count > 0 and is_granted('EDIT_ENTRIES') %} {% endif %} {% if app.user.config.feedToken %} {% include "Entry/_feed_link.html.twig" %} {% endif %}
    {% if current_route == 'search' and is_granted('CREATE_TAGS') %}
    {% endif %} {% if entries.getNbPages > 1 %} {{ pagerfanta(entries, 'default_wallabag') }} {% endif %}
    {% if entries.count > 0 %}
      {% for entry in entries %}
    1. {% if list_mode == 1 %} {% include "Entry/_card_list.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} {% elseif not entry.previewPicture is null and entry.mimetype starts with 'image/' %} {% include "Entry/_card_full_image.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} {% else %} {% include "Entry/_card_preview.html.twig" with {'entry': entry, 'currentRoute': current_route, 'routes': entries_with_archived_class_routes} only %} {% endif %}
    2. {% endfor %}
    {% endif %} {% if entries.getNbPages > 1 %}
    {{ pagerfanta(entries, 'default_wallabag') }}
    {% endif %}
    {% if has_exports %}

    {{ 'entry.list.export_title'|trans }}

    {{ knp_menu_render(list_exports) }}
    {% endif %} {% if has_filters %}

    {{ 'entry.filters.title'|trans }}

    {% if current_route != 'untagged' %} {% endif %}
    {{ form_row(form.language, { row_attr: { class: 'col s12', }, }) }}
    {{ form_label(form.httpStatus) }}
    {{ form_widget(form.httpStatus) }}
    {{ form_label(form.readingTime) }}
    {{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
    {{ form_widget(form.readingTime.right_number, {'type': 'number'}) }}
    {{ form_widget(form.domainName, {'type': 'text', 'attr': {'placeholder': 'website.com'}}) }} {{ form_label(form.domainName) }}
    {{ form_label(form.createdAt) }}
    {{ form_widget(form.createdAt.left_date, {'type': 'date', 'attr': {'data-value': form.createdAt.left_date.vars.value}}) }}
    {{ form_widget(form.createdAt.right_date, {'type': 'date', 'attr': {'data-value': form.createdAt.right_date.vars.value}}) }}
    {% endif %} {% endblock %}