Skip to content

Commit

Permalink
Refs #81 - changes copied from master branch commit 3fbab49
Browse files Browse the repository at this point in the history
  • Loading branch information
cbmarcum committed Nov 9, 2019
1 parent 9126734 commit 49b4d31
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions grails-app/views/common/_notice-message.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,10 @@
<g:each in="${noticeList}" status="i" var="noticeInstance">
<div class="alert alert-info alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span
aria-hidden="true">Close</span></button>

<h2>${fieldValue(bean: noticeInstance, field: "name")}</h2>

aria-hidden="true">&times;</span></button>
<p>
${noticeInstance.longDescription.encodeAsRaw()}
</p>

<!-- only create show link to administrator -->
<sec:access expression="hasRole('ROLE_ADMIN')">
<p>
Display = <g:formatBoolean boolean="${noticeInstance.display}"/>
<br/>
From Date = <g:formatDate format="yyyy-MM-dd" date="${noticeInstance.fromDate}"/>
<br/>
Thru Date = <g:formatDate format="yyyy-MM-dd" date="${noticeInstance.thruDate}"/>
<br/>
<g:link controller="notice" action="show" id="${noticeInstance.id}">Edit Notice</g:link>
</p>
</sec:access>
</div> <!-- /.alert -->
</g:each>
</g:if>

0 comments on commit 49b4d31

Please sign in to comment.