=== modified file 'lava_scheduler_app/extension.py'
@@ -17,7 +17,7 @@
# along with LAVA Server. If not, see <http://www.gnu.org/licenses/>.
import versiontools
-from lava_server.extension import LavaServerExtension
+from lava_server.extension import LavaServerExtension, Menu
import lava_scheduler_app
@@ -45,6 +45,15 @@
def main_view_name(self):
return "lava_scheduler_app.views.index"
+ def get_menu(self):
+ from django.core.urlresolvers import reverse
+ menu = super(SchedulerExtension, self).get_menu()
+ menu.sub_menu = [
+ Menu("Status", reverse("lava.scheduler")),
+ Menu("Jobs", reverse("lava.scheduler.job.list")),
+ ]
+ return menu
+
@property
def description(self):
return "Scheduler application for LAVA server"