Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
added display of artist in frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
dArignac committed Oct 17, 2015
1 parent a88e15d commit dd8f93b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions price_monitor/api/serializers/ProductSerializer.py
Expand Up @@ -156,6 +156,7 @@ class Meta:
# amazon specific fields
'asin',
'title',
'artist',
'isbn',
'eisbn',
'binding',
Expand All @@ -178,6 +179,7 @@ class Meta:

# amazon specific fields
'title',
'artist',
'isbn',
'eisbn',
'author',
Expand Down
Expand Up @@ -8,7 +8,7 @@
<div class="col-xs-12">
<h1>
<button class="btn btn-danger pull-right" ng-click="open()" type="button" aria-label="Close"><span aria-hidden="true">&times;</span></button>
{{ product.title }}
<span ng-if="product.artist">{{ product.artist }}: </span>{{ product.title }}
</h1>
</div>
</div>
Expand Down
Expand Up @@ -11,7 +11,9 @@
<div class="media-body">
<h4 class="media-heading">
<button class="btn btn-xs btn-danger pull-right" ng-click="open(product)" type="button" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<a href="#/products/{{ product.asin }}">{{ product.title }}</a>
<a href="#/products/{{ product.asin }}">
<span ng-if="product.artist">{{ product.artist }}: </span>{{ product.title }}
</a>
</h4>
<div class="row">
<div class="col-xs-12 col-md-6">
Expand Down
Expand Up @@ -23,7 +23,7 @@ <h3>{% trans 'Already monitored products' %}</h3>
{% with price=price_list|get:product.asin %}
{% with subscription=subscription_list|get:product.asin %}
<div class="row">
<div class="col-xs-12"><strong>{{ product.title }}</strong></div>
<div class="col-xs-12"><strong>{% if product.artist %}{{ product.artist }}: {% endif %}{{ product.title }}</strong></div>
</div>
<div class="row">
<div class="col-xs-1">{% trans "Price" %}:</div>
Expand Down

0 comments on commit dd8f93b

Please sign in to comment.