NIHVIVO-336 Add the alert icon to the site admin page, if there were warnings at startup.
This commit is contained in:
parent
fec264c952
commit
c2aa53087f
1 changed files with 7 additions and 5 deletions
|
@ -17,7 +17,8 @@ public class SiteAdminController extends BaseSiteAdminController {
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private static final Log log = LogFactory.getLog(SiteAdminController.class);
|
private static final Log log = LogFactory.getLog(SiteAdminController.class);
|
||||||
|
|
||||||
protected Map<String, String> getIndexCacheRebuildUrls(VitroRequest vreq) {
|
@Override
|
||||||
|
protected Map<String, String> getIndexCacheRebuildUrls(VitroRequest vreq) {
|
||||||
|
|
||||||
Map<String, String> urls = super.getIndexCacheRebuildUrls(vreq);
|
Map<String, String> urls = super.getIndexCacheRebuildUrls(vreq);
|
||||||
|
|
||||||
|
@ -28,14 +29,15 @@ public class SiteAdminController extends BaseSiteAdminController {
|
||||||
return urls;
|
return urls;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Map<String, String> getSiteConfigUrls(VitroRequest vreq) {
|
@Override
|
||||||
|
protected Map<String, Object> getSiteConfigData(VitroRequest vreq) {
|
||||||
|
|
||||||
Map<String, String> urls = super.getSiteConfigUrls(vreq);
|
Map<String, Object> data = super.getSiteConfigData(vreq);
|
||||||
|
|
||||||
if (PolicyHelper.isAuthorizedForActions(vreq, new UseMiscellaneousCuratorPages())) {
|
if (PolicyHelper.isAuthorizedForActions(vreq, new UseMiscellaneousCuratorPages())) {
|
||||||
urls.put("internalClass", UrlBuilder.getUrl("/processInstitutionalInternalClass"));
|
data.put("internalClass", UrlBuilder.getUrl("/processInstitutionalInternalClass"));
|
||||||
}
|
}
|
||||||
|
|
||||||
return urls;
|
return data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue