Skip to content

Commit 1d932e4

Browse files
committed
If don't useBlogsAlerts don't show it in the admin panel
1 parent bda48d4 commit 1d932e4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

grails-app/views/admin/index.gsp

+8-6
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,14 @@
6767
</ul>
6868
</div>
6969

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

7779
<div class="panel-heading">
7880
<h3>Application Management </h3>

0 commit comments

Comments
 (0)