From aa058d08b95eff15514c0dac4bc68c05cb57e035 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sun, 5 Jul 2020 18:00:28 -0500 Subject: [PATCH] show the timeline editor before creating any timelines --- app/controllers/application_controller.rb | 3 +++ app/views/timelines/index.html.erb | 26 +++++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 0e411cb2..bd451886 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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 diff --git a/app/views/timelines/index.html.erb b/app/views/timelines/index.html.erb index ba042fb1..78c2c27b 100644 --- a/app/views/timelines/index.html.erb +++ b/app/views/timelines/index.html.erb @@ -74,7 +74,7 @@ <% elsif @timelines.empty? %>
- <% if @current_user_content.fetch('Timeline', []).count > 0 %> + <% if false && @current_user_content.fetch('Timeline', []).count > 0 %>
<%# render partial: 'content/components/list_filter_bar', locals: { content_type: Timeline } %>
@@ -116,7 +116,7 @@
<% if @universe_scope %> -
+
@@ -138,3 +138,25 @@ <% end %>
<% end %> + +
+
+

About the timeline editor

+
+
+ +
+
+

+ 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 — and you can link any of your worldbuilding pages to specific events. +

+
+

+ 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! +

+
+
+
+
\ No newline at end of file