bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1338195 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_report_view.html theme.py
Date Mon, 14 May 2012 13:45:47 GMT
Author: gjm
Date: Mon May 14 13:45:46 2012
New Revision: 1338195

URL: http://svn.apache.org/viewvc?rev=1338195&view=rev
Log:
theme: report view converted to bootstrap styling - towards #54 (from olemis)

Added:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html   (with
props)
Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html?rev=1338195&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html Mon
May 14 13:45:46 2012
@@ -0,0 +1,97 @@
+<!DOCTYPE html
+    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:py="http://genshi.edgewall.org/"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
+      xmlns:xi="http://www.w3.org/2001/XInclude">
+  <xi:include href="layout.html" />
+  <head>
+    <title>$title</title>
+    <script type="text/javascript" py:if="show_args_form">
+      jQuery(document).ready(function($) {
+        $("fieldset legend").enableFolding(false);
+      });
+    </script>
+  </head>
+
+  <body>
+    <div id="content" class="report row">
+      <h1>$title
+        <small py:if="numrows" class="numrows">(${ngettext('%(num)s match', '%(num)s
matches', numrows)})</small>
+      </h1>
+
+      <div class="span9">
+        <div py:if="description" id="description" xml:space="preserve">
+          ${wiki_to_html(context, description)}
+        </div>
+  
+        <div class="buttons control-group">
+          <form py:if="'REPORT_MODIFY' in perm(report.resource)" action="" method="get">
+            <div>
+              <input type="hidden" name="action" value="edit" />
+              <input type="submit" value="${_('Edit report')}" accesskey="e" 
+                  class="btn btn-warning" />
+            </div>
+          </form>
+          <form py:if="'REPORT_CREATE' in perm(report.resource)" action="" method="get">
+            <div>
+              <input type="hidden" name="action" value="copy" />
+              <input type="submit" value="${_('Copy report')}" class="btn" />
+            </div>
+          </form>
+          <form py:if="'REPORT_DELETE' in perm(report.resource)" action="" method="get">
+            <div>
+              <input type="hidden" name="action" value="delete" />
+              <input type="submit" value="${_('Delete report')}" 
+                  class="btn btn-danger" />
+            </div>
+          </form>
+        </div>
+      </div>
+      <div class="span3">
+        <form method="get" action="">
+          <div id="prefs" class="well">
+            <div>
+              <label>
+                Max items per page
+                <input type="text" naime="max" size="10" value="${max}" 
+                    class="input-mini" />
+              </label>
+              <fieldset id="reportfilters" py:if="show_args_form">
+                <legend class="foldable">Arguments</legend>
+                <table summary="Report arguments">
+                  <tbody>
+                    <tr style="height: 1px"><td colspan="2"></td></tr>
+                  </tbody>
+                  <tbody py:for="(name, value) in sorted(args.items())" py:if="name !=
'USER'">
+                    <tr>
+                      <th scope="row"><label>${name}</label></th>
+                      <td class="filter">
+                        <input type="text" name="${name}" value="${value or None}" size="42"
/>
+                      </td>
+                    </tr>
+                  </tbody>
+                </table>
+              </fieldset>
+            </div>
+            <div class="buttons control-group">
+              <input type="submit" value="${_('Update')}" class="btn btn-mini"/>
+            </div>
+          </div>
+        </form>
+      </div>
+      <div class="span12">
+        <xi:include href="widget_grid.html" />
+      </div>
+
+      <div py:if="message" class="alert">$message</div>
+
+      <div id="help" class="help-block pull-right" i18n:msg="">
+        <span class="label label-info">Note</span>
+        See <a href="${href.wiki('TracReports')}">TracReports</a> for help on
using and creating reports.
+      </div>
+    </div>
+  </body>
+</html>
+

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_view.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1338195&r1=1338194&r2=1338195&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon May 14 13:45:46 2012
@@ -72,9 +72,8 @@ class BloodhoundTheme(ThemeBase):
         # Ticket
         'milestone_view.html' : ('bh_milestone_view.html', '_modify_roadmap_css'),
         'ticket.html' : ('bh_ticket.html', None),
-
-        # Ticket
         'report_list.html' : ('bh_report_list.html', None),
+        'report_view.html' : ('bh_report_view.html', None),
 
         # General purpose
         'history_view.html' : ('bh_history_view.html', None),



Mime
View raw message