mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Onboarding for new libraries and new users
This commit is contained in:
@@ -69,6 +69,13 @@ class MainRouter < Router
|
||||
continue_reading = @context.library.get_continue_reading_entries username
|
||||
recently_added = @context.library.get_recently_added_entries username
|
||||
|
||||
new_user = true
|
||||
titles = @context.library.titles
|
||||
titles.each { |t| new_user = false if t.load_percentage(username) > 0 }
|
||||
|
||||
empty_library = true
|
||||
empty_library = false if titles.size > 0
|
||||
|
||||
layout "home"
|
||||
rescue e
|
||||
@context.error e
|
||||
|
||||
Reference in New Issue
Block a user