2011-10-25 01:09:30 +00:00
{% extends "base.html" %}
{% block extra_head %}
{% endblock %}
{% block title %}Goodreads{% endblock %}
{% block content %}
< div id = "main-container" >
< div class = "js-main" >
< div id = "js-maincol-fr" >
< div class = "js-maincol-inner" >
< div class = "content-block" >
< h1 > Goodreads< / h1 >
2011-10-29 22:40:00 +00:00
{% if user.profile.goodreads_user_id %}
< p > Welcome, Goodreads user id# {{user.profile.goodreads_user_id}}. Your GR username is {{user.profile.goodreads_user_name}}. Want to see < a href = "{{user.profile.goodreads_user_link}}" > your Goodreads profile< / a > ?< / p >
2011-10-25 01:09:30 +00:00
{% else %}
< p > We don't currently know your Goodreads user information.< / p >
< p > < a href = "{{goodreads_auth_url}}" > Enable us to link to your Goodreads account.< / a > < / p >
{% endif %}
{% if shelves_info %}
< p > You have {{shelves_info.total}} shelves. < / p >
2011-10-25 23:07:44 +00:00
{% if shelves_info.user_shelves %}
< ul >
{% for shelf in shelves_info.user_shelves %}
< li > {{shelf.name}}: {{shelf.book_count}} book(s)< / li >
{% endfor %}
< / ul >
{% endif %}
2011-10-25 01:09:30 +00:00
{% endif %}
2011-10-25 21:20:10 +00:00
<!-- list user's books -->
{% if reviews %}
2011-10-25 23:07:44 +00:00
< p > Here are some of your books that you've put on your Goodreads shelves:< / p >
2011-10-25 21:20:10 +00:00
< ul id = "id" >
2011-10-25 23:07:44 +00:00
{% for review in reviews|slice:":50" %}
< li > < img src = "{{review.book.small_image_url}}" / > < a href = "{{review.book.link}}" > {{review.book.title}}< / a > < / li >
2011-10-25 21:20:10 +00:00
{% endfor %}
< / ul >
{% endif %}
2011-10-25 01:09:30 +00:00
< p > Clear the association with your Goodreads account by < a href = "{% url goodreads_flush_session %}" > flushing your session.< / a > < / p >
2011-10-25 01:36:12 +00:00
< p > Revoke access for Unglue.it at < a href = "http://www.goodreads.com/user/edit?tab=apps" > Goodreads user apps panel< / a > .< / p >
2011-10-25 01:09:30 +00:00
< / div >
< / div >
< / div >
< / div >
< / div >
{% endblock %}