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
AE UTBM
Sith
Commits
7dff98d8
Commit
7dff98d8
authored
Nov 20, 2016
by
Skia
🤘
Browse files
Small template improvements
parent
f900db0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
sas/templates/sas/album.jinja
View file @
7dff98d8
...
...
@@ -5,7 +5,7 @@
{%
endblock
%}
{%
macro
print_path
(
file
)
%}
{%
if
file
%}
{%
if
file
and
file.parent
%}
{{
print_path
(
file.parent
)
}}
<a
href=
"
{{
url
(
'sas:album'
,
album_id
=
file.id
)
}}
"
>
{{
file.get_display_name
()
}}
</a>
>
{%
endif
%}
...
...
@@ -13,7 +13,7 @@
{%
block
content
%}
{{
print_path
(
album.parent
)
}}
{{
album.get_display_name
()
}}
<a
href=
"
{{
url
(
'sas:main'
)
}}
"
>
SAS
</a>
>
{{
print_path
(
album.parent
)
}}
{{
album.get_display_name
()
}}
<h3>
{{
album.get_display_name
()
}}
</h3>
<div>
{%
for
a
in
album.children.
filter
(
is_folder
=
True
,
is_moderated
=
True
)
.
all
()
%}
...
...
sas/templates/sas/picture.jinja
View file @
7dff98d8
...
...
@@ -25,14 +25,14 @@
{%
endblock
%}
{%
macro
print_path
(
file
)
%}
{%
if
file
%}
{%
if
file
and
file.parent
%}
{{
print_path
(
file.parent
)
}}
<a
href=
"
{{
url
(
'sas:album'
,
album_id
=
file.id
)
}}
"
>
{{
file.get_display_name
()
}}
</a>
>
{%
endif
%}
{%
endmacro
%}
{%
block
content
%}
{{
print_path
(
picture.parent
)
}}
{{
picture.get_display_name
()
}}
<a
href=
"
{{
url
(
'sas:main'
)
}}
"
>
SAS
</a>
>
{{
print_path
(
picture.parent
)
}}
{{
picture.get_display_name
()
}}
<h3>
{{
picture.get_display_name
()
}}
</h3>
<div
style=
"display: inline-block; width: 89%; background: #333; border: solid #333 2px;"
id=
"pict"
>
{%
if
is_vertical
%}
...
...
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