profile page tweaks

This commit is contained in:
byte[] 2019-11-11 20:37:11 -05:00
parent c13c43aaf2
commit 9f0a8470e4
2 changed files with 6 additions and 4 deletions

View file

@ -23,7 +23,8 @@ defmodule PhilomenaWeb.ProfileController do
must_not: filter,
must: upload_query
}
}
},
sort: %{created_at: :desc}
},
%{page_number: 1, page_size: 6},
Image |> preload([:tags])
@ -37,7 +38,8 @@ defmodule PhilomenaWeb.ProfileController do
must_not: filter,
must: fave_query
}
}
},
sort: %{created_at: :desc}
},
%{page_number: 1, page_size: 6},
Image |> preload([:tags])

View file

@ -44,9 +44,9 @@
= for award <- award_order(@user.awards) do
.block__content.flex.flex--centered.flex--center-distributed.alternating-color.no-overflow title=award.label
.flex__grow.center
.badge = badge_image(award.badge, alt: award.label, size: "32")
.badge = badge_image(award.badge, alt: award.label, width: "32", height: "32")
br
= award.badge_name || badge.title
= (award.badge_name || award.badge.title)
.flex__grow.center
= pretty_time(award.awarded_on)