Skip to content

Commit

Permalink
If don't useBlogsAlerts don't show it in the admin panel
Browse files Browse the repository at this point in the history
  • Loading branch information
vjrj committed Oct 16, 2024
1 parent bda48d4 commit 1d932e4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions grails-app/views/admin/index.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@
</ul>
</div>

<div class="panel-heading">
<h3>Alerts for News and Blogs</h3>
<ul>
<li class="controller"><a href="${request.contextPath}/admin/previewBlogAlerts">Preview alerts for the five most recent blogs</a></li>
</ul>
</div>
<g:if test="${grailsApplication.config.getProperty('useBlogsAlerts', Boolean, true)}">
<div class="panel-heading">
<h3>Alerts for News and Blogs</h3>
<ul>
<li class="controller"><a href="${request.contextPath}/admin/previewBlogAlerts">Preview alerts for the five most recent blogs</a></li>
</ul>
</div>
</g:if>

<div class="panel-heading">
<h3>Application Management </h3>
Expand Down

0 comments on commit 1d932e4

Please sign in to comment.