<!--
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->

<div class="page-header row">
  <!--Project: -->
  <div class="col-xs-3">
    <form ng-if="userService.isAuthorized()">
      <div class="form-group" >
        <a class="btn btn-xs btn-info"  href="projects" tooltip="Manage Project"><i class="fa fa-gears"></i></a>
        <a class="btn btn-xs btn-primary" ng-if="userService.hasRole('ROLE_ADMIN')"  style="width: 29px" tooltip="Add Project" ng-click="toCreateProj()">
          <i class="fa fa-plus"></i>
        </a>
      </div>
    </form>
  </div>
</div>


<div class="row models-main dataTables_wrapper"  style="padding-top:10px;padding-left: 5px;">
  <div ng-class="row">
    <tabset>
      <tab heading="Jobs" select="jobTabSelected('jobs')" active="tabs[2].active">
        <div class="col-xs-12" ng-include src="'partials/jobs/jobList.html'"></div>
      </tab>
      <tab heading="Slow Queries" select="jobTabSelected('query')" active="tabs[1].active">
        <div class="col-xs-12" ng-include src="'partials/jobs/badQuery.html'"></div>
      </tab>
    </tabset>
  </div>
</div>


<div ng-include="'partials/projects/project_create.html'"></div>
