Merge lp://staging/~bcsaller/juju-gui/service-icon into lp://staging/juju-gui/experimental
Proposed by
Benjamin Saller
Status: | Merged |
---|---|
Merged at revision: | 822 |
Proposed branch: | lp://staging/~bcsaller/juju-gui/service-icon |
Merge into: | lp://staging/juju-gui/experimental |
Diff against target: |
64 lines (+20/-2) 4 files modified
app/assets/javascripts/d3.status.js (+1/-1) app/templates/serviceOverview.handlebars (+1/-1) app/views/service.js (+13/-0) lib/views/stylesheet.less (+5/-0) |
To merge this branch: | bzr merge lp://staging/~bcsaller/juju-gui/service-icon |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju GUI Hackers | Pending | ||
Review via email:
|
Description of the change
Service Icon + Misc Fix
Include service icon on inspector pane.
Fix status bar label ordering in DOM so they always appear.
To post a comment you must log in.
Reviewers: mp+174276_ code.launchpad. net,
Message:
Please take a look.
Description:
Service Icon + Misc Fix
Include service icon on inspector pane.
Fix status bar label ordering in DOM so they always appear.
Temp fix around long unit lists with scrolling overflow.
https:/ /code.launchpad .net/~bcsaller/ juju-gui/ service- icon/+merge/ 174276
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/11181043/
Affected files: javascripts/ d3.status. js serviceOverview .handlebars service. js stylesheet. less
A [revision details]
M app/assets/
M app/templates/
M app/views/
M lib/views/
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision: <email address hidden>
+New revision: <email address hidden>
Index: app/templates/ serviceOverview .handlebars serviceOverview .handlebars' serviceOverview .handlebars 2013-07-11 16:53:03 +0000 serviceOverview .handlebars 2013-07-11 17:53:13 +0000 service- charm"> "displayName" class=" service- name">< /span>< br /> "charm" ></span>
=== modified file 'app/templates/
--- app/templates/
+++ app/templates/
@@ -1,6 +1,6 @@
<div class="content">
<div class="
- <div class="charm-icon">
+ <div class="charm-icon" data-bind="icon">
</div>
<span data-bind=
<span data-bind=
Index: app/views/ service. js service. js' service. js 2013-07-11 16:59:28 +0000 service. js 2013-07-11 17:53:13 +0000
bar.update( value); .one('img' ); .append( '<img>' );
depends: ['aggregated_ status' ],
'update' : function(node, value) {
=== modified file 'app/views/
--- app/views/
+++ app/views/
@@ -1433,6 +1433,15 @@
}
},
+ icon: {
+ 'update': function(node, value) {
+ var icon = Y.one(node)
+ if (!icon) {
+ icon = Y.one(node)
+ }
+ icon.set('src', value);
+ }
+ },
units: {
Index: lib/views/ stylesheet. less stylesheet. less' stylesheet. less 2013-07-11 05:14:50 +0000 stylesheet. less 2013-07-11 19:21:16 +0000
background- color: lighten( @pending- color, 20%); unit-list { create- border- radius( @border_ radius) ;
=== modified file 'lib/views/
--- lib/views/
+++ lib/views/
@@ -599,6 +599,11 @@
}
}
+
+.overview-
+ max-height: 11em;
+ overflow-x: scroll;
+}
.unit (@min_height: 20px, @border_radius:3px) {
.
padding: 5px;
Index: app/assets/ javascripts/ d3.status. js javascripts/ d3.status. js' javascripts/ d3.status. js 2013-07-11 05:14:50 +0000 javascripts/ d3.status. js 2013-07-11 19:15:02 +0000
.each( function( d) {
node.classed( d.key, true);
=== modified file 'app/assets/
--- app/assets/
+++ app/assets/
@@ -184,7 +184,7 @@
// Enter/Update/Exit Bars
rects
.enter()
- .append('rect')
+ .insert('rect', 'text')
var node = d3.select(this);