<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:use-macro="container/page_macro/macros/master_page">

<span tal:omit-tag="" metal:fill-slot="main_content_slot">
	&gt; <a href="" tal:attributes="href python:context.find_URL_of_course(request)+'/jamming/'" i18n:translate="">Jamming</a>
	&gt; <label tal:replace="context/get_name" />
	
	<br />
	
<!--	<label tal:replace="context/get_type" />-->
	<br />
	
	<form action="index_html_form_handler" method="post">
	
	<table border="0" cellpadding="0" cellspacing="0" width="75%"
		tal:define="G context/render">
		<tr class="main">
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td tal:condition="python:context.get_type()=='graph'" tal:repeat="s python:range(0,G['width']/30)">
				<img alt="" title="" src="" tal:replace="structure context/images/empty_30x1/tag" />
			</td>
		</tr>
		
		<span tal:omit-tag="" tal:condition="python:context.get_type()=='graph'">
    		<span tal:omit-tag="" tal:define="nodes G/nodes; layers G/layers">
    		<span tal:omit-tag="" tal:repeat="lay layers">
    		<tr>
    			<span tal:omit-tag="" tal:define="layer_n repeat/lay/index" tal:repeat="lay_item lay">
    				<span tal:omit-tag="" tal:condition="python:nodes[lay_item]['real']==1">
    					<span tal:omit-tag="" tal:define="global real_node python:context.get_child(lay_item)" />
        				<td width="30" align="right">
        					<input type="checkbox" name="parent_ids" value="" tal:attributes="value lay_item" />
        				</td>
        				<td width="80" colspan="4" align="center" class="linebg">
        					<a href="" tal:omit-tag="python:real_node.is_censored() and not(real_node.may_censor_jam_artefact(str(user)))" target="_blank" tal:attributes="href string:${lay_item}/get_data"><img alt="" title="" src="" tal:attributes="src string:${lay_item}/get_icon" /></a><br />
							<strong tal:omit-tag="python:real_node.is_reader(str(user))">
        						<a href="" tal:attributes="href string:${lay_item}/"><label tal:omit-tag="" tal:content="python:real_node.get_name(request)[:10]" /><br /><label tal:replace="real_node/get_n_annotations" /> <label tal:omit-tag="">annotations</label></a>
							</strong>
        				</td>
    					<td tal:condition="repeat/lay_item/end" 
    						rowspan="2"
    						width="" 
    						tal:attributes="width python:G['columns'][layer_n]*30;colspan python:G['columns'][layer_n]" 
    						colspan="">&nbsp;</td> 
    				</span>
    				<span tal:condition="python:nodes[lay_item]['real']!=1">
    					<td width="30">
    						<img alt="" title="" src="" tal:replace="structure python:context.images.jam_dummy.tag(height=80)" />
    					</td>
    				</span>
    			</span>
    		</tr>
    		<tr tal:condition="not:repeat/lay/end">
    				<td colspan="" tal:attributes="colspan python:G['width'] / 30">
    					<img alt="" title="" src="" tal:attributes="src python:'layer_'+str(repeat['lay'].number())+'_'+str(G['n_nodes'])" />
    				</td>
    		</tr>
    		</span>
    		</span>
		</span>
		<span tal:omit-tag="" tal:condition="python:not(context.get_type()=='graph')">
			<span tal:omit-tag="" tal:repeat="g G">
				<!-- icon & generated line row -->
				<tr>
				<span tal:omit-tag="" tal:repeat="x g">
					<span tal:omit-tag="" tal:define="name python:x[0]; value python:x[1]">
						<td style="width:21px" rowspan="2" align="right" tal:condition="python:name=='_selection'">
							<input type="radio" name="parent_ids" value="" tal:attributes="value value" />
						</td>
						<td align="center" class="linebg" width="101" tal:condition="python:name=='artefact'">
							<!-- add censored support for below a tag -->
							<a href="" tal:omit-tag="python:getattr(context, value).is_censored() and not(getattr(context, value).may_censor_jam_artefact(str(user)))" tal:attributes="href string:$value/get_data" target="_blank"><img alt="" title="" src="" tal:attributes="src string:$value/get_icon" /></a>
						</td>
						<span tal:omit-tag="" tal:condition="python:not(name=='_selection') and not(name=='artefact')">
    						<td rowspan="2" tal:condition="python:name=='empty'">
								<img alt="" title="" src="" tal:replace="structure python:getattr(context.images, 'jam_'+name).tag(width='21', height='21')" />
    						</td>
  							<span tal:omit-tag="" tal:condition="python:not(repeat['x'].start) and not(name=='empty')">
								<td rowspan="2" align="center" tal:condition="repeat/x/odd">
									<img alt="" title="" src="" tal:replace="structure python:getattr(context.images, 'jam_'+name).tag(width='101', height='21')" />
								</td>
								<td rowspan="2" align="center" tal:condition="not:repeat/x/odd">
									<img title="" alt="" src="" tal:replace="structure python:getattr(context.images, 'jam_'+name).tag(width='30', height='21')" />
								</td>
  							</span>
						</span>
					</span>
				</span><td>&nbsp;</td>
				</tr>
				<!-- name row -->
				<tr>
					<span tal:omit-tag="" tal:repeat="x g">
						<span tal:omit-tag="" tal:define="name python:x[0]; value python:x[1]">
							<td tal:condition="python:name=='artefact'" width="101" colspan="1" id="small" align="center" class="linebg">
								<a href="" tal:attributes="href string:$value/">
									<strong tal:omit-tag="python:getattr(context, value).is_reader(str(user))">
        								<label tal:replace="python:getattr(context, value).get_name(request)[:10]" />
        								<br /><label tal:replace="python:getattr(context, value).get_n_annotations()" />
        								&nbsp;<label tal:omit-tag="" i18n:translate="">annotations</label>
									</strong>
								</a>
							</td>
						</span>
					</span>
					<td>&nbsp;</td>
				</tr>
			</span>
		</span>
		
		<tr class="mainbg">
			<td colspan="2">&nbsp;
			</td>
		</tr>
	</table>
	
	<input type="submit" value="Continue with your version" i18n:attributes="value" name="submit" />
	</form>
		
</span>

</html>

