show the timeline editor before creating any timelines

This commit is contained in:
Andrew Brown 2020-07-05 18:00:28 -05:00
parent 6c844f687e
commit aa058d08b9
2 changed files with 27 additions and 2 deletions

View File

@ -56,6 +56,9 @@ class ApplicationController < ActionController::Base
@current_user_content = current_user.content(content_types: @activated_content_types + ['Universe'], universe_id: @universe_scope.try(:id))
@current_user_content['Document'] = current_user.documents
# Likewise, we should also always cache Timelines
@current_user_content['Timeline'] = current_user.timelines.where(universe_id: @universe_scope.try(:id))
# Fetch notifications
@user_notifications = current_user.notifications.order('happened_at DESC').limit(10)
end

View File

@ -74,7 +74,7 @@
<% elsif @timelines.empty? %>
<div class="row">
<% if @current_user_content.fetch('Timeline', []).count > 0 %>
<% if false && @current_user_content.fetch('Timeline', []).count > 0 %>
<div class="col s12 center">
<%# render partial: 'content/components/list_filter_bar', locals: { content_type: Timeline } %>
</div>
@ -116,7 +116,7 @@
<div class="row">
<% if @universe_scope %>
<div class="col s12 m4">
<div class="col s12 m4 offset-m4">
<div class="hoverable card">
<div class="card-content">
<div class="card-title">
@ -138,3 +138,25 @@
<% end %>
</div>
<% end %>
<div class="row">
<div class="col s12">
<h4 class="grey-text center">About the timeline editor</h4>
<div class="card">
<div class="card-image">
<img src="https://i.imgur.com/cCb5RBB.png">
</div>
<div class="card-content">
<p>
Create and manage timelines for your worlds and stories in the new Notebook.ai Timeline Editor. When you get started, you'll have a blank timeline that you can
add an unlimited number of events to. Each event can have a title, description, and notes &mdash; and you can link any of your worldbuilding pages to specific events.
</p>
<br />
<p>
Events can be reordered however you'd like and you can add custom time labels on each event, meaning you can be as specific or as vague as you'd like when creating your
timeline. Perfect for getting a general timeline built and then coming back to make things more specific afterwards!
</p>
</div>
</div>
</div>
</div>