diff options
Diffstat (limited to 'templates/chimere/blocks/share_bar.html')
-rw-r--r-- | templates/chimere/blocks/share_bar.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/templates/chimere/blocks/share_bar.html b/templates/chimere/blocks/share_bar.html index b5a24e8..39caf59 100644 --- a/templates/chimere/blocks/share_bar.html +++ b/templates/chimere/blocks/share_bar.html @@ -5,15 +5,28 @@ {% 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}}'><img src="{{share_network.0.2}}" alt="{{share_network.0.0}}"/></a></li> - {% if not email_only %}<li class='share-icon'><a href="#">{% trans "Share" %}</a></li>{% for share_network in share_networks %} + {% if not email_only %} + <li class="share-link-main"> + <a href="#">{% trans "Share" %}</a></li> + {% for share_network in share_networks %} <li class='shared'><a class='share_link share_id_{{share_network.0}}' href='{{share_network.1}}'><img src="{{share_network.2}}" alt="{{share_network.0}}"/></a></li> {% endfor %} - <li class='shared'><a href='{% url 'chimere:feeds-global' %}'><img src='{{STATIC_URL}}chimere/img/feed.png' alt='Feeds'/></a></li>{%endif%} + {% if rss %}<li class='shared'><a href='{% url "chimere:feeds-global" %}'> + <img src='{{STATIC_URL}}chimere/img/feed.png' alt='Feeds'/></a></li>{% endif %}{%endif%} </ul>{% endif %} <script type='text/javascript'> <!-- $(function(){ share_link_update(); + $('.share-link-main').click(function(){ + update_permalink(); + var params = $('#permalink').attr('href').split('#')[1]; + var current_url = String(window.location.href).split('#')[0] + + "#" + params; + var message = "{% trans 'Copy and paste this address to share this item: \n' %}"; + message += current_url; + alert(message); + }); }); // --> </script> |