{% extends "base.html" %} {% load endless %} {% load truncatechars %} {% 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 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 }}
{% if supporter.profile.pic_url %} Picture of {{ supporter }} {% else %} Generic Ungluer Avatar {% endif %} {{ supporter.username }}
{% if supporter.profile.badges.all %} {% for badge in supporter.profile.badges.all %} {{ badge.description }} {% endfor %} {% endif %}
{% with supporter.profile.tagline as tagline %}{% if tagline %}{{ tagline }}{% else %} {% endif %}{% endwith %}
{% ifequal request.user supporter %} I've unglued {{ backed }} I'm ungluing {{ backing }} I'm wishing for {{ wished }} {% else %} has unglued {{ backed }} is ungluing {{ backing }} is wishing for {{ wished }} {% endifequal %}
{% ifequal request.user supporter %}
Edit Your Profile
{% endifequal %}
{% 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 %} {% if request.user.is_anonymous %}
{% if works_unglued %} {{ supporter }} is sharing these books with you. Find out how. {% else %} {{ supporter }} isn't sharing any books with the world yet. Find out how you can. {% endif %}
{% if works_active %} {{ supporter }} is giving these books to you. Find out how. {% else %} {{ supporter }} isn't giving any new books to the world right now. Find out how you can. {% endif %}
{% if works_wished %} {{ supporter }} wants to give these books to you. Find out how. {% else %} {{ supporter }} hasn't decided which books to give the world yet. Learn more. {% endif %}
{% endif %} {% 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 %}