<commit_before>{% extends "base.html" %}
{% load i18n wagtailimages_tags wagtailcore_tags %}
{% block meta_title %}{% blocktrans with album.title as title%}{{ title }}{% endblocktrans %}{% endblock %}

{% block feed_block %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url "album_feeds" %}">
<link rel="alternate" type="application/atom+xml" title="Atom" href="{% url "album_feeds" %}">
{% endblock %}

{% block breadcrumb_menu %}
    <li class="active">{% trans "Album" %}</li>
{% endblock %}

{% block extra_js %}
    <script type="text/javascript" src="{{ STATIC_URL }}album/js/magnific-popup.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}album/js/media-player.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}album/js/lightbox.js"></script>
{% endblock %}

{% block extra_uncompressed_js %}
    <script src="https://connect.soundcloud.com/sdk/sdk-3.1.2.js"></script>
{% endblock %}

{% block extra_css %}
    <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}album/css/magnific-popup.css">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}album/css/album.less">
    <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}album/css/magnific-popup.css">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/article.less">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/album/home.less">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/album/slide_show.less">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/album/photo-album.less">
{% endblock %}

{% block opengraph_block %}
    {% with album.slides.all|random as random_cover %}{% image random_cover.image fill-300x250 as cover_image %}
    <meta property="og:title" content="{{ album.title }}">
    <meta property="og:url" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ request.get_full_path }}">
    <meta property="og:image" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ cover_image.url }}">
    <meta property="og:type" content="article">
    <meta property="og:description" content="{{ album.description }}">
    <meta property="og:published_time" content={{ albums.first.first_published_at|date:"c" }}>

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@{{ SOCIAL_TWITTER }}">
    <meta name="twitter:title" content="{% trans "PARI Albums" %}" >
    <meta name="twitter:description" content="PARI hosts and combines video, still photo, audio and text archives.
    There is content we already have and content we are newly generating. Both will take time and effort to organise and load.
    The videos generated specifically for PARI record the lives and livelihoods of poor and everyday Indians." >
    <meta name="twitter:image" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ cover_image.url }}" >
    <meta name="twitter:url" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ request.get_full_path }}">
    {% endwith %}
{% endblock %}

{% block main %}

<div style="display:none;" id="slug-identifier">{{ album.slug }}</div>
<div style="display:none;" id="type-identifier">{{ album_type }}</div>


<!--  photo album starts here -->

    {% verbatim %}
        <script id="photoAlbumTemplate" type="text/x-jsrender">

          <div class="photo-album-popup popup hide">
            <div class="photo-album">
                <header class="header clear-fix">
                    <div class="left left-icons">
                        <a {% endverbatim %}{% if album_type == 'talking_album' %} href="{% url "talking-album-list" %}" {% else %} href="{% url "other-album-list" %}"{% endif %}{% verbatim %}><i class="fa fa-angle-left back-to-albums" ></i></a>
                        <i id="playPause" href="#" class="fa fa-pause"></i>
                        <i id="showThumbnail" href="#" class="fa fa-th-large"></i>

                        <ul class="audio-player-controls">
                          <li class="play-pause fa fa-pause"></li>
                          <li class="volume-control control hidden">
                            <div class="volume-symbol fa fa-volume-up "></div>
                            <div class="seek-bar toggle-tooltip">
                              <div class="seekbar-max-length">
                                <div class="seekbar-filled"><commit_msg>#61 Social sharing of album description<commit_after>{% extends "base.html" %}
{% load i18n wagtailimages_tags wagtailcore_tags %}
{% block meta_title %}{% blocktrans with album.title as title%}{{ title }}{% endblocktrans %}{% endblock %}

{% block feed_block %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{% url "album_feeds" %}">
<link rel="alternate" type="application/atom+xml" title="Atom" href="{% url "album_feeds" %}">
{% endblock %}

{% block breadcrumb_menu %}
    <li class="active">{% trans "Album" %}</li>
{% endblock %}

{% block extra_js %}
    <script type="text/javascript" src="{{ STATIC_URL }}album/js/magnific-popup.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}album/js/media-player.js"></script>
    <script type="text/javascript" src="{{ STATIC_URL }}album/js/lightbox.js"></script>
{% endblock %}

{% block extra_uncompressed_js %}
    <script src="https://connect.soundcloud.com/sdk/sdk-3.1.2.js"></script>
{% endblock %}

{% block extra_css %}
    <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}album/css/magnific-popup.css">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}album/css/album.less">
    <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}album/css/magnific-popup.css">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/article.less">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/album/home.less">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/album/slide_show.less">
    <link type="text/less" rel="stylesheet" href="{{ STATIC_URL }}css/v2/pages/album/photo-album.less">
{% endblock %}

{% block opengraph_block %}
    {% with album.slides.all|random as random_cover %}{% image random_cover.image fill-300x250 as cover_image %}
    <meta property="og:title" content="{{ album.title }}">
    <meta property="og:url" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ request.get_full_path }}">
    <meta property="og:image" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ cover_image.url }}">
    <meta property="og:type" content="article">
    <meta property="og:description" content="{{ album.description }}">
    <meta property="og:published_time" content={{ albums.first.first_published_at|date:"c" }}>

    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@{{ SOCIAL_TWITTER }}">
    <meta name="twitter:title" content="{{ album.title }}" >
    <meta name="twitter:description" content="{{ album.description }}" >
    <meta name="twitter:image" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ cover_image.url }}" >
    <meta name="twitter:url" content="http{% if request.is_secure %}s{% endif %}://{{ site.hostname }}{{ request.get_full_path }}">
    {% endwith %}
{% endblock %}

{% block main %}

<div style="display:none;" id="slug-identifier">{{ album.slug }}</div>
<div style="display:none;" id="type-identifier">{{ album_type }}</div>


<!--  photo album starts here -->

    {% verbatim %}
        <script id="photoAlbumTemplate" type="text/x-jsrender">

          <div class="photo-album-popup popup hide">
            <div class="photo-album">
                <header class="header clear-fix">
                    <div class="left left-icons">
                        <a {% endverbatim %}{% if album_type == 'talking_album' %} href="{% url "talking-album-list" %}" {% else %} href="{% url "other-album-list" %}"{% endif %}{% verbatim %}><i class="fa fa-angle-left back-to-albums" ></i></a>
                        <i id="playPause" href="#" class="fa fa-pause"></i>
                        <i id="showThumbnail" href="#" class="fa fa-th-large"></i>

                        <ul class="audio-player-controls">
                          <li class="play-pause fa fa-pause"></li>
                          <li class="volume-control control hidden">
                            <div class="volume-symbol fa fa-volume-up "></div>
                            <div class="seek-bar toggle-tooltip">
                              <div class="seekbar-max-length">
                                <div class="seekbar-filled">
{'fraction_non_alphanumeric': 0.19186310063463283, 'fraction_numerical': 0.003626473254759746, 'mean_word_length': 3.502551020408163, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 119, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3505125', 'n_tokens_mistral': 2887, 'n_tokens_neox': 2700, 'n_words': 597}