This repository has been archived by the owner on Nov 17, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I'd like to roll up statuses for grouped jobs to their group header in the index, i.e. if any of the grouped jobs has failed, then the group should be marked failed.
- Loading branch information
Showing
9 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,3 +101,6 @@ td.data table td | |
|
||
textarea.input-large | ||
width 275px | ||
|
||
tr.grouped | ||
display none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
tr | ||
td(colspan=6) | ||
a(href='#') | ||
i.icon-plus | ||
| | ||
span.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
app.views.jobs ?= {} | ||
|
||
class app.views.jobs.group_row extends Backbone.View | ||
|
||
events: | ||
click: 'expandGroup' | ||
|
||
tagName: 'tr' | ||
|
||
template: => | ||
$(jade.render 'jobs/group_row').html() | ||
|
||
render: => | ||
@$el | ||
.html(@template()) | ||
.addClass('group-row') | ||
.attr('id', "group-#{@options.groupId}") | ||
.find('.name').html(@options.name) | ||
@ | ||
|
||
expandGroup: => | ||
@$el.find('i').toggleClass -> | ||
if $(this).hasClass('icon-plus') | ||
'icon-minus' | ||
else | ||
'icon-plus' | ||
$(".group-#{@options.groupId}").toggle() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters