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
64b44846
Commit
64b44846
authored
Oct 04, 2016
by
Skia
🤘
Browse files
Some templating
parent
deeb2b5b
Pipeline
#273
failed with stage
in 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/static/core/style.css
View file @
64b44846
...
...
@@ -142,6 +142,10 @@ ul, ol {
margin-left
:
25px
;
}
code
{
font-family
:
monospace
;
}
.edit-bar
{
display
:
block
;
margin
:
4px
;
...
...
counter/templates/counter/eticket_list.jinja
View file @
64b44846
...
...
@@ -10,7 +10,7 @@
<h3>
{%
trans
%}
Eticket list
{%
endtrans
%}
</h3>
<ul>
{%
for
t
in
eticket_list
%}
<li><a
href=
"
{{
url
(
'counter:edit_eticket'
,
eticket_id
=
t.id
)
}}
"
>
{{
t
}}
-
{{
t.secret
}}
</
a>
</li>
<li><a
href=
"
{{
url
(
'counter:edit_eticket'
,
eticket_id
=
t.id
)
}}
"
>
{{
t
}}
</a>
(Hash:
<code>
{{
t.secret
}}
</
code>
)
</li>
{%
endfor
%}
</ul>
{%
else
%}
...
...
counter/templates/counter/product_list.jinja
View file @
64b44846
...
...
@@ -14,14 +14,14 @@
<h4>
{{
t
}}
</h4>
<ul>
{%
for
p
in
product_list.
filter
(
product_type
=
t
)
.
all
()
.
order_by
(
'name'
)
%}
<li><a
href=
"
{{
url
(
'counter:product_edit'
,
product_id
=
p.id
)
}}
"
>
{{
p
}}
</a></li>
<li><a
href=
"
{{
url
(
'counter:product_edit'
,
product_id
=
p.id
)
}}
"
>
{{
p
}}
(
{{
p.code
}}
)
</a></li>
{%
endfor
%}
</ul>
{%
endfor
%}
<h4>
{%
trans
%}
Uncategorized
{%
endtrans
%}
</h4>
<ul>
{%
for
p
in
product_list.
filter
(
product_type
=
None
)
.
all
()
.
order_by
(
'name'
)
%}
<li><a
href=
"
{{
url
(
'counter:product_edit'
,
product_id
=
p.id
)
}}
"
>
{{
p
}}
</a></li>
<li><a
href=
"
{{
url
(
'counter:product_edit'
,
product_id
=
p.id
)
}}
"
>
{{
p
}}
(
{{
p.code
}}
)
</a></li>
{%
endfor
%}
</ul>
{%
else
%}
...
...
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