From ff11f631771ba400f2acfe7eeabc613a75ff8361 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 25 Feb 2013 22:16:24 -0600 Subject: [PATCH] onboarding universe prompt for new people --- app/views/main/dashboard.html.erb | 50 ++++++++++++++++++++++++++----- 1 file changed, 43 insertions(+), 7 deletions(-) diff --git a/app/views/main/dashboard.html.erb b/app/views/main/dashboard.html.erb index 896cc4f1..5d8840b9 100644 --- a/app/views/main/dashboard.html.erb +++ b/app/views/main/dashboard.html.erb @@ -1,9 +1,45 @@ -

You've created a total of <%= @things %> <%= "thing".pluralize(@things) %>!

+<% if @things > 0 %> +

You've created a total of <%= @things %> <%= "thing".pluralize(@things) %>!

+
+ +

<%= @characters.length %> <%= link_to "character".pluralize(@characters.length), character_list_path %>

+

<%= @equipment.length %> <%= link_to "piece".pluralize(@equipment.length) + " of equipment", equipment_list_path %>

+

<%= @languages.length %> <%= link_to "language".pluralize(@languages.length), language_list_path %>

+

<%= @locations.length %> <%= link_to "location".pluralize(@locations.length), location_list_path %>

+

<%= @magics.length %> <%= link_to "manifestation".pluralize(@magics.length) + " of magic", magic_list_path %>

+

<%= @universes.length %> <%= link_to "universe".pluralize(@universes.length), universe_list_path %>

+<% else %> + +

Someone new! Lets get you started!


-

<%= @characters.length %> <%= link_to "character".pluralize(@characters.length), character_list_path %>

-

<%= @equipment.length %> <%= link_to "piece".pluralize(@equipment.length) + " of equipment", equipment_list_path %>

-

<%= @languages.length %> <%= link_to "language".pluralize(@languages.length), language_list_path %>

-

<%= @locations.length %> <%= link_to "location".pluralize(@locations.length), location_list_path %>

-

<%= @magics.length %> <%= link_to "manifestation".pluralize(@magics.length) + " of magic", magic_list_path %>

-

<%= @universes.length %> <%= link_to "universe".pluralize(@universes.length), universe_list_path %>

+

Before you begin...

+
+

You probably want to create a Universe.

+

+

+ Every story has its own set of characters, maps, history, relationships, and information that is unique to that story. +

+

+ While using Indent, you can encapsulate everything about your story within its own universe, separating your people, places, and things from those that exist within other stories. +

+

+ This way, if you really like Indent and want to use it to plan multiple stories, you can! You can choose to see everything you've planned out across any universe, or you can see all information within a universe you're looking at. Pretty handy! +

+

+ If the concept of universes doesn't quite make sense to you, don't fret: you don't have to create a universe. Heck, you don't even have to create any characters – you're free to use Indent however you want. We just think putting things in universes might help you organize things better later, that's all. +

+

+

So lets get started!

+

+

+ <%= link_to "Create your first universe!", universe_create_path, :class => "btn btn-primary" %> or skip it altogether and start creating something else, like + + <%= link_to "characters", character_create_path %>, + <%= link_to "equipment", equipment_create_path %>, or + <%= link_to "locations", location_create_path %>. + +

+
+ +<% end %>