mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
unindent block content
This commit is contained in:
parent
aa50acc5ca
commit
d02390d847
1 changed files with 40 additions and 40 deletions
|
@ -7,49 +7,49 @@ elixir:
|
||||||
span.block__header__title Open Commissions
|
span.block__header__title Open Commissions
|
||||||
= pagination
|
= pagination
|
||||||
|
|
||||||
.block__content
|
.block__content
|
||||||
= cond do
|
= cond do
|
||||||
- Enum.any?(@commissions) ->
|
- Enum.any?(@commissions) ->
|
||||||
= for c <- @commissions do
|
= for c <- @commissions do
|
||||||
.block.commission
|
.block.commission
|
||||||
.block__content.flex.flex--no-wrap
|
.block__content.flex.flex--no-wrap
|
||||||
.flex__fixed.spacing-right
|
.flex__fixed.spacing-right
|
||||||
= render PhilomenaWeb.UserAttributionView, "_user_avatar.html", object: c, conn: @conn
|
= render PhilomenaWeb.UserAttributionView, "_user_avatar.html", object: c, conn: @conn
|
||||||
|
|
||||||
.flex__grow.commission__listing_body
|
.flex__grow.commission__listing_body
|
||||||
span.commission__listing_artist
|
span.commission__listing_artist
|
||||||
= render PhilomenaWeb.UserAttributionView, "_user.html", object: c, badges: true, conn: @conn
|
= render PhilomenaWeb.UserAttributionView, "_user.html", object: c, badges: true, conn: @conn
|
||||||
|
|
||||||
.commission__listing__body_text
|
.commission__listing__body_text
|
||||||
- {min, max} = Enum.min_max_by(c.items, & &1.base_price)
|
- {min, max} = Enum.min_max_by(c.items, & &1.base_price)
|
||||||
|
|
||||||
p
|
p
|
||||||
strong> Price Range:
|
strong> Price Range:
|
||||||
| $
|
| $
|
||||||
=> Decimal.round(min.base_price, 2) |> Decimal.to_string()
|
=> Decimal.round(min.base_price, 2) |> Decimal.to_string()
|
||||||
| - $
|
| - $
|
||||||
=> Decimal.round(max.base_price, 2) |> Decimal.to_string()
|
=> Decimal.round(max.base_price, 2) |> Decimal.to_string()
|
||||||
' USD
|
' USD
|
||||||
|
|
||||||
p
|
p
|
||||||
strong> Categories:
|
strong> Categories:
|
||||||
= Enum.join(c.categories, ", ")
|
= Enum.join(c.categories, ", ")
|
||||||
|
|
||||||
p
|
p
|
||||||
strong> Offers:
|
strong> Offers:
|
||||||
= Enum.map(c.items, & &1.item_type) |> Enum.join(", ")
|
= Enum.map(c.items, & &1.item_type) |> Enum.join(", ")
|
||||||
|
|
||||||
p
|
p
|
||||||
strong> Example Artwork:
|
strong> Example Artwork:
|
||||||
|
|
||||||
br
|
br
|
||||||
|
|
||||||
= for item <- Enum.take_random(c.items, 5) do
|
= for item <- Enum.take_random(c.items, 5) do
|
||||||
= render PhilomenaWeb.ImageView, "_image_container.html", image: item.example_image, size: :thumb_small, conn: @conn
|
= render PhilomenaWeb.ImageView, "_image_container.html", image: item.example_image, size: :thumb_small, conn: @conn
|
||||||
|
|
||||||
p
|
p
|
||||||
strong
|
strong
|
||||||
= link "More information", to: Routes.commission_path(@conn, :show, c)
|
= link "More information", to: Routes.commission_path(@conn, :show, c)
|
||||||
|
|
||||||
- true ->
|
- true ->
|
||||||
p We couldn't find any commission listings to display. Sorry!
|
p We couldn't find any commission listings to display. Sorry!
|
Loading…
Reference in a new issue