Commits

Olemis Lang committed 828be67

Hgsvn: Oops ! Removing widget_macros.html from layouts folder

Comments (0)

Files changed (1)

hgsvn/rm_files.diff

 # HG changeset patch
-# Parent 207b0da628a950a37e28235e102fc028468d8721
+# Parent b499dee317bad95822654eb8b982927d6eddb38f
 [Hgsvn] Removing files already deleted from svn repos
 
 diff --git a/COPYRIGHT b/COPYRIGHT
 -    </div>  
 -  </body>
 -</html>
+diff --git a/bhdashboard/layouts/templates/widget_macros.html b/bhdashboard/layouts/templates/widget_macros.html
+deleted file mode 100644
+--- a/bhdashboard/layouts/templates/widget_macros.html
++++ /dev/null
+@@ -1,121 +0,0 @@
+-<!--!
+-  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.
+--->
+-
+-<html 
+-    xmlns="http://www.w3.org/1999/xhtml"
+-    xmlns:py="http://genshi.edgewall.org/"
+-    xmlns:xi="http://www.w3.org/2001/XInclude"
+-    xmlns:bh="http://issues.apache.org/bloodhound/wiki/Ui/Dashboard"
+-    py:strip="" >
+-
+-  <!--! Helper functions (py:def) -->
+-
+-  <div py:def="widget_container(w)" role="application">
+-    <py:if test="w.title">
+-      <h3 style="display: inline;">${w.title}</h3>
+-      <py:if test="w.ctxtnav">
+-        <py:for each="itm in w.ctxtnav">
+-          &nbsp;&nbsp;$itm
+-        </py:for>
+-      </py:if>
+-      &nbsp;&nbsp;
+-      <div class="btn-group" py:if="w.altlinks" style="display: inline-block;">
+-        <a class="btn btn-mini dropdown-toggle" href="#" data-toggle="dropdown">
+-          <i class="icon-download-alt"></i>Download<b class="caret"></b>
+-        </a>
+-        <ul class="dropdown-menu">
+-          <li py:for="idx, link in enumerate(w.altlinks)"
+-              class="${first_last(idx, w.altlinks)}">
+-            <a rel="nofollow" href="${link.href}" class="link.class"
+-                py:content="link.title"></a>
+-          </li>
+-        </ul>
+-      </div>
+-      <br/>
+-    </py:if>
+-    ${w.content}
+-  </div>
+-
+-  <!--! Widget markup (py:match) -->
+-
+-  <div py:def="bhnotfound()" class="alert alert-error">
+-    <span class="label label-important">Error</span>
+-    Dashboard data is missing . 
+-    Is <code>bhdashboard.web_ui.DashboardModule</code> component disabled?
+-  </div>
+-
+-  <!--!
+-  Sample layout tag 
+-
+-  <bh:layout urn="LayoutName">
+-    <bh:schema>
+-      JSON object describing positioning and ...
+-    </bh:schema>
+-    <bh:widgets>
+-      <bh:w id="simple_widget" urn="WidgetName" altlinks="false">
+-        <bh:args>
+-          <bh:arg name="arg1">value1</bh:arg>
+-          <bh:arg name="arg2">value2</bh:arg>
+-        </bh:args>
+-      </bh:w>
+-      <bh:l id="nested_layout" urn="LayoutName">
+-        <bh:schema>
+-          JSON object describing positioning and ...
+-        </bh:schema>
+-        <bh:widgets>
+-          ... Same as before ...
+-        </bh:widgets>
+-      </bh:l>
+-    </bh:widgets>
+-  </bh:layout>
+-  -->
+-  <py:match path="bh:layout">
+-    <py:choose test="">
+-      <py:when test="bhdb">
+-        <!--! TODO: Implement nested XML tags (e.g. bh:w and bh:l) -->
+-        ${bhdb.embed_layout(context, layout=unicode(select('@urn')), schema=unicode(select('bh:schema/text()')), widgets=unicode(select('bh:widgets/text()')))}
+-      </py:when>
+-      <py:otherwise>
+-        ${bhnotfound()}
+-      </py:otherwise>
+-    </py:choose>
+-  </py:match>
+-  <!--! 
+-  Sample widget tag
+-
+-  <bh:widget id="simple_widget" urn="WidgetName" altlinks="false">
+-    <bh:args>
+-      <bh:arg name="arg1">value1</bh:arg>
+-      <bh:arg name="arg2">value2</bh:arg>
+-    </bh:args>
+-  </bh:widget>
+-
+-  -->
+-  <py:match path="bh:widget">
+-    <py:choose test="">
+-      <py:when test="bhdb"
+-          py:with="wnm = unicode(select('@urn')); args = select('bh:args/bh:arg') or {}; altlinks = unicode(select('@altlinks')) != 'false'; ctxtnav = unicode(select('@ctxtnav')) != 'false';">
+-        ${widget_container(bhdb.expand_widget(context, dict(args=[wnm, None, {'args': args}], altlinks=altlinks, ctxtnav=ctxtnav)))}
+-      </py:when>
+-      <py:otherwise>
+-        ${bhnotfound()}
+-      </py:otherwise>
+-    </py:choose>
+-  </py:match>
+-</html>
 diff --git a/bhdashboard/web_ui/__init__.py b/bhdashboard/web_ui/__init__.py
 deleted file mode 100644
 --- a/bhdashboard/web_ui/__init__.py
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.