Between Confluence 1.3 and 1.4, a number of operations were removed from the dashboard spacelist in the interest of providing a simpler, less threatening interface to users. Some users have asked for these options to be returned, so here's a quick patch that will allow you to put them back:
| In Confluence 1.3, the icons would be inactive (greyed out) if they had nothing to link to – for example if there was no mail to view. This patch will not restore that behaviour: the icons will always be active. |
- Find the file called spacelist.vm in your Confluence distribution.
- Make a backup of this file (just to be safe
) - replace:
#if( $showOperations )
<td nowrap>
<div align="right">
<a href="$req.contextPath/spaces/browsespace.action?key=${space.key}"
id="spaceSummaryLink"><img src="$req.contextPath/images/icons/browse_space.gif"
height="16" width="16" border="0" align="absmiddle" title="$textBrowseSpace"></a>
#if ($permissionCheckDispatcher.isPermitted("/pages/createpage.action?spaceKey=$space.key"))
<a href="$req.contextPath/pages/createpage.action?spaceKey=$space.key"><img
src="$req.contextPath/images/icons/add_page_16.gif"
height="16" width="16" border="0" align="absmiddle" title="$textAddPage"></a>
#else
<img src="$req.contextPath/images/icons/add_page_faded_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="$textSpaceNoAddPermission"/>
#end
</div>
</td>
#end
- with:
#if( $showOperations )
<td align="center" nowrap>
#if ($space.homePage)
<a href="$req.contextPath$generalUtil.getPageUrl($space.homePage)"><img
src="$req.contextPath/images/icons/home_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="${stack.findValue('getText("action.space.home")')}"></a>
#else
<img src="$req.contextPath/images/icons/home_faded_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="${stack.findValue('getText("space.no.home.page")')}"/>
#end
<a href="$req.contextPath/spaces/viewspacesummary.action?key=${space.key}"
id="spaceSummaryLink"><img
src="$req.contextPath/images/icons/web_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="${stack.findValue('getText("action.space.summary")')}"></a>
<a href="$req.contextPath/pages/listpages.action?key=${space.key}"><img
src="$req.contextPath/images/icons/list_pages_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="${stack.findValue('getText("action.browse.pages")')}"></a>
<a href="$req.contextPath/pages/viewrecentblogposts.action?key=$space.key"><img
src="$req.contextPath/images/icons/blogentry_16.gif"
height=16 width=16 border=0 align=absmiddle
title="$action.getText("action.blogs.recent")"></a>
<a href="$req.contextPath/spaces/viewmailarchive.action?key=$space.key"><img
src="$req.contextPath/images/icons/list_mail_content_16.gif"
height=16 width=16 border=0 align=absmiddle
title="$action.getText("action.mail.recent")"></a>
#if ($permissionCheckDispatcher.isPermitted("/pages/createpage.action?spaceKey=$space.key"))
<a href="$req.contextPath/pages/createpage.action?spaceKey=$space.key"><img
src="$req.contextPath/images/icons/add_page_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="$action.getText("action.add.page")"></a>
#else
<img src="$req.contextPath/images/icons/add_page_faded_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="${stack.findValue('getText("space.no.add.permission")')}"/>
#end
#if ($permissionCheckDispatcher.isPermitted("/spaces/removespace.action?key=$space.key"))
<a href="$req.contextPath/spaces/removespace.action?key=$space.key"><img
src="$req.contextPath/images/icons/del_space_16.gif"
height="16" width="16" border="0" align="absmiddle"
title="$action.getText("action.space.remove")"></a>
#end
</td>
#end
Labels
(None)
