Created
October 31, 2011 18:14
-
-
Save vmassol/1328288 to your computer and use it in GitHub Desktop.
Old way without livetable to display external link status
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{velocity}} | |
#set ($states = $services.linkchecker.getLinkStates()) | |
#foreach ($linkReference in $states.keySet()) | |
* $linkReference ((( | |
#set ($contentReferences = $states.get($linkReference)) | |
|=Page|=State|=Last Checked time | |
#foreach ($contentReference in $contentReferences.keySet()) | |
#if ($contentReference != $doc.getPrefixedFullName()) | |
#set ($state = $contentReferences.get($contentReference)) | |
|#if ($contentReference == "default")no source#else[[$contentReference]]#end|$state.getResponseCode()|$datetool.format($state.getLastCheckedTime()) | |
#end | |
#end | |
))) | |
#end | |
{{/velocity}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment