Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Remove the useless js and css import from afis templates
· 6e08fb38
Marco De Donno
authored
Apr 23, 2021
The imports are done in the app_files variable.
6e08fb38
Add a try/except block to catch error on the creation of the mark list
· 68ca6bd3
Marco De Donno
authored
Apr 26, 2021
68ca6bd3
Hide whitespace changes
Inline
Side-by-side
views/afis/__init__.py
View file @
68ca6bd3
...
@@ -147,9 +147,12 @@ def get_marks_list_for_target_folder( uuid, admin = True ):
...
@@ -147,9 +147,12 @@ def get_marks_list_for_target_folder( uuid, admin = True ):
pc
=
config
.
db
.
query_fetchone
(
sql
,
(
uuid
,
)
)[
"
pc
"
]
pc
=
config
.
db
.
query_fetchone
(
sql
,
(
uuid
,
)
)[
"
pc
"
]
for
m
in
marks_list_tmp
:
for
m
in
marks_list_tmp
:
for
z
in
m
[
"
pfsp
"
].
split
(
"
,
"
):
try
:
if
pc
in
pfsp2fpc
[
z
]:
for
z
in
m
[
"
pfsp
"
].
split
(
"
,
"
):
marks_list
.
append
(
m
)
if
pc
in
pfsp2fpc
[
z
]:
marks_list
.
append
(
m
)
except
:
continue
return
marks_list
return
marks_list
...
...
views/afis/templates/afis/admin/folder_list.html
View file @
68ca6bd3
...
@@ -3,13 +3,6 @@
...
@@ -3,13 +3,6 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
{% for src in js %}
<script
type=
"text/javascript"
src=
"{{ src }}"
></script>
{% endfor %}
{% for src in css %}
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ src }}"
>
{% endfor %}
{% autoescape false %}
{% autoescape false %}
{{ app_files }}
{{ app_files }}
{% endautoescape %}
{% endautoescape %}
...
...
views/afis/templates/afis/user/folder_list.html
View file @
68ca6bd3
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
{% for src in js %}
<script
type=
"text/javascript"
src=
"{{ src }}"
></script>
{% endfor %}
{% for src in css %}
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ src }}"
>
{% endfor %}
{% autoescape false %}
{% autoescape false %}
{{ app_files }}
{{ app_files }}
{% endautoescape %}
{% endautoescape %}
...
...
views/afis/templates/afis/user/upload_cnm_list.html
View file @
68ca6bd3
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
{% for src in js %}
<script
type=
"text/javascript"
src=
"{{ src }}"
></script>
{% endfor %}
{% for src in css %}
<link
type=
"text/css"
rel=
"stylesheet"
href=
"{{ src }}"
>
{% endfor %}
{% autoescape false %}
{% autoescape false %}
{{ app_files }}
{{ app_files }}
{% endautoescape %}
{% endautoescape %}
...
...