[TASK] oncontextmenu: Avoid duplicating onclick-functionality
[Packages/TYPO3.CMS.git] / typo3 / sysext / sys_note / Resources / Private / Templates / Note / List.html
1 {namespace notes=TYPO3\CMS\SysNote\ViewHelpers}
2
3 <f:layout name="Default" />
4
5 <f:section name="Content">
6 <f:if condition="{notes}">
7
8 <div id="typo3-dblist-sysnotes">
9 <f:for each="{notes}" as="note">
10 <div class="single-note category-{note.category}">
11 <div class="header">
12 <span class="typeicon" oncontextmenu="this.click();return false;" onclick="Clickmenu.show('sys_note', '{note.uid}', '1', '','', ''); return false;"></span>
13 <span><f:translate key="author" /></span>
14 <f:if condition="{note.author.realName}">
15 <f:then>{note.author.realName}</f:then>
16 <f:else>{note.author.userName}</f:else>
17 </f:if>
18 &middot;
19
20 <span><f:translate key="date" /></span>
21 <f:format.date>{note.modificationDate}</f:format.date>
22
23 <f:if condition="{note.personal}">
24 &middot;
25 <span><f:translate key="personal" /></span>&nbsp;<f:translate key="yes" />
26 </f:if>
27
28 <div class="right icons">
29 <f:be.buttons.icon uri="{notes:editLink(id:note.uid)}" icon="actions-document-open" />
30 </div>
31 </div>
32 <div class="content">
33 <div class="title">
34 <f:if condition="{note.category}"><f:translate key="category.{note.category}" />:</f:if>
35 {note.subject}
36 </div>
37 <f:format.nl2br>{note.message}</f:format.nl2br>
38 </div>
39 </div>
40 </f:for>
41 </div>
42
43 </f:if>
44 </f:section>