org.sonar.api.web
Class PageDecoration
java.lang.Object
org.sonar.api.web.AbstractRubyTemplate
org.sonar.api.web.PageDecoration
- All Implemented Interfaces:
- Extension, ServerComponent, ServerExtension
public abstract class PageDecoration
- extends AbstractRubyTemplate
- implements ServerExtension
Adds content to HTML pages. A PageDecoration is a Rails template (html.erb file) that executes content_for blocks on predefined locations :
script
: javascript header
style
: CSS header
header
: area over the black top navigation bar
footer
: area below the main page
sidebar
: area in the sidebar between the menu and the sonar logo
Example of template:
<% content_for :script do %>
<% end %>
<% content_for :footer do %>
this is my footer
<% end %>
- Since:
- 3.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageDecoration
public PageDecoration()
Copyright © 2009-2013 SonarSource. All Rights Reserved.