Permalink
Browse files

Add basic getting started info when to index when there are no features

  • Loading branch information...
1 parent df4a085 commit 73444ea70d64b6c338efd6c42af9d3b849cdb34d @ryanlower committed Feb 27, 2013
@@ -99,7 +99,12 @@ class App.FeatureList extends Spine.Controller
addAll: =>
@html ''
- @addOne feature for feature in Feature.all()
+ $('#no_features').hide()
+ all_features = Feature.all()
+ if all_features.length > 0
+ @addOne feature for feature in all_features
+ else
+ $('#no_features').show()
class App.Feature extends Spine.Controller
elements:
@@ -63,6 +63,18 @@ body {
padding: 29px 0 22px;
}
+div#no_features {
+ display: none;
+ h1 {
+ font-size: 2em;
+ padding-bottom: 15px;
+ }
+ p {
+ font-size: 1.25em;
+ padding-bottom: 5px;
+ }
+}
+
div.feature {
float:left;
width:723px;
@@ -58,6 +58,15 @@ body {
#header {
padding: 29px 0 22px; }
+div#no_features {
+ display: none; }
+ div#no_features h1 {
+ font-size: 2em;
+ padding-bottom: 15px; }
+ div#no_features p {
+ font-size: 1.25em;
+ padding-bottom: 5px; }
+
div.feature {
float: left;
width: 723px;

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -1,3 +1,9 @@
<div id="features">
<p>loading indicator...</p>
</div>
+
+<div id="no_features">
+ <h1>Ready to start flipping?</h1>
+ <p>You haven't created any features yet</p>
+ <p>Start by reading the <a href='https://github.com/jnunemaker/flipper#usage'>flipper readme</p>
+</div>

1 comment on commit 73444ea

Sweet. Thanks. This is a great start. Eventually I want to make it so you can add features to the known set from the UI, but we'll need this either way. Appreciate the help!

Please sign in to comment.