--- a/src/egonomy/__init__.py Tue Feb 25 16:23:48 2014 +0100
+++ b/src/egonomy/__init__.py Tue Feb 25 18:46:27 2014 +0100
@@ -1,4 +1,4 @@
-VERSION = (0, 8, 4, "final", 1)
+VERSION = (0, 8, 5, "final", 1)
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
--- a/src/egonomy/static/egonomy/css/style.css Tue Feb 25 16:23:48 2014 +0100
+++ b/src/egonomy/static/egonomy/css/style.css Tue Feb 25 18:46:27 2014 +0100
@@ -413,7 +413,7 @@
/* DBPEDIA OVERLAY */
.dbpedia-overlay {
position: absolute; width: 280px; background: #ffffff; border: 1px solid #999999; box-shadow: 5px 5px 10px rgba(0,0,0,.5);
- display: none; z-index: 1500;
+ display: none; z-index: 1500; font-family: 'Lato';
}
.dbpedia-close {
float: right; font-weight: bold; margin: 5px; line-height: 12px; font-size: 20px;
--- a/src/egonomy/static/egonomy/js/main.js Tue Feb 25 16:23:48 2014 +0100
+++ b/src/egonomy/static/egonomy/js/main.js Tue Feb 25 18:46:27 2014 +0100
@@ -189,6 +189,7 @@
});
$sel.mouseleave(hideDbpediaBox);
}
+ bindDbpediaBox(".for-overlay");
$overlay.hover(function() {
var $this = $(this),
@@ -255,6 +256,8 @@
if(tagit_label.substr(0, 29) == 'http://fr.wikipedia.org/wiki/'){
var label = tagit_label.substr(29).replace(new RegExp("_","g")," ");
$(ui.tag.children()[0]).html(label + ' <a href="' + tagit_label + '" target="_blank"><span class="logo_wikipedia f-right"> </span></a>');
+ ui.tag.attr("data-dbpedia-uri", "http://fr.dbpedia.org/resource/" + tagit_label.substr(29));
+ bindDbpediaBox(ui.tag);
}
}
hideDbpediaBox();
--- a/src/egonomy/templates/egonomy_view_fragment.html Tue Feb 25 16:23:48 2014 +0100
+++ b/src/egonomy/templates/egonomy_view_fragment.html Tue Feb 25 18:46:27 2014 +0100
@@ -157,7 +157,7 @@
{% for t in fragment.tag_list_linked %}
{% if t.label != "" %}
{% if t.url != "" %}
- <li>
+ <li class="for-overlay" data-dbpedia-uri="http://fr.dbpedia.org/resource/{{ t.url|slice:'29:' }}">
<span class="box-shadow-2 clean-linked-list">
<a data-tag="{{ t.label }}" href='{% url "all_fragments" %}?field=all&search="{{ t.label }}"'>{{ t.label }}</a>
<a href="{{ t.url }}" target="_blank"><span class="logo_wikipedia"> </span></a>
@@ -212,4 +212,11 @@
{% endif %}
</div>
</article>
+ <div class="dbpedia-overlay clearfix">
+ <a class="dbpedia-close" href="#">×</a>
+ <img class="dbpedia-image" />
+ <h2 class="dbpedia-title"></h2>
+ <p class="dbpedia-abstract"></p>
+ <p class="dbpedia-source"><a href="#" target="_blank">{% trans 'Source : Wikipédia' %}</a></p>
+ </div>
{% endblock %}