diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2015-07-13 12:46:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2015-07-13 12:46:59 +0200 |
commit | 1035f16db401bab29337354d75a7bd78fce9caf0 (patch) | |
tree | cf042c24a4e7d4e69a513befe57b119ee1620669 | |
parent | 5c805cfe9351664485862d0811ea940d988eef8e (diff) | |
parent | 7fc2738a86f83da8693ecfcdf7e4c783b95b134a (diff) | |
download | Chimère - projet Saclay-1035f16db401bab29337354d75a7bd78fce9caf0.tar.bz2 Chimère - projet Saclay-1035f16db401bab29337354d75a7bd78fce9caf0.zip |
Merge branch 'master' into saclay
-rwxr-xr-x | manage.py | 2 | ||||
-rw-r--r-- | static/saclay/js/interface.js | 10 | ||||
-rw-r--r-- | templates/chimere/blocks/share_bar.html | 7 |
3 files changed, 4 insertions, 15 deletions
@@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import os, sys from django.core.management import execute_manager sys.path.insert(0, '/home/nim/Work/chimere-project/chimere/') diff --git a/static/saclay/js/interface.js b/static/saclay/js/interface.js index 8c7eb6b..3c0ae1d 100644 --- a/static/saclay/js/interface.js +++ b/static/saclay/js/interface.js @@ -145,11 +145,6 @@ $(function(){ return false; }); - $('.share-icon').click(function(){ - $(this).hide(); - $(this).nextAll('.shared').show(); - return false; - }); $('.print-page').click(function(){ window.print(); return false; @@ -222,11 +217,6 @@ function display_feature_detail(data, settings){ $("#read_less_"+settings.current_feature.pk).hide(); $("#read_more_"+settings.current_feature.pk).show(); }); - $('.share-icon').click(function(){ - $(this).hide(); - $(this).parent().nextAll('.shared').show(); - return false; - }); $(document).ready(function(){ share_link_update(); $("a[rel^='prettyPhoto']").prettyPhoto({ diff --git a/templates/chimere/blocks/share_bar.html b/templates/chimere/blocks/share_bar.html index 73177fc..aaa9fc4 100644 --- a/templates/chimere/blocks/share_bar.html +++ b/templates/chimere/blocks/share_bar.html @@ -4,12 +4,11 @@ <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> + <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 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%} + <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' style='display:none'><a href='{% url chimere:feeds-global %}'><img src='{{STATIC_URL}}chimere/img/feed.png' alt='Feeds'/></a></li>{%endif%} + <li class='shared'><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'> <!-- |