Merge branch 'master' of github.com:Gluejar/regluit into ry
commit
c56f3fdeb6
|
@ -287,6 +287,9 @@ class Work(models.Model):
|
|||
campaign = self.last_campaign()
|
||||
if campaign:
|
||||
status = campaign.status
|
||||
else:
|
||||
if self.first_ebook() or self.first_epub():
|
||||
status = "Available"
|
||||
else:
|
||||
status = "No campaign yet"
|
||||
return status
|
||||
|
|
|
@ -124,21 +124,18 @@ Welcome to the alpha version of Unglue.It. This site is a preview of our full f
|
|||
</div>
|
||||
{% block counter %}
|
||||
<script type="text/javascript">
|
||||
var sc_project=7447776;
|
||||
var sc_invisible=1;
|
||||
var sc_security="9ae2ba93";
|
||||
var sc_https=1;
|
||||
var scJsHost = (("https:" == document.location.protocol) ?
|
||||
"https://secure." : "http://www.");
|
||||
document.write("<sc"+"ript type='text/javascript' src='" +
|
||||
scJsHost +
|
||||
"statcounter.com/counter/counter_xhtml.js'></"+"script>");</script>
|
||||
<noscript><div class="statcounter"><a title="web
|
||||
statistics" href="http://statcounter.com/free-web-stats/"
|
||||
class="statcounter"><img class="statcounter"
|
||||
src="https://c.statcounter.com/7447776/0/9ae2ba93/1/"
|
||||
alt="web statistics" /></a></div></noscript>
|
||||
{% endblock %}
|
||||
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-28369982-1']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
|
||||
</script>{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="thewholebook listview tabs {% if status == 'SUCCESSFUL' %}tabs-1{% else %}{% if status == 'ACTIVE' %}tabs-2{% else %}tabs-3{% endif %}{% endif %}">
|
||||
<div class="thewholebook listview tabs {% if status == 'SUCCESSFUL' or work.first_pdf_url or work.first_epub_url %}tabs-1{% else %}{% if status == 'ACTIVE' %}tabs-2{% else %}tabs-3{% endif %}{% endif %}">
|
||||
<div class="listview book-list">
|
||||
<div class="listview panelback side2">
|
||||
<div class="greenpanel2">
|
||||
|
@ -124,21 +124,25 @@
|
|||
{% if status == 'No campaign yet' or status == 'INITIALIZED' %}
|
||||
<span class="rounded"><span class="grey"><span class="panelnope">Wished by </span>{{ work.wished_by.count }}</span></span>
|
||||
{% else %}
|
||||
{% if work.first_pdf_url or work.first_epub_url %}
|
||||
<span class="rounded"><span class="grey"><span class="panelnope">Loved by </span>{{ work.wished_by.count }}</span></span>
|
||||
{% else %}
|
||||
|
||||
<div class="booklist-status-img">
|
||||
<img src="/static/images/images/icon-book-37by25-{{ work.percent_unglued }}.png" title="book list status" alt="book list status" />
|
||||
</div>
|
||||
<div class="booklist-status-label">{{ work.percent_unglued_number }}%</div>
|
||||
{% endif %}
|
||||
{% endif %}{% endif %}
|
||||
</div>
|
||||
<div class="listview panelfront side1 ebooks">
|
||||
{% if work.first_epub_url %}
|
||||
{% if work.first_epub_url and work.first_pdf_url %}
|
||||
<span class="listview boolist-ebook">
|
||||
{% if work.first_epub_url %}
|
||||
<a href="{{ work.first_epub_url }}">epub</a>
|
||||
</span>
|
||||
{% endif %}
|
||||
{% if work.first_pdf_url %}
|
||||
<span class="listview boolist-ebook">
|
||||
<a href="{{ work.first_pdf_url }}">pdf</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue