From bbea7758b2f8a4b4de0d7d020d0d87380add6009 Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Sun, 9 Aug 2020 13:32:13 +0530 Subject: [PATCH 01/15] Add styling to static --- .../core/widgets/newest_listings.html | 14 +++++++------- .../core/templates/widgets/searchbar.html | 2 +- glossy-gorillas/static/style.css | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/glossy-gorillas/core/templates/core/widgets/newest_listings.html b/glossy-gorillas/core/templates/core/widgets/newest_listings.html index 0fcb6bf83..4abeeda59 100644 --- a/glossy-gorillas/core/templates/core/widgets/newest_listings.html +++ b/glossy-gorillas/core/templates/core/widgets/newest_listings.html @@ -1,17 +1,17 @@

Newest Listings

- - - - + + + + {% for ls in listings %} {% with item=ls.item %} - - - + +
OwnerItemQuantityCost (per unit)OwnerItemQuantityCost (per unit)
{{ item.owner.user.get_username }}{{ item.product.name }} + {{ item.owner.user.get_username }}{{ item.product.name }} {{ item.quantity }} {% if item.quantity_type == "G" %} grams diff --git a/glossy-gorillas/core/templates/widgets/searchbar.html b/glossy-gorillas/core/templates/widgets/searchbar.html index 5d1d4db39..29b68c0a2 100644 --- a/glossy-gorillas/core/templates/widgets/searchbar.html +++ b/glossy-gorillas/core/templates/widgets/searchbar.html @@ -6,7 +6,7 @@ } -
+ Date: Sun, 9 Aug 2020 14:39:58 +0530 Subject: [PATCH 02/15] Add styling to dashboard --- .../core/templates/core/dashboard.html | 140 +++++++++++++++--- 1 file changed, 119 insertions(+), 21 deletions(-) diff --git a/glossy-gorillas/core/templates/core/dashboard.html b/glossy-gorillas/core/templates/core/dashboard.html index 699962686..02dd7e6cb 100644 --- a/glossy-gorillas/core/templates/core/dashboard.html +++ b/glossy-gorillas/core/templates/core/dashboard.html @@ -1,28 +1,126 @@ {% extends 'core/base.html' %} {% block content %} -{{ object.user }} +

{{ object.user }}


-{{ object.description }} +

{{ object.description }}

-

Inventory

-{% for record in inventory %} -
  • -{% if record.listing__id %} - {{ record }} -{% else %} - {{ record }} - List Item -{% endif %} -
  • -{% endfor %} +

    Inventory

    + + + + + + + + {% for product in inventory %} + + + + + + + {% endfor %} +
    + Product Name + + Quantity + + Type Of Quantity + + List +
    + {{ product.product__name }} + + {{ product.quantity }} + + {{ product.quantity_type }} + + {% if record.listing__id %} + Listed + {% else %} + List Item + {% endif %} +
    -

    Listing

    -{% for listing in listings %} -
  • {{ listing }}
  • -{% endfor %} +

    Listing

    + + + + + + + + + + + {% for listing in listings %} + + + + + + + + + + {% endfor %} +
    + Product Name + + Quantity + + Type Of Quantity + + Silver Per Unit + + Barter Product + + Barter Per Unit + + Offers Allowed +
    + {{ listing.item__product__name }} + + {{ listing.item__quantity }} + + {{ listing.item__quantity_type }} + + {{ listing.silver_per_unit }} + + {{ listing.barter_product }} + + {{ listing.barter_qty_per_unit }} + + {{ listing.allow_offers }} +
    + + +

    Review

    + + + + + + + {% for review in reviews %} + + + + + + {% endfor %} +
    + Trade + + Rating + + Description +
    + {{ review.trade }} + + {{ review.rating }} + + {{ review.description }} +
    -

    Reviews

    -{% for review in reviews %} -
  • {{ review }}
  • -{% endfor %} {% endblock %} \ No newline at end of file From e1e33a9d28a9a36049c65ca25afc6c3d0efd2d7e Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Sun, 9 Aug 2020 14:40:41 +0530 Subject: [PATCH 03/15] Add styling to home --- glossy-gorillas/core/templates/core/pages/home.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glossy-gorillas/core/templates/core/pages/home.html b/glossy-gorillas/core/templates/core/pages/home.html index 93b1518fe..c0e3a9e16 100644 --- a/glossy-gorillas/core/templates/core/pages/home.html +++ b/glossy-gorillas/core/templates/core/pages/home.html @@ -1,7 +1,9 @@ {% extends "core/base.html" %} {% block content %}
    -

    Home

    +
    +

    Home

    +

    The most popular product(s):

    From 88f9c9c229143037aaff3317419f9826aed7afc1 Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Sun, 9 Aug 2020 14:42:59 +0530 Subject: [PATCH 04/15] Add styling to newest listing --- .../core/templates/core/widgets/newest_listings.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/glossy-gorillas/core/templates/core/widgets/newest_listings.html b/glossy-gorillas/core/templates/core/widgets/newest_listings.html index 4abeeda59..f092857c2 100644 --- a/glossy-gorillas/core/templates/core/widgets/newest_listings.html +++ b/glossy-gorillas/core/templates/core/widgets/newest_listings.html @@ -1,6 +1,6 @@ -

    Newest Listings

    +

    Newest Listings

    - + @@ -8,10 +8,10 @@

    Newest Listings

    {% for ls in listings %} {% with item=ls.item %} - - - - + + +
    Owner Item Quantity
    {{ item.owner.user.get_username }}{{ item.product.name }} +
    {{ item.owner.user.get_username }}{{ item.product.name }} {{ item.quantity }} {% if item.quantity_type == "G" %} grams From d2a049d1aefbd9c6bef1e1cd29a1bb5e8beb2f15 Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Sun, 9 Aug 2020 14:44:00 +0530 Subject: [PATCH 05/15] Add styling to newest trade template --- .../templates/core/widgets/newest_trades.html | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/glossy-gorillas/core/templates/core/widgets/newest_trades.html b/glossy-gorillas/core/templates/core/widgets/newest_trades.html index a881e2d92..fc57d7c81 100644 --- a/glossy-gorillas/core/templates/core/widgets/newest_trades.html +++ b/glossy-gorillas/core/templates/core/widgets/newest_trades.html @@ -1,18 +1,18 @@ -

    Newest Trades

    +

    Newest Trades

    - - - - - + + + + + {% for t in trades %} {% with item=t.listing.item %} - - - - - + + + +
    FromToItemQuantity
    FromToItemQuantity
    {{ item.owner.user.get_username }}{{ t.buyer.user.get_username }}{{ item.product.name }} +
    {{ item.owner.user.get_username }}{{ t.buyer.user.get_username }}{{ item.product.name }} {{ item.quantity }} {% if item.quantity_type == "G" %} grams From 1548aaaa11d1f128eb4570769d2a8d52a4e983e2 Mon Sep 17 00:00:00 2001 From: Gaurav Pandey Date: Sun, 9 Aug 2020 14:44:43 +0530 Subject: [PATCH 06/15] Add styling to header --- glossy-gorillas/core/templates/partials/header.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/glossy-gorillas/core/templates/partials/header.html b/glossy-gorillas/core/templates/partials/header.html index e2bfe29ce..30bc68e53 100644 --- a/glossy-gorillas/core/templates/partials/header.html +++ b/glossy-gorillas/core/templates/partials/header.html @@ -16,10 +16,11 @@