Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/zero-state-arrow-collections.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/home/index.jade
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.page
.content.with-sidebar
div(data-hook='collection-subview')
div.report-zero-state(data-hook='report-zero-state')
img(src='images/zero-state-arrow-collections.png', width="110")
span Choose a collection to analyze
div(data-hook='sidebar')
12 changes: 12 additions & 0 deletions src/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ var HomeView = View.extend({
type: 'string',
allowNull: true,
default: null
},
showZeroState: {
type: 'boolean',
default: true
}
},
bindings: {
showZeroState: {
hook: 'report-zero-state',
type: 'booleanClass',
no: 'hidden'
}
},
initialize: function() {
Expand Down Expand Up @@ -46,6 +57,7 @@ var HomeView = View.extend({

this.ns = model.getId();
this.updateTitle(model);
this.showZeroState = false;
app.navigate(format('schema/%s', model.getId()), {
silent: true
});
Expand Down
14 changes: 14 additions & 0 deletions src/home/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,20 @@
border-bottom: @caret-width-base solid transparent;
}

.report-zero-state {
margin: 124px 0 0 20px;

img {
margin-bottom: 7px;
}
span {
font-size: 24px;
color: @gray4;
font-weight: 200;
margin-left: 15px;
}
}

.collection-view {
header {
padding: 12px 20px;
Expand Down