Noosfero/noosfero

View on GitHub
plugins/tolerance_time/lib/tolerance_time_plugin/control_panel/tolerance.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ToleranceTimePlugin::ControlPanel
  class Tolerance < ControlPanel::Entry
    class << self
      def name
        _("Tolerance Adjustements")
      end

      def section
        "content"
      end

      def icon
        "stopwatch"
      end

      # Url button points to.
      def url(profile)
        { controller: "tolerance_time_plugin_myprofile", profile: profile.identifier }
      end
    end
  end
end