You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SampleDashboardWidget.java 624B

12345678910111213141516171819202122232425
  1. package org.sonar.plugins.sample;
  2. import org.sonar.api.web.AbstractRubyTemplate;
  3. import org.sonar.api.web.NavigationSection;
  4. import org.sonar.api.web.RubyRailsWidget;
  5. import org.sonar.api.web.UserRole;
  6. @NavigationSection(NavigationSection.RESOURCE)
  7. @UserRole(UserRole.USER)
  8. public class SampleDashboardWidget extends AbstractRubyTemplate implements RubyRailsWidget {
  9. public String getId() {
  10. return "sample";
  11. }
  12. public String getTitle() {
  13. // not used for the moment by widgets.
  14. return "Sample";
  15. }
  16. @Override
  17. protected String getTemplatePath() {
  18. return "/sample_dashboard_widget.html.erb";
  19. }
  20. }