Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2021 Release #2

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only show previous/next icons for the gallery if more than 1 photo
vrocha committed Dec 5, 2021
commit 7d22a444fff989c9b180569ec0d526743f0fcfdb
3 changes: 1 addition & 2 deletions gingerhouse/static/css/index.css
Original file line number Diff line number Diff line change
@@ -20,7 +20,6 @@
--small-border-radius: .5rem;
}


body {
background-color: var(--tan);
color: var(--brown);
@@ -331,4 +330,4 @@ i.fa-map-marker-alt::after {
-webkit-box-shadow: 3px 3px 5px 6px #ccc; /* Safari 3-4, iOS 4.0.2 - 4.2, Android 2.3+ */
-moz-box-shadow: 3px 3px 5px 6px #ccc; /* Firefox 3.5 - 3.6 */
box-shadow: 3px 3px 5px 6px #ccc; /* Opera 10.5, IE 9, Firefox 4+, Chrome 6+, iOS 5 */
}
}
10 changes: 6 additions & 4 deletions gingerhouse/templates/houses/detail.html
Original file line number Diff line number Diff line change
@@ -93,10 +93,12 @@ <h3 class="model_address">{{ house.model_address }}</h3>
</ul>
</div>

<div class="glide__arrows d-none d-md-block" data-glide-el="controls">
<button class="glide__arrow glide__arrow--left" data-glide-dir="<"><i class="fa fa-arrow-left" aria-hidden="true"></i></button>
<button class="glide__arrow glide__arrow--right" data-glide-dir=">"><i class="fa fa-arrow-right" aria-hidden="true"></i></button>
</div>
{% if house.photo_set.all.count > 1 %}
<div class="glide__arrows d-none d-md-block" data-glide-el="controls">
<button class="glide__arrow glide__arrow--left" data-glide-dir="<"><i class="fa fa-arrow-left" aria-hidden="true"></i></button>
<button class="glide__arrow glide__arrow--right" data-glide-dir=">"><i class="fa fa-arrow-right" aria-hidden="true"></i></button>
</div>
{% endif %}
</div>
</div>
</div>