You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2012/05/14 15:23:59 UTC
svn commit: r1338191 - in
/incubator/bloodhound/trunk/bloodhound_theme/bhtheme: htdocs/bloodhound.css
templates/bh_report_list.html theme.py
Author: gjm
Date: Mon May 14 13:23:59 2012
New Revision: 1338191
URL: http://svn.apache.org/viewvc?rev=1338191&view=rev
Log:
theme: report list conversion to bootstrap styling - towards #54 (from olemis)
Added:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.html (with props)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1338191&r1=1338190&r2=1338191&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Mon May 14 13:23:59 2012
@@ -295,3 +295,10 @@ h1, h2, h3, h4 {
/* @end */
+/* @group Reports */
+
+.report span.foldable {
+ display: none;
+}
+
+/* @end */
Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.html?rev=1338191&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.html Mon May 14 13:23:59 2012
@@ -0,0 +1,136 @@
+<!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>Available Reports</title>
+ <script type="text/javascript" src="${chrome.htdocs_location}js/folding.js"></script>
+ <script type="text/javascript">
+ jQuery(document).ready(function($){
+ $("span.foldable").enableFolding(true);
+ $("#trac-toggle-description").click(function() {
+ if ($(this).checked())
+ $("div.description").parent().removeClass("collapsed");
+ else
+ $("div.description").parent().addClass("collapsed");
+ });
+ });
+ </script>
+ </head>
+
+ <body>
+ <div id="content" class="report row">
+
+ <h1>Available Reports</h1>
+
+ <div class="span9 reports">
+ <div py:if="saved_query_href">
+ <form method="get" action="${href.report()}">
+ <div class="inlinebuttons">
+ <input type="hidden" name="action" value="clear" />
+ <input type="submit" class="inlinebutton btn btn-mini"
+ title="Forget last query" value="${_('Clear')}" />
+ </div>
+ </form>
+ <h2><a href="$saved_query_href"><em>Return to Last Query</em></a></h2>
+ <span class="foldable" />
+ <div class="help-block description">
+ <p><span class="label label-info">Tip</span>
+ Continue browsing through the current list of results,
+ from the last selected report or custom query.</p>
+ </div>
+ </div>
+
+ <div py:if="query_href">
+ <h2><a href="$query_href"><em>Custom Query</em></a></h2>
+ <span class="foldable" />
+ <div class="help-block description">
+ <p><span class="label label-info">Tip</span>
+ Compose a new ticket query by selecting filters and columns to display.
+ </p>
+ </div>
+ </div>
+ </div>
+ <div class="span3">
+ <form id="prefs" method="get" action="" class="well">
+ <div>
+ <input id="trac-toggle-description" type="checkbox" />
+ <label for="trac-toggle-description">Show Descriptions</label>
+ </div>
+ </form>
+ <div id="description" />
+ </div>
+
+
+ <div py:choose="" class="reports span12">
+
+ <py:when test="reports">
+ <h2>SQL reports and saved custom queries
+ <small id="trac-sort-order" class="pull-right" py:with="report_asc = asc if sort == 'report' else None;
+ title_asc = asc if sort == 'title' else None">
+ Sort by:
+ <a href="${href.report(sort='report', asc='0' if report_asc else '1')}">
+ <span class="label">
+ <i class="${('icon-chevron-down', 'icon-chevron-up')[report_asc] if report_asc is not None else None}"></i>
+ Identifier
+ </span>
+ </a>
+ <a href="${href.report(sort='title', asc='0' if title_asc else '1')}">
+ <span class="label">
+ <i class="${('icon-chevron-down', 'icon-chevron-up')[title_asc] if title_asc is not None else None}"></i>
+ Title
+ </span>
+ </a>
+ </small>
+ </h2>
+
+ <div py:for="id, title, description, can_edit, can_delete in reports">
+ <form py:if="can_delete" method="get" action="${href.report(id)}">
+ <div class="inlinebuttons">
+ <input type="hidden" name="action" value="delete" />
+ <input type="submit" class="inlinebutton btn btn-mini btn-danger" title="Delete report" value="${_('Delete')}" />
+ </div>
+ </form>
+ <form py:if="can_edit" method="get" action="${href.report(id)}">
+ <div class="inlinebuttons">
+ <input type="hidden" name="action" value="edit" />
+ <input type="submit" class="inlinebutton btn btn-mini btn-warning" title="Edit report" value="${_('Edit')}" />
+ </div>
+ </form>
+ <h2><a title="View report" href="${href.report(id)}">{$id} <em>$title</em></a></h2>
+ <span class="foldable" />
+ <div py:if="description" class="description" xml:space="preserve">
+ ${wiki_to_html(context, description)}
+ </div>
+ </div>
+ </py:when>
+ <p py:otherwise="" class="alert">
+ <span class="label label-warning">Warning</span>
+ No reports available.
+ </p>
+ </div>
+
+
+ <div py:if="'REPORT_CREATE' in perm" class="buttons span12">
+ <form action="" method="get" id="create_report">
+ <div>
+ <input type="hidden" name="action" value="new" />
+ <input class="btn btn-primary" type="submit" value="${_('Create new report')}" />
+ </div>
+ </form>
+ </div>
+
+ <div id="help" i18n:msg="" class="span12">
+ <p class="help-block pull-right">
+ <span class="label label-info">Note</span>
+ See <a href="${href.wiki('TracReports')}">TracReports</a> for help on using and creating reports.
+ </p>
+ </div>
+ </div>
+ </body>
+</html>
+
Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_list.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=1338191&r1=1338190&r2=1338191&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon May 14 13:23:59 2012
@@ -73,6 +73,9 @@ class BloodhoundTheme(ThemeBase):
'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),
+
# General purpose
'history_view.html' : ('bh_history_view.html', None),
}