Skip to content

Commit 178b970

Browse files
authored
Merge pull request #106 from pythonkr/mobile
Virtual booth 가독성 κ°œμ„ 
2 parents cc5ddb9 + 7341ed3 commit 178b970

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

β€Žpyconkr/static/css/pyconkr.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,7 @@ a.endBtn {
12771277
width: 99%;
12781278

12791279
.tile_name {
1280-
font-size: 1.5rem;
1280+
font-size: 1.25rem;
12811281
}
12821282
}
12831283

β€Žsponsor/templates/sponsor/virtual_booth_home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ <h4>{{ sample.name }}</h4>
6161
{# On Mobile #}
6262
<div class="tiles">
6363
{% for lvl in levels %}
64-
{% if lvl.order < 5 %}
64+
{% if lvl.order < 5 and lvl.order is not 0 %}
6565
<div class="tiles_{{ lvl.slug }}">
6666
{% for sponsor in lvl.sponsor_set.all %}
6767
{% if sponsor.logo_image and sponsor.paid_at is not None %}

β€Žsponsor/views.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,10 @@ def get_context_data(self, **kwargs):
221221
context['booths'] = Sponsor.objects\
222222
.filter(level__order__lt=5, accepted=True, paid_at__isnull=False, logo_image__isnull=False)\
223223
.exclude(level__order=0).order_by('level__order', 'paid_at')
224-
context['sample'] = Sponsor.objects.get(level__order=0)
224+
try:
225+
context['sample'] = Sponsor.objects.get(level__order=0)
226+
except Sponsor.DoesNotExist:
227+
pass
225228

226229
managers = []
227230
for sponsor in Sponsor.objects.filter(accepted=True, paid_at__isnull=False):

0 commit comments

Comments
Β (0)