Source

bloodhound-dashboard / bhdashboard / templates / bh_model_view.html

Full commit
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!--!
  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 xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:i18n="http://genshi.edgewall.org/i18n"
      xmlns:bh="http://issues.apache.org/bloodhound/wiki/Ui/Dashboard"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      py:strip=""
      py:with="colspan = 'span8' if bhdb else 'span12'">
  <xi:include href="widget_macros.html" />

  <div class="$colspan">
    <div class="stickyBox">
      <div id="overview" class="stickyStatus $colspan">
        <div class="whitebox"></div>
        $heading
        <br/>
        <py:choose>
          <py:when test="progress_data">
            <xi:include href="widget_progress.html"
                py:with="view = 'compact'; legend = True;
                    stats = progress_data.stats;
                    interval_hrefs = progress_data.interval_hrefs;
                    " />
          </py:when>
          <py:when test="ticket_query">
            <bh:widget urn="TicketGroupStats">
              <bh:args>
                <bh:arg name="query">$ticket_query</bh:arg>
                <bh:arg name="view">compact</bh:arg>
              </bh:args>
            </bh:widget>
          </py:when>
        </py:choose>
        <div class="stickyEndMark"></div>
      </div>
    </div>
    <script type="text/javascript">
      setup_sticky_panel('#overview');
    </script>
    <div class="${'span7' if bhdb else 'span11'}" >
      <div class="well">
        $description
        $buttons
      </div>
    </div>
    <div>
      $widgets
    </div>
  </div>
  <div py:if="bhdb" class="span4">
    <bh:widget urn="Timeline">
      <bh:args py:if="resource_realm and resource_id">
        <bh:arg name="realm">$resource_realm</bh:arg>
        <bh:arg name="id">$resource_id</bh:arg>
      </bh:args>
    </bh:widget>
  </div>
</div>