summaryrefslogtreecommitdiff
path: root/templates/chimere/blocks/share_bar.html
blob: 73177fc72e3983d22fa92698572efe56cedb8323 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% load i18n %}
    {% if share_networks %}
    {% if simple %}{% trans "Share on"%}{% for share_network in share_networks %}
    <a href='{{share_network.1}}'>{{share_network.0}}</a>
    {% endfor %}{%else%}
    <ul class='share'>
        <li class='share-send'><a class='share_link share_id_{{share_networks.0.0}}{% if email_only %}_single{%endif%}' href='{{share_networks.0.1}}'>{% trans "Email" %}</a></li>
        {% if not email_only %}<li class='share-icon'><a href="#">{% trans "Share" %}</a></li>{% for share_network in share_networks %}
        {%if forloop.counter0%}
        <li class='shared' style='display:none'><a class='share_link share_id_{{share_network.0}}' href='{{share_network.1}}'><img src="{{share_network.2}}" alt="{{share_network.0}}"/></a></li>{%endif%}
    {% endfor %}
        <li class='shared' style='display:none'><a href='{% url chimere:feeds-global %}'><img src='{{STATIC_URL}}chimere/img/feed.png' alt='Feeds'/></a></li>{%endif%}
    </ul>{% endif %}
    <script type='text/javascript'>
        <!--
        $(function(){
            share_link_update();
        });
        // -->
    </script>
    {% endif %}