</p>
{% if book.extra_info.source_name %}
- <p>{% trans "Text prepared based on:" %} {{ book.extra_info.source_name }}</p>
+ <p>{% trans "Resource prepared based on:" %} {{ book.extra_info.source_name }}</p>
{% endif %}
{% if book.extra_info.description %}
{% load i18n %}
{% if books %}
-<p class="mono">{% trans "Literatura" %}
+<p class="mono">{% trans "Literature" %}
{{books|safe}}
{% endif %}
{% if pictures %}
-<p class="mono">{% trans "Obrazy" %}
+<p class="mono">{% trans "Gallery" %}
{{pictures|safe}}
{% endif %}
{% load chunks %}
{% load picture_tags %}
{% load thumbnail %}
+{% load static %}
{% block bodyid %}picture-list{% endblock %}
<h1>{% block book_list_header %}{% trans "Listing of all pictures" %}{% endblock %}</h1>
<div class="left-column"><div class="normal-text">
- {% block book_list_info %}{% endblock %}
+ {% block book_list_info %}
+<a href="http://www.nck.pl"><img style="float:right; width:100px;" src="{% static "img/logo_nck_200trans.png" %}" alt="Narodowe Centrum Kultury" ></img></a>
+<p>Galeria zawiera obrazy, rysunki, rzeźby, fotografie pochodzące z kolekcji Muzeum Narodowego w Warszawie. Każde z dzieł oznaczyliśmy motywami występującymi w sztuce i w literaturze. Galerię można więc przeglądać w poszukiwaniu ilustracji do tekstów literackich, a także pod kątem określonych przedmiotów i postaci występujących w sztukach wizualnych. </p>
+{% endblock %}
</div></div>
<div class='clearboth'></div>
<li><a class="menu" href="#info">{% trans "Infobox" %}</a></li>
<li><a href="{{ picture.get_absolute_url }}">{% trans "Picture's page" %}</a></li>
<!-- XXX -->
- <li><a class="menu" href="#download">{% trans "Download" %}</a></li>
+ <li><a href="{{ picture.image_file.url }}">{% trans "Download" %}</a></li>
</ul>
</div>
<div id="info" class="moveright">
book_list = book_list.filter(filter)
if get_filter:
book_list = book_list.filter(get_filter())
+ book_list = list(book_list)
+ book_list.sort(lambda a,b: cmp(a.extra_info['authors'][0], b.extra_info['authors'][0]))
return render_to_response(template_name, locals(),
context_instance=RequestContext(request))
width: 9rem;
}
#sponsors div {
- z-index: -10;
+ z-index: 10;
}
#sponsors img {
width: 100%;
- z-index: -10;
+ z-index: 10;
}
\ No newline at end of file
self.spinner = $("#spinner").progressSpin();
$(original).load(function() {
+ console.log("loaded original");
self._original_loaded = true;
self.spinner.stop();
var cb = self.original_loaded;
return self;
},
- natural_size: function() {
- var img = this.element.find('img').get(0);
+ natural_size: function() {
+ var img = this.element.find('img.original').get(0);
return [ img.naturalWidth, img.naturalHeight ]
},
var new_width = ratio * this.initial_size[0];
var new_height = ratio * this.initial_size[1];
var target = {
-// 'width': new_width,
+ 'width': new_width,
'left': Math.max(0,
this.initial_position.left
- (new_width - this.initial_size[0])/2),
this._zoom = level;
this.element.css(target);
- this.element.find(".original").width(new_width);
+
// this.element.animate(target, 1200); // default duration=400
},
-Subproject commit 5b1dcc7d247996752fa566c7150a45037b068565
+Subproject commit 32177c13e6f1f07741f559601064538a65ce00fd