<div class="page-metadata">
    <ul>
        #foreach ($item in $webInterfaceManager.getDisplayableItems("system.content.metadata", $action.webInterfaceContext))
            #renderItem ($item)
        #end
        <li class="page-metadata-modification-info">
        #if ($page.isLatestVersion() == true)
            $action.getText('added.by.user.last.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
            #set ($previousPage = $action.getPreviousVersion($page.previousVersion))
            #if ($!previousPage)
                <span class="noprint">&nbsp;(<a href="$req.contextPath/pages/diffpages.action?pageId=${page.id}&originalId=$previousPage.id">$action.getText('view.change')</a>)</span>
            #end
        #else
            $action.getText('added.by.user.edited.on.date', ["#usernameLink ($page.creatorName)","#usernameLink ($page.lastModifierName)","$action.dateFormatter.format( $page.lastModificationDate )"])
        #end
        </li>
        #if ($page.isVersionCommentAvailable())
        <li class="show-hide-comment-link">
            <a id="show" class="inline-control-link" href="#" onclick="showComment(); return false;">$action.getText('show.comment')</a>
            <a id="hide" class="inline-control-link" style="display:none;" href="#" onclick="hideComment(); return false;">$action.getText('hide.comment')</a>
        </li>
        #end
    </ul>
    #versionComment()
</div>