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/12/20 16:50:32 UTC
svn commit: r1424544 - in
/incubator/bloodhound/trunk/bloodhound_theme/bhtheme:
templates/bloodhound_theme.html theme.py
Author: gjm
Date: Thu Dec 20 15:50:31 2012
New Revision: 1424544
URL: http://svn.apache.org/viewvc?rev=1424544&view=rev
Log:
enhancing quick ticket with configurable fields and link to /newticket form - towards #234 (from olemis)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1424544&r1=1424543&r2=1424544&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Thu Dec 20 15:50:31 2012
@@ -140,7 +140,13 @@
<div id="qct-box" class="dropdown-menu" style="width: 300px;"
py:choose="">
<div class="popover-title">
- <a href="${href.newticket()}"><h3>Create Ticket</h3></a>
+ <h3>
+ Create Ticket
+ <a style="top: -33px; right: -25px; position: relative;"
+ class="pull-right" href="${href.newticket()}">
+ <small>Full dialogue »</small>
+ </a>
+ </h3>
</div>
<div class="popover-content">
<py:when test="'TICKET_CREATE' in perm">
Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1424544&r1=1424543&r2=1424544&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu Dec 20 15:50:31 2012
@@ -22,6 +22,7 @@ from genshi.filters.transform import Tra
from trac.config import Option
from trac.core import *
+from trac.config import ListOption
from trac.mimeview.api import get_mimetype
from trac.resource import Resource
from trac.ticket.api import TicketSystem
@@ -330,7 +331,9 @@ class BloodhoundTheme(ThemeBase):
class QuickCreateTicketDialog(Component):
implements(IRequestFilter, IRequestHandler)
- qct_fields = ('product', 'version', 'type', 'component')
+ qct_fields = ListOption('ticket', 'quick_create_fields',
+ 'product,version,type',
+ doc="""Multiple selection fields displayed in create ticket menu""")
# IRequestFilter(Interface):
@@ -355,7 +358,8 @@ class QuickCreateTicketDialog(Component)
ticket = Ticket(self.env)
tm._populate(fakereq, ticket, False)
all_fields = dict([f['name'], f] \
- for f in tm._prepare_fields(fakereq, ticket))
+ for f in tm._prepare_fields(fakereq, ticket) \
+ if f['type'] == 'select')
data['qct'] = {'fields': [all_fields[k] for k in self.qct_fields
if k in all_fields]}
return template, data, content_type