Hi all,
Am 12.05.10 11:20, schrieb Robert Buchholz:
> True. It should be possible to extend the JavaScript client to do so,
> somewhere along the lines of class="tickettype-task ticketstatus-new" --
> Which classes do you think make sense to have?
>
> This feature is not planned for the upcoming release, but maybe we can
> sneak in a patch? :-)
I've given this a quick shot, and the attached patch seems to work by
providing the basic case.
What it is still missing is updating those values on ticket changes, but
it should be enough to get some experiments started.
I can't wait to see the backlog customizations that you guys are doing
with this!
:-)
Regards,
--
Martin Häcker
Software Engineer
agile42 GmbH
www.agile42.com
Grünberger Str. 54
10245 Berlin, Germany
Office: +49 30 2005 3958
Fax: +49 30 2007 8274
Amtsgericht Charlottenburg: HRB 111402
CEO Marion Eickmann
--
--
Follow Agilo on Twitter: http://twitter.com/agiloforscrum
Please support us by reviewing and voting on:
http://userstories.com/products/8-agilo-for-scrum
http://ohloh.net/p/agilo-scrum
http://freshmeat.net/projects/agiloforscrum
You received this message because you are subscribed to the Google
Groups "Agilo for Scrum" group. This group is moderated by agile42 GmbH
http://www.agile42.com and is focused in supporting Agilo for Scrum users.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/agilo?hl=en
Index: agilo/scrum/backlog/htdocs/js/tests/backlogViewTest.js
===================================================================
--- agilo/scrum/backlog/htdocs/js/tests/backlogViewTest.js (revision 2804)
+++ agilo/scrum/backlog/htdocs/js/tests/backlogViewTest.js (working copy)
@@ -88,7 +88,6 @@
ok(rendered.find('.id a').is(':hidden'));
});
-
test("check non fake story has a visible link to ticket page", function() {
var story = this.injectStory(1);
var task = this.injectTask(2, story);
@@ -97,6 +96,19 @@
ok(rendered.find('.id a').is(':visible'));
});
+test("does add ticket-status and type as namespaced css classes", function() {
+ var story = this.injectStory(1);
+ var task = this.injectTask(2, story);
+ story.json.status = 'new';
+ task.json.status = 'closed';
+ var rendered = this.render();
+ ok(rendered.find('#ticketID-1').hasClass('tickettype-story'));
+ ok(rendered.find('#ticketID-2').hasClass('tickettype-task'));
+ ok(rendered.find('#ticketID-1').hasClass('ticketstatus-new'));
+ ok(rendered.find('#ticketID-2').hasClass('ticketstatus-closed'));
+});
+
+
// Rendering multiple columns .........................................
test("can create html for story with tasks", function() {
Index: agilo/scrum/backlog/htdocs/js/backlogView.js
===================================================================
--- agilo/scrum/backlog/htdocs/js/backlogView.js (revision 2804)
+++ agilo/scrum/backlog/htdocs/js/backlogView.js (working copy)
@@ -582,7 +582,9 @@
var multiLinkTag = (aTicket.hasMultipleParentLinks()) ? '
multi-linked-item ' : '';
var levelTag = 'level-' + this.numberOfParentViews();
- var rowContent = ' handle ' + multiLinkTag + levelTag + '"
id="' + this.idSelector() + '">';
+ var typeAndStatusTag = ' tickettype-' +
aTicket.valueForKey('type')
+ + ' ticketstatus-' + aTicket.valueForKey('status');
+ var rowContent = ' handle ' + multiLinkTag + levelTag +
typeAndStatusTag + '" id="' + this.idSelector() + '">';
$(this.backlogView.configuredColumns).each(function(index,
column){
rowContent += htmlForColumn(column);
});