{% extends "base.html" %} {% load endless %} {% load truncatechars %} {% comment %} we don't need "with request.user.wishlist.works.all as wishlist" here to make book_panel work, because wishlist is already in the context {% endcomment %} {% block title %} — {{ supporter.username }}{% endblock %} {% block extra_css %} {% endblock %} {% block extra_js %} {% ifequal supporter request.user %} {% endifequal %} {% if works %} {% else %} {% endif %} {% endblock %} {% block extra_head %} {% endblock %} {% comment %} To do: create topsection file for inclusion in multiple contexts, if needed figure out how to configure date display decide if we're even including date joined in profile Goodreads be sure words display correctlydja do I need both add-wishlist and remove-wishlist classes? do they differ? better alignment on I am ungluing & badges make sure backed/backing/wishlist is the order we want the badges to be in test code with other campaign statuses -- random_campaigns needs to set a variety of statuses! why is there a status in regluit.payment.models.Transaction? does it duplicate the status in regluit.core.models.Campaign? there's no tab for seeing ALL my books, only the filters! huh. {% endcomment %} {% block topsection %}
{{ activetab }}
{% ifequal supporter request.user %}
My Profile
{% if supporter.profile.pic_url %} Picture of {{ supporter }} {% else %} Generic Ungluer Avatar {% endif %} {{ supporter.username|truncatechars:20 }} {{ date }} {{ supporter.profile.tagline }}
{% else %}
{% if supporter.profile.pic_url %} Picture of {{ supporter }} {% else %} Generic Ungluer Avatar {% endif %} {{ supporter.username }} {{ date }}
{% with supporter.profile.tagline as tagline %}{% if tagline %}{{ tagline }}{% else %} {% endif %}{% endwith %}
{% endifequal %}
I've unglued {{ backed }} I'm ungluing {{ backing }} I'm wishing for {{ wished }}
{% ifequal supporter request.user %}
{% csrf_token %}

Your Tagline

{{ profile_form.tagline.errors }} {{ profile_form.tagline }}
140 characters remaining

Links

{{ profile_form.home_url }}{{ profile_form.home_url.errors }}
{% if supporter.profile.twitter_id %} Update your Twitter connection
or disconnect Twitter: {{ profile_form.clear_twitter }} {% else %} Connect your Twitter account to Unglue.it {% endif %}
{% if supporter.profile.facebook_id %} Update your Facebook connection
or disconnect Facebook: {{ profile_form.clear_facebook }} {% else %} Connect your Facebook account to Unglue.it {% endif %}
{% if user.profile.goodreads_user_id %} Update your GoodReads connection
or disconnect GoodReads: {{ profile_form.clear_goodreads }} {% else %} Connect your GoodReads account to Unglue.it {% endif %}
{{ profile_form.librarything_id }}{{ profile_form.librarything_id.errors }}

Import your books

{% if goodreads_id %}
{% csrf_token %}
{% else %}
Connect your GoodReads account to import from GoodReads.
{% endif %} {% if librarything_id %}
{% csrf_token %}
{% else %}
Add your LibraryThing ID to import from LibraryThing.
{% endif %}
{% endifequal %}
{% endblock %} {% block content %}
{% include "explore.html" %}
{% if not works %} {% comment %} if we're in empty-wishlist, slideshow mode, suppress tab area {% endcomment %} {% endif %}
{% ifequal wishlist.works.all.count 0 %} {% ifequal request.user supporter %}

Add a book to your wishlist to get started.



{% include "slideshow.html" %}



We'd also love to hear your feedback.
{% else %}
It looks like {{ supporter.username }} is just getting started, and hasn't added books just yet.

{% endifequal %} {% else %} {% lazy_paginate 20 works_unglued using "works_unglued" %} {% for work in works_unglued %}
{% with work.last_campaign_status as status %} {% with work.last_campaign.deadline as deadline %} {% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}{% endwith %}{% endwith %}
{% endfor %} {% lazy_paginate 20 works_active using "works_active" %} {% for work in works_active %}
{% with work.last_campaign_status as status %} {% with work.last_campaign.deadline as deadline %} {% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}{% endwith %}{% endwith %}
{% endfor %} {% lazy_paginate 20 works_wished using "works_wished" %} {% for work in works_wished %}
{% with work.last_campaign_status as status %} {% with work.last_campaign.deadline as deadline %} {% with work.googlebooks_id as googlebooks_id %} {% include "book_panel.html" %} {% endwith %}{% endwith %}{% endwith %}
{% endfor %} {% endifequal %}
{% endblock %}