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/17 16:50:04 UTC

svn commit: r1339624 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_ticket_preview.html theme.py

Author: gjm
Date: Thu May 17 14:50:04 2012
New Revision: 1339624

URL: http://svn.apache.org/viewvc?rev=1339624&view=rev
Log:
theme: ticket preview converted to bootstrap - #63 (from olemis)

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

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_preview.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_preview.html?rev=1339624&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_preview.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_preview.html Thu May 17 14:50:04 2012
@@ -0,0 +1,22 @@
+<!--!
+Render data relevant to automatic ticket preview.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:py="http://genshi.edgewall.org/"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
+      py:with="can_append = 'TICKET_APPEND' in perm(ticket.resource);
+               has_edit_comment = 'TICKET_EDIT_COMMENT' in perm(ticket.resource);"
+      py:strip="">
+  <xi:include href="bh_ticket_box.html"/>
+  <div id="changelog">
+    <div py:for="change in changes"
+         class="change${' trac-new' if change.date > start_time and 'attachment' not in change.fields else None}"
+         id="${'trac-change-%d-%d' % (change.cnum, to_utimestamp(change.date)) if 'cnum' in change else None}">
+      <xi:include href="bh_ticket_change.html" py:with="edited_comment = None; cnum_edit = 0"/>
+    </div>
+  </div>
+  <input type="hidden" name="view_time" value="${to_utimestamp(ticket['changetime'])}"/>
+  <div id="preview"><xi:include py:if="change_preview.fields or change_preview.comment"
+                                href="bh_ticket_change.html" py:with="change = change_preview; preview = True"/></div>
+</html>

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

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_ticket_preview.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=1339624&r1=1339623&r2=1339624&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu May 17 14:50:04 2012
@@ -80,6 +80,7 @@ class BloodhoundTheme(ThemeBase):
         'report_list.html' : ('bh_report_list.html', None),
         'report_view.html' : ('bh_report_view.html', None),
         'ticket.html' : ('bh_ticket.html', None),
+        'ticket_preview.html' : ('bh_ticket_preview.html', None),
 
         # General purpose
         'history_view.html' : ('bh_history_view.html', None),