diff --git a/amiibofindr/apps/profile/views.py b/amiibofindr/apps/profile/views.py index 8146291..3259811 100644 --- a/amiibofindr/apps/profile/views.py +++ b/amiibofindr/apps/profile/views.py @@ -32,5 +32,11 @@ class ProfileView(View): 'this_user': user, 'amiibo_list': amiibo_list, 'type': type, - 'relation': relation + 'relation': relation, + 'stats': { + 'figures_count': UserAmiibo.objects.filter( + user=user, _amiibo__type='figure', own=True).count(), + 'cards_count': UserAmiibo.objects.filter( + user=user, _amiibo__type='card', own=True).count(), + } }) diff --git a/amiibofindr/static/less/style.less b/amiibofindr/static/less/style.less index 31a731f..85227b6 100644 --- a/amiibofindr/static/less/style.less +++ b/amiibofindr/static/less/style.less @@ -36,6 +36,10 @@ white-space: nowrap; } +.no-margin-bottom { + margin-bottom: 0 !important; +} + .relation-buttons { position: absolute; left: 6px; diff --git a/amiibofindr/templates/profile/main.html b/amiibofindr/templates/profile/main.html index 11d8f81..1ad6092 100644 --- a/amiibofindr/templates/profile/main.html +++ b/amiibofindr/templates/profile/main.html @@ -5,31 +5,51 @@ {% block main_content %}
- {% trans "Want everyone to see your collection? Spread the word!" %} -
+ {% trans "Want everyone to see your collection? Spread the word!" %} Tweet