<!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; <a href=".." tal:content="context/aq_parent/get_name" />
	&gt; <label tal:replace="context/get_name" />
	&gt; <label i18n:translate="" tal:omit-tag="">viewing annotations</label>
	
	<br />
	<h2 i18n:translate="">Viewing annotations</h2>
	
	<form method="post" action="censor_jam_artefact_handler">
	<table border="0" width="70%">
	
		<tr>
			<td colspan="3" align="left">
				<a href="get_data" tal:omit-tag="python:context.is_censored() and not(context.may_censor_jam_artefact(str(user)))" target="_blank"> <img src="get_icon" /><br /><label tal:replace="python:context.get_name(request)" /></a>
			</td>
			<td>&nbsp;</td>
		</tr>
		
		<tr>
			<td colspan="3" tal:condition="context/is_censored">
				<label tal:omit-tag="" i18n:translate="">This artefact has been removed by </label>
				<label tal:replace="python:curUser.firstAndLast(context.get_censorer())" />@<label tal:replace="python:context.get_censor_time(request)" />
			</td>
		</tr>

		<span tal:condition="context/get_n_annotations">
    		<th tal:condition="python:context.may_censor_jam_artefact(str(user))">&nbsp;</th>
    		<th i18n:translate="">Annotation</th>
    		<th i18n:translate="">Who</th>
    		<th i18n:translate="">Time</th>
		</span>
		
		<tr colspan="3" tal:condition="not:context/get_n_annotations">
			<td i18n:translate="">No annotations</td>
		</tr>
		
		<tr tal:repeat="nan python:context.get_annotations(request)">
			<td tal:condition="python:context.may_censor_jam_artefact(str(user))" width="1%">
				<br /><input type="checkbox" name="annotation_indexes" value="" tal:attributes="value repeat/nan/index">
			</td>
			<td width="60%" tal:content="structure python:nan[2]"></td>
			<td align="center" width="20%" tal:content="python:curUser.firstAndLast(nan[0])"></td>
			<td align="right" tal:content="python:context.get_printable_time(nan[1], request)"></td>
		</tr>
		
		<tr tal:condition="not:context/is_censored">
			<td colspan="3">
				<img src="" tal:replace="structure context/images/add_context/tag" />
				<a id="small" href="jam_add_annotation_form" i18n:translate="">Add_annotation</a>
			</td>
		</tr>
		
		<tr>
			<td colspan="3" tal:condition="python:context.may_censor_jam_artefact(str(user))">
				<input type="submit" name="censor_annotations" i18n:attributes="value" value="Remove annotations" tal:attributes="disabled python:context.get_n_uncensored_annotations()==0 and default" disabled="disabled" />
				<input type="submit" name="uncensor_annotations" i18n:attributes="value" value="Restore annotations" tal:attributes="disabled python:context.get_n_censored_annotations()==0 and default" disabled="disabled" />
				<input tal:condition="context/is_censored" type="submit" name="uncensor" i18n:attributes="value" value="Restore artefact" />
				<input tal:condition="not:context/is_censored" type="submit" name="censor" i18n:attributes="value" value="Remove artefact" />
			</td>
		</tr>
		
	</table>
	</form>
	
</span>

</html>
