Files
racalmas/website/agenda/planung/templates/edit-comment.html
2022-01-27 21:53:25 +01:00

54 lines
2.5 KiB
HTML

<TMPL_IF .allow.read_comment>
<!DOCTYPE html>
<html>
<body>
<TMPL_IF is_empty><TMPL_VAR .loc.label_no_comments_found>
<TMPL_ELSE>
<TMPL_LOOP events>
<table>
<tbody>
<tr>
<th width="100"><TMPL_VAR .loc.label_depth></th>
<th width="120"><TMPL_VAR .loc.label_date></th>
<th width="40"><TMPL_VAR .loc.label_time></th>
<th width="80"><TMPL_VAR .loc.label_author></th>
<th width="500"><TMPL_VAR .loc.label_content></th>
</tr>
<TMPL_LOOP comments>
<tr id="<TMPL_VAR id>" class="<TMPL_VAR lock_status>" style="display:table-row;">
<td class="level<TMPL_VAR level>"><img src="image/comment.png" class="level<TMPL_VAR level>"><a name="event_comments_<TMPL_VAR id>" /></td>
<td class="date"><TMPL_VAR start_date_name></td>
<td class="time"><TMPL_VAR start_time_name></td>
<td class="author"><TMPL_VAR author escape=none></td>
<td class="content <TMPL_VAR news_status>"><textarea><TMPL_VAR content escape=none></textarea></td>
</tr>
<tr style="border-bottom:1px gray solid;">
<td />
<td colspan="2" class="host"><TMPL_VAR ip></td>
<td class="author"><TMPL_IF email><a href="mailto:<TMPL_VAR email>"><TMPL_VAR email></a></TMPL_IF></td>
<td>
<TMPL_IF .allow.update_comment_status_read>
<button
onclick="setCommentStatusRead('<TMPL_VAR id escape=js>','<TMPL_VAR event_id escape=js>','<TMPL_IF received>unread</TMPL_IF><TMPL_IF unread>received</TMPL_IF>');return false;">
<TMPL_IF received><TMPL_VAR .loc.label_status_unread></TMPL_IF><TMPL_IF unread><TMPL_VAR .loc.label_status_read></TMPL_IF>
</button>
</TMPL_IF>
<TMPL_IF .allow.update_comment_status_lock>
<button
onclick="setCommentStatusLock('<TMPL_VAR id escape=js>','<TMPL_VAR event_id escape=js>','<TMPL_IF blocked>show</TMPL_IF><TMPL_IF show>blocked</TMPL_IF>');return false;">
<TMPL_IF blocked><TMPL_VAR .loc.label_status_show></TMPL_IF><TMPL_IF show><TMPL_VAR .loc.label_status_hide></TMPL_IF>
</button>
</TMPL_IF>
</td>
</tr>
</TMPL_LOOP>
</tbody>
</table>
</TMPL_LOOP>
</TMPL_IF>
</body>
</html>
<TMPL_ELSE>
missing permission to read comment
</TMPL_IF>