NIHVIVO-2944 Updated "Expecting Content" message based on login state and whether the user has permission to rebuild the search index.
This commit is contained in:
parent
eb0f71fbc5
commit
9432886cac
3 changed files with 32 additions and 18 deletions
|
@ -63,7 +63,7 @@
|
||||||
padding: .5em;
|
padding: .5em;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
.rebuildSearchIndex {
|
.contentNote {
|
||||||
float: right;
|
float: right;
|
||||||
padding: .6em;
|
padding: .6em;
|
||||||
background: #ffc;
|
background: #ffc;
|
||||||
|
@ -71,12 +71,12 @@
|
||||||
-webkit-border-radius: 6px;
|
-webkit-border-radius: 6px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
.rebuildSearchIndex h4,
|
.contentNote h4,
|
||||||
.rebuildSearchIndex p {
|
.contentNote p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.rebuildSearchIndex p {
|
.contentNote p {
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,15 +15,22 @@
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#assign noDataNotification>
|
<#assign noDataNotification>
|
||||||
<span class="rebuildSearchIndex"><h4>Expecting content?</h4> <p>Try <a title="Rebuild the search index for this site" href="${urls.base}/SearchIndex">rebuilding the search index</a>.</p></span>
|
<#if user.loggedIn>
|
||||||
|
<#if user.authorizedToRebuildSearchIndex>
|
||||||
|
<span class="contentNote">
|
||||||
|
<h4>Expecting content?</h4>
|
||||||
|
<p>Try <a title="Rebuild the search index for this site" href="${urls.base}/SearchIndex">rebuilding the search index</a>.</p>
|
||||||
|
</span>
|
||||||
|
</#if>
|
||||||
|
<#else>
|
||||||
|
<span class="contentNote">
|
||||||
|
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||||
|
</span>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<h3>There is currently no content in the system</h3>
|
<h3>There is currently no content in the system</h3>
|
||||||
|
|
||||||
<#if user.loggedIn>
|
<#if user.loggedIn && user.hasSiteAdminAccess>
|
||||||
<#if user.hasSiteAdminAccess>
|
|
||||||
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
|
||||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
|
||||||
</#if>
|
|
||||||
</#assign>
|
</#assign>
|
|
@ -18,15 +18,22 @@
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<#assign noDataNotification>
|
<#assign noDataNotification>
|
||||||
<span class="rebuildSearchIndex"><h4>Expecting content?</h4> <p>Try <a title="Rebuild the search index for this site" href="${urls.base}/SearchIndex">rebuilding the search index</a>.</p></span>
|
|
||||||
|
|
||||||
<h3>There is currently no ${page.title} content in the system</h3>
|
|
||||||
<#if user.loggedIn>
|
<#if user.loggedIn>
|
||||||
<#if user.hasSiteAdminAccess>
|
<#if user.authorizedToRebuildSearchIndex>
|
||||||
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
<span class="contentNote">
|
||||||
|
<h4>Expecting content?</h4>
|
||||||
|
<p>Try <a title="Rebuild the search index for this site" href="${urls.base}/SearchIndex">rebuilding the search index</a>.</p>
|
||||||
|
</span>
|
||||||
</#if>
|
</#if>
|
||||||
<#else>
|
<#else>
|
||||||
|
<span class="contentNote">
|
||||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||||
|
</span>
|
||||||
|
</#if>
|
||||||
|
|
||||||
|
<h3>There is currently no ${page.title} content in the system</h3>
|
||||||
|
<#if user.loggedIn && user.hasSiteAdminAccess>
|
||||||
|
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
<p>You can browse all of the public content currently in the system using the <a href="${urls.index}" title="browse all content">index page</a>.</p>
|
<p>You can browse all of the public content currently in the system using the <a href="${urls.index}" title="browse all content">index page</a>.</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue