{# Adult Video Card Component Parameters: - movie: The adult video object with all properties (uses 'movie' variable name from controller) - view_mode: 'grid', 'list', or 'covers' (optional, defaults to 'grid') - show_rating: Whether to show rating (optional, defaults to true) - show_runtime: Whether to show runtime (optional, defaults to true) - show_genres: Whether to show genre tags (optional, defaults to true) - show_watched: Whether to show watched status (optional, defaults to true) #} {% set view_mode = view_mode|default('grid') %} {% set show_rating = show_rating|default(true) %} {% set show_runtime = show_runtime|default(true) %} {% set show_genres = show_genres|default(true) %} {% set show_watched = show_watched|default(true) %} {% if view_mode == 'list' %}
  • {% if movie.poster_url %} {{ movie.title }} {% else %}
    {% endif %}

    {{ movie.title }}

    {% if movie.release_date %} {{ movie.release_date|date('Y') }} {% endif %} {% if show_rating and movie.rating %} ⭐ {{ movie.rating }}/10 {% endif %} {% if show_runtime and movie.runtime_minutes %} {{ (movie.runtime_minutes / 60)|round(1) }}h {{ movie.runtime_minutes % 60 }}m {% endif %} {{ movie.source_name }}
    {% if show_watched and movie.watched %} Watched {% endif %} {% if movie.is_favorite %} Favorite {% endif %}
  • {% elseif view_mode == 'covers' %}
    {% if movie.poster_url %}
    {{ movie.title }}
    {% if show_rating and movie.rating %}
    {{ movie.rating }}
    {% endif %} {% if show_watched and movie.watched %}
    Watched
    {% endif %}
    {% else %}
    {% endif %}
    {{ movie.title }}
    {% if movie.release_date %}

    {{ movie.release_date|date('Y') }}

    {% endif %} {% if show_genres and movie.genre %}
    {% for genre in movie.genre|split(',')|slice(0, 2) %} {{ genre|trim }} {% endfor %}
    {% endif %}
    {% else %}
    {% if movie.poster_url %} {{ movie.title }} {% else %}
    {% endif %}
    {{ movie.title }}
    {% if movie.release_date %} {{ movie.release_date|date('Y') }} {% endif %} {% if show_rating and movie.rating %} ⭐ {{ movie.rating }}/10 {% endif %}
    {% if movie.source_name %}

    {{ movie.source_name }}

    {% endif %}
    {% if movie.overview %}

    {{ movie.overview|slice(0, 150) }}{% if movie.overview|length > 150 %}...{% endif %}

    {% endif %}
    {% if show_runtime and movie.runtime_minutes %} {{ (movie.runtime_minutes / 60)|round(1) }}h {{ movie.runtime_minutes % 60 }}m {% endif %}
    {% if show_watched and movie.watched %} Watched {% endif %} {% if movie.is_favorite %} Favorite {% endif %}
    {% endif %}