unindent block content

This commit is contained in:
byte[] 2019-11-17 19:32:20 -05:00
parent aa50acc5ca
commit d02390d847

View file

@ -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
span.commission__listing_artist
= render PhilomenaWeb.UserAttributionView, "_user.html", object: c, badges: true, conn: @conn
.flex__grow.commission__listing_body .commission__listing__body_text
span.commission__listing_artist - {min, max} = Enum.min_max_by(c.items, & &1.base_price)
= render PhilomenaWeb.UserAttributionView, "_user.html", object: c, badges: true, conn: @conn
p
strong> Price Range:
| $
=> Decimal.round(min.base_price, 2) |> Decimal.to_string()
| - $
=> Decimal.round(max.base_price, 2) |> Decimal.to_string()
' USD
p
strong> Categories:
= Enum.join(c.categories, ", ")
.commission__listing__body_text p
- {min, max} = Enum.min_max_by(c.items, & &1.base_price) strong> Offers:
= Enum.map(c.items, & &1.item_type) |> Enum.join(", ")
p
strong> Example Artwork:
p br
strong> Price Range:
| $
=> Decimal.round(min.base_price, 2) |> Decimal.to_string()
| - $
=> Decimal.round(max.base_price, 2) |> Decimal.to_string()
' USD
p = for item <- Enum.take_random(c.items, 5) do
strong> Categories: = render PhilomenaWeb.ImageView, "_image_container.html", image: item.example_image, size: :thumb_small, conn: @conn
= Enum.join(c.categories, ", ")
p
strong> Offers:
= Enum.map(c.items, & &1.item_type) |> Enum.join(", ")
p
strong> Example Artwork:
br p
strong
= link "More information", to: Routes.commission_path(@conn, :show, c)
= for item <- Enum.take_random(c.items, 5) do - true ->
= render PhilomenaWeb.ImageView, "_image_container.html", image: item.example_image, size: :thumb_small, conn: @conn p We couldn't find any commission listings to display. Sorry!
p
strong
= link "More information", to: Routes.commission_path(@conn, :show, c)
- true ->
p We couldn't find any commission listings to display. Sorry!