<!DOCTYPE html> <html> <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 %} <script type="text/javascript" src="{{ url_for( 'files.send_app_files', subpath = 'functions.js' ) }}"></script> <link type="text/css" rel="stylesheet" href="{{ url_for( 'files.send_app_files', subpath = 'app.css' ) }}"> <script type="text/javascript"> baseurl = "{{ baseurl }}"; var password_local = decrypt( sessionStorage.getItem( "session_key" ), "{{ session_security_key }}" ); var filename = decrypt( "{{ filename }}", password_local ); var nickname = decrypt( "{{ nickname }}", password_local ); </script> <style type="text/css"> .icnml_segment_list { margin: 10px; display: grid; grid-gap: 10px; grid-template-columns: repeat( auto-fit, 320px ); } .icnml_segment_list > div { height: 347px; } .icnml_box_content { height: 300px; } .icnml_img > a > img { display: block; width: auto; height: auto; max-width: 300px; max-height: 300px; margin: auto; } </style> </head> <body class="icnml_main_layout"> {% include "header.html" %} {% include navigation %} <div class="icnml_content"> <div class="icnml_segment_list"> {% if nb_segments > 0 %} {% for segment in segments %} <div id="tp_segment_{{ segment[ 'pc' ] }}"> <div class="ui-widget-header ui-corner-top icnml_box_top" id="tp_segment_{{ segment[ 'pc' ] }}_filename">{{ segment[ 'name' ] }}</div> <div class="ui-widget-content ui-corner-bottom icnml_box_content"> <div class="icnml_img"> <a id="edit_{{ segment[ 'pc' ] }}" href="{{ url_for( 'submission.submission_segment', submission_id = submission_id, tenprint_id = tenprint_id, pc = segment[ 'pc' ] ) }}"> <img src="{{ url_for( 'image.image_segment_serve', tenprint_id = tenprint_id, pc = segment[ 'pc' ] ) }}"> </a> </div> </div> </div> {% endfor %} {% else %} <div>No segments at the moment. Go back to the tenprint page and update the segmentation information</div> {% endif %} </div> </div> <script type="text/javascript"> $( "#icnml_navigation_updatedonor" ) .addClass( "activated" ); $( "#navloc" ).append( $( "<a />" ) .attr( "href", "{{ url_for( 'submission.admin_submission_list' ) }}" ) .text( "Submissions" ) ) .append( $( "<span />" ).text( ">" ) ) .append( $( "<a />" ) .attr( "href", "{{ url_for( 'submission.admin_tenprint_list', submission_id = submission_id ) }}" ) .text( "{{ donor_username }}" ) ) .append( $( "<span />" ).text( ">" ) ) .append( $( "<a />" ) .attr( "href", "{{ url_for( 'submission.admin_tenprint', submission_id = submission_id, tenprint_id = tenprint_id ) }}" ) .text( "{{ tenprint_id }}" ) ) .append( $( "<span />" ).text( ">" ) ) .append( $( "<span />" ).text( "Segments" ) ); </script> </body> </html>