[
https://jira.codehaus.org/browse/MSKINS-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Osipov reassigned MSKINS-81:
------------------------------------
Assignee: Michael Osipov
> Decoration model body/footer not correctly implemented by site.vm
> -----------------------------------------------------------------
>
> Key: MSKINS-81
> URL: https://jira.codehaus.org/browse/MSKINS-81
> Project: Maven Skins
> Issue Type: Bug
> Components: Fluido Skin
> Affects Versions: fluido-1.3.0, fluido-1.3.1
> Reporter: Michael Osipov
> Assignee: Michael Osipov
>
> Documenation for /body/footer says:
> bq. If present, the contained text will be used instead of the generated
> copyright text.
> The [default
> skin|https://svn.apache.org/repos/asf/maven/doxia/doxia-sitetools/trunk/doxia-site-renderer/src/main/resources/org/apache/maven/doxia/siterenderer/resources/default-site.vm]
> does this correctly with:
> {code}
> <div id="footer">
> <div class="xright">
> #if($decoration.body.footer)
> $decoration.body.footer
> #else
> Copyright ©#copyright()All Rights Reserved.#publishDate(
> "bottom" $decoration.publishDate $decoration.version )
> #end
> </div>
> <div class="clear">
> <hr/>
> </div>
> {code}
> Unfortunately, this skin does not observe that and simply appends the content:
> {code}
> <div class="row">
> #if ( $decoration.custom.getChild( 'fluidoSkin' ) &&
> $decoration.custom.getChild( 'fluidoSkin' ).getChild('copyrightStyle') )
> <p class="$decoration.custom.getChild( 'fluidoSkin'
> ).getChild('copyrightStyle').getValue()">Copyright ©#copyright()All
> Rights Reserved.#publishDate( "bottom" $decoration.publishDate
> $decoration.version )</p>
> #else
> <p class="span12">Copyright ©#copyright()All Rights
> Reserved.#publishDate( "bottom" $decoration.publishDate $decoration.version
> )</p>
> #end
> </div>
> #if ( $decoration.body.footer )
> #foreach( $item in $decoration.body.footer.getChildren() )
> #set ( $foot = $item.toString().trim() )
> #set ( $documentHeader = '<?xml version="1.0" encoding="UTF-8"?>'
> )
> #set ( $foot = $StringUtils.replace( $foot.toString(),
> $documentHeader, "" ) )
> ## Workaround for http://jira.codehaus.org/browse/MSITE-135
> ## Use StringUtils untill
> http://jira.codehaus.org/browse/DOXIASITETOOLS-67 is fixed
> ## #eval macro not supported yet, that is a silly turnaround to
> allow ASF projects adopt fluido
> $StringUtils.replace( $foot, '@project.name@', ${project.name} )
> #end
> #end
> {code}
> So, footer cannot be exchanged.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)