color: #900;
}
+#toggle-share-shelf {
+ display: block;
+ width: 100%;
+ height: 1.5em;
+ background-color: #EEE;
+ margin-top: 0.5em;
+ padding: 0.5em 0;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ text-align: center;
+ outline: none;
+}
+#toggle-share-shelf p {
+ margin:0;
+}
+
+#share-shelf {
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ border-radius: 4px;
+ border: 3px solid #EEE;
+ padding: 5px;
+ margin-top: -5px;
+}
+#share-shelf input {
+ width: 100%;
+}
+
+
/* ============================ */
/* = Books and fragments list = */
/* ============================ */
$('p', this).html(LOCALE_TEXTS[LANGUAGE_CODE]['HIDE_DESCRIPTION'] + ' ▼');
}
});
-
+
+ $('#toggle-share-shelf').hover(
+ function() { $(this).css({background: '#F3F3F3', cursor: 'pointer'}); },
+ function() { $(this).css({background: '#EEE'}); }
+ ).click(function() {
+ if ($('#share-shelf').hasClass('hidden')) {
+ $('#share-shelf').slideDown('fast').removeClass('hidden');
+ } else {
+ $('#share-shelf').slideUp('fast').addClass('hidden');
+ }
+ });
+
var target = $('#set-window div.target');
$('#set-window').jqm({
$('#description').hide().addClass('hidden');
$('#toggle-description p').html(LOCALE_TEXTS[LANGUAGE_CODE]['EXPAND_SHELF']+' ▼');
}
+
+ $('#share-shelf').hide().addClass('hidden');
+ $('#share-shelf input').focus(function(){this.select();});
$('#user-info').show();
changeBannerText();
<div class="clearboth"></div>
</form>
</div>
+ <div id="toggle-share-shelf"><p>{% trans "Share this shelf" %}</p></div>
+ <div id="share-shelf">
+ <p>{% trans "Copy this link and share it with other people to let them see your shelf." %}
+ <input id="share-shelf-url" value='http://{{ request.META.HTTP_HOST }}{{ request.path }}' />
+ </p>
+ </div>
{% endif %}
{% if last_tag.gazeta_link %}
<p><a href="{{ last_tag.gazeta_link }}">