{** * templates/controllers/informationCenter/note.tpl * * Copyright (c) 2014-2019 Simon Fraser University * Copyright (c) 2003-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Display a single information center note. * *} {* These variables are both "safe" to be used unescaped. *} {assign var="noteId" value=$note->getId()} {assign var="formId" value="deleteNoteForm-$noteId"}
{assign var=noteUser value=$note->getUser()} {$noteUser->getFullName()|escape} {$note->getDateCreated()|date_format:$datetimeFormatShort} {if ($notesDeletable && array_intersect(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), (array)$userRoles))}
{if $notesDeletable && array_intersect(array(ROLE_ID_MANAGER, ROLE_ID_SUB_EDITOR), (array)$userRoles)}
{csrf} {assign var=deleteNoteButtonId value="deleteNote-$noteId"} {include file="linkAction/buttonConfirmationLinkAction.tpl" titleIcon="modal_delete" buttonSelector="#$deleteNoteButtonId" dialogText="informationCenter.deleteConfirm"}
{/if}
{/if}
{if $noteFileDownloadLink} {include file="linkAction/linkAction.tpl" action=$noteFileDownloadLink contextId=$note->getId()} {/if} {include file="controllers/revealMore.tpl" content=$note->getContents()|strip_unsafe_html}