{% extends 'layouts/base.html' %} {% block title %} SRCT Bookshare • {{ student.user.get_full_name }} {% endblock %} {% block content %} {% load gravatar %} {% load trades_extras %}
{% if student.user == request.user %}

Your Listings (Create)

{% else %}

Listings

{% endif %} {% if listings %}
{% for listing in listings %} {% if listing.exchanged %} {% else %} {% endif %} {% endfor %}

ISBN

Title

Price

Bids

Status

{{ listing.isbn }}
{{ listing.title|title }}
{% if listing.exchanged %} ${{ listing.final_price }} {% else %} ${{ listing.price }} {% endif %}
{{ listing.bids|length }}
{% if listing.exchanged %} Exchanged {% if student.user == request.user %} (Cancel Exchange) {% endif %} {% elif listing.cancelled %} Cancelled {% if student.user == request.user %} (Reopen) {% endif %} {% elif not listing.active %} Inactive {% else %} Active {% if student.user == request.user %} (Cancel) {% endif %} {% endif %}
{% if student.user == request.user %}

Total Exchanges: {{ exchanges }} | Total Proceeds: ${{ proceeds }}

{% endif %}
{% else %} {% if student.user == request.user %} You don't {% else %} {{ student.user.first_name }} doesn't {% endif %} have any listings posted yet. {% if student.user == request.user %} Consider putting your textbooks on SRCT Bookshare. {% endif %} {% endif %}

Bids

{% if bids %}
{% for bid in bids %} {% if bid.listing.winning_bid %} {% else %} {% endif %} {% endfor %}

Date
Bid


Title

Listing Status


Course


Price

{{ bid.created|date:"m/d/y" }}
{{ bid.listing.isbn|isbn_name|title }}
{% if bid.listing.exchanged %} Exchanged {% elif bid.listing.cancelled %} Cancelled {% elif not listing.active %} Inactive {% else %} Active {% endif %}
{{ bid.listing.course_abbr }}
${{ bid.price }} {% if bid == bid.listing.winning_bid %}
Winning Bid {% else %} {% endif %}
{% else %} {% if student.user == request.user %} You don't {% else %} {{ student.user.get_first_name }} doesn't {% endif %} have any have any bids yet. {% if student.user == request.user %} Check out the latest listings on SRCT Bookshare and see if there are any textbooks you need! {% endif %} {% endif %}
{% if student.user == request.user %}

Lookouts (Create)

{% if lookouts %}
{% for lookout in lookouts %} {% endfor %}

ISBN

Title

Action

{{ lookout.isbn }}
{{ lookout.isbn|isbn_name|title }}
Delete
{% else %} You don't have any lookouts yet. Lookouts are automatic searches for books you have an eye out for. You can create some, and we'll immediately let you know when a listing you want goes up. {% endif %}
{% endif %} {% endblock %}