/usr/share/pyshared/schooltool/note/notes.pt is in python-schooltool 1:2.1.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | <div id="notes" i18n:domain="schooltool">
<h5 i18n:translate="">Notes</h5>
<tal:loop repeat="note context/@@notes/notes">
<div tal:attributes="class python:note.privacy == 'public' and 'note public' or 'note private'">
<div class="header">
<h6>
<tal:if condition="python:note.privacy == 'private'">
<span class="privacy" i18n:translate="">( p )</span></tal:if>
<span tal:replace="note/title"/>
</h6>
<tal:comment condition="nothing">
Notes can technically be deleted by anyone who can view them, however
when rendering the notes we only provide the delete link to the owner
of the note.
</tal:comment>
<tal:if condition="python:note.owner == request.principal.id">
<a class="delete"
tal:attributes="href string:?DELETE_NOTE=1&uid=${note/unique_id}"
i18n:translate="">Delete</a>
</tal:if>
</div>
<div class="body">
<p tal:content="note/body"/>
</div>
</div>
</tal:loop>
</div>
|