Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
bc34681e
Unverified
Commit
bc34681e
authored
Aug 01, 2016
by
Joost Rijneveld
Browse files
Fix spacing of albums and photos
parent
01967c44
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/photos/templates/photos/album.html
View file @
bc34681e
...
...
@@ -7,11 +7,10 @@
<h1>
{{ album.title }}
</h1>
<h2>
{{ album.date|date:"d-m-Y" }}
</h2>
<div
class=
"gallery"
>
{% comment %}TODO figure out why whitespace is not rendered between tiles{% endcomment %}
{% comment %}TODO download link{% endcomment %}
<ul
class=
"gallery-photos row"
>
{% for photo in album.photos %}
<li
class=
"post gallery-photo span3 has-overlay
first-child
"
>
<li
class=
"post gallery-photo span3 has-overlay
{% if forloop.counter0|divisibleby:4 %}first-child{% endif %}
"
>
<a
class=
"gallery-box"
rel=
"gallery"
data-download=
"{% url 'photos:download' photo %}"
href=
"{% thumbnail photo '1024x768' fit=True %}"
>
<span
class=
"post-inner"
>
<span
class=
"inner-img"
>
...
...
website/photos/templates/photos/index.html
View file @
bc34681e
...
...
@@ -7,10 +7,9 @@
<h1>
{% trans "Photos" %}
</h1>
<div
class=
"gallery"
>
{% comment %}TODO figure out why whitespace is not rendered between tiles{% endcomment %}
<ul
class=
"gallery-albums row"
>
{% for album in albums %}
<li
class=
"post gallery-album span3 has-overlay
first-child
"
>
<li
class=
"post gallery-album span3 has-overlay
{% if forloop.counter0|divisibleby:4 %}first-child{% endif %}
"
>
<a
href=
"{% url 'photos:album' album.slug %}"
>
<span
class=
"post-inner"
>
<span
class=
"inner-img"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment