Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
bookshare
Commits
f635e7f9
Commit
f635e7f9
authored
Apr 19, 2015
by
Daniel W Bond
Browse files
cleaned preview panel
parent
d4f0553e
Changes
1
Hide whitespace changes
Inline
Side-by-side
bookshare/trades/templates/listing_preview_panel.html
View file @
f635e7f9
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-title"
>
<h4>
{% if not listing.active %}
<small><span
class=
"label label-warning"
><strong>
Inactive
</strong></span></small>
{% elif listing.sold %}
<small><span
class=
"label label-primary"
><strong>
Sold
</strong></span></small>
{% endif %}
<a
href=
"{{ listing.get_absolute_url }}"
>
<strong>
{{ listing.title }}
</strong>
</a>
</h4>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"col-md-10"
>
<h3>
{% if not listing.active %}
<small><span
class=
"label label-warning"
><strong>
Inactive
</strong></span></small>
{% elif listing.sold %}
<small><span
class=
"label label-primary"
><strong>
Sold
</strong></span></small>
<div
class=
"row"
>
<div
class=
"col-md-8"
>
<h4><small>
Seller
</small>
<a
href=
"{{ listing.seller.get_absolute_url }}"
>
{{ listing.seller.user.get_full_name }}
</a>
</h4>
</div>
<div
class=
"col-md-4 text-right"
>
<h4>
{% if listing.sold %}
<small>
Final
</small><strong>
${{ listing.final_price }}
</strong>
{% else %}
<small>
Asking
</small><strong>
${{ listing.price }}
</strong>
{% endif %}
</h4>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-8"
>
<h4><small>
Author(s)
</small>
{{ listing.author }}
</h4>
</div>
{% if listing.course_abbr %}
<div
class=
"col-md-4 text-right"
>
<h4><small>
Course
</small>
{{ listing.course_abbr }}
</h4>
</div>
{% else %}
{% endif %}
<a
href=
"{{ listing.get_absolute_url }}"
>
<em>
{{ listing.title }}
</em>
</a>
</h3>
<h4>
<p><small>
Seller:
</small>
<a
href=
"{{ listing.seller.get_absolute_url }}"
>
{{ listing.seller.user.first_name }} {{ listing.seller.user.last_name }}
</a>
</p>
<p><small>
Author(s):
</small>
{{ listing.author }}
</p>
<p><small>
ISBN:
</small>
{{ listing.isbn }}
</p>
<p><small>
Condition:
</small>
{{ listing.condition }}
</p>
</h4>
</div>
<div
class=
"col-md-2 text-center"
>
<h3><strong>
${{ listing.price }}
</strong></h3>
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<h4><small>
ISBN
</small>
{{ listing.isbn }}
</h4>
</div>
<div
class=
"col-md-6 text-right"
>
<h4><small>
Condition
</small>
{{ listing.condition }}
</h4>
</div>
</div>
</div>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment