Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
web app
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICNML
web app
Commits
b3d1e751
Commit
b3d1e751
authored
4 years ago
by
Marco De Donno
Browse files
Options
Downloads
Patches
Plain Diff
Add the annotation list to the afis segment show page
parent
9a840254
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
views/afis/__init__.py
+9
-1
9 additions, 1 deletion
views/afis/__init__.py
views/afis/templates/afis/segment.html
+22
-0
22 additions, 0 deletions
views/afis/templates/afis/segment.html
with
31 additions
and
1 deletion
views/afis/__init__.py
+
9
−
1
View file @
b3d1e751
...
@@ -67,9 +67,17 @@ def show_folder( uuid ):
...
@@ -67,9 +67,17 @@ def show_folder( uuid ):
"""
"""
segments_list
=
config
.
db
.
query_fetchall
(
sql
,
(
uuid
,
)
)
segments_list
=
config
.
db
.
query_fetchall
(
sql
,
(
uuid
,
)
)
sql
=
"""
SELECT uuid
FROM cnm_data
WHERE folder_uuid = %s
"""
annotation_list
=
config
.
db
.
query_fetchall
(
sql
,
(
uuid
,
)
)
return
my_render_template
(
return
my_render_template
(
"
afis/segment.html
"
,
"
afis/segment.html
"
,
segments_list
=
segments_list
segments_list
=
segments_list
,
annotation_list
=
annotation_list
)
)
@afis_view.route
(
"
/admin/<uuid>/target/list
"
)
@afis_view.route
(
"
/admin/<uuid>/target/list
"
)
...
...
This diff is collapsed.
Click to expand it.
views/afis/templates/afis/segment.html
+
22
−
0
View file @
b3d1e751
...
@@ -55,6 +55,28 @@
...
@@ -55,6 +55,28 @@
<input
id=
"search_bar"
placeholder=
"Search for a file..."
/>
<input
id=
"search_bar"
placeholder=
"Search for a file..."
/>
</div>
</div>
{% if annotation_list != None %}
<div
class=
"icnml_list_of_boxes_outer"
>
<div
class=
"icnml_list_of_boxes_desc"
>
Target annotations ({{ annotation_list|length }})
</div>
<div
class=
"icnml_list_of_boxes"
>
{% for s in annotation_list %}
<div
id=
"segment_{{ s[ 'uuid' ] }}_outer"
>
<div
class=
"ui-widget-header ui-corner-top icnml_box_top"
id=
"segment_{{ s[ 'uuid' ] }}_filename"
>
{{ s[ 'uuid' ][ 0:18 ] }}
</div>
<div
class=
"ui-widget-content ui-corner-bottom icnml_box_content"
>
<div
id=
"segment_{{ s[ 'uuid' ] }}"
class=
"icnml_pointer"
style=
"background-image: url( {{ url_for( 'image.image_annotation_serve', uuid = s[ 'uuid' ] ) }} )"
>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% else %}
<div>
No annotations for this finger at the moment
</div>
{% endif %}
{% if segments_list != None %}
{% if segments_list != None %}
<div
class=
"icnml_list_of_boxes_outer"
>
<div
class=
"icnml_list_of_boxes_outer"
>
<div
class=
"icnml_list_of_boxes_desc"
>
Non annotated images ({{ segments_list|length }})
</div>
<div
class=
"icnml_list_of_boxes_desc"
>
Non annotated images ({{ segments_list|length }})
</div>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment