<%- if new_user && empty_library -%>

Add your first manga

We can't find any files yet. Add some to your library and they'll appear here.

Current library path
<%= @context.config.library_path %>
Want to change your library path?
Update config.yml located at: <%= @context.config.path %>
Can't see your files yet?
You must wait <%= @context.config.scan_interval %> minutes for the library scan to complete <% if is_admin %>, or manually re-scan from Admin<% end %>.
<%- elsif new_user && empty_library == false -%>

Read your first manga

Once you start reading, Mango will remember where you left off and show your entries here.

View library
<%- elsif new_user == false && empty_library == false -%> <%- if continue_reading.empty? && recently_added.empty? -%>

A self-hosted manga server and reader

View library
<%- end -%> <%- unless continue_reading.empty? -%>

Continue Reading

<%- continue_reading.each do |cr| -%>
<%= (cr[:percentage] * 100).round(1) %>%

"><%= cr[:entry].display_name %>

<%= cr[:entry].pages %> pages

<%- end -%>
<%- end -%> <%- unless recently_added.empty? -%>

Recently Added

<%- recently_added.each do |ra| -%> <%- if ra[:grouped_count] == 1 -%>
<%= (ra[:percentage] * 100).round(1) %>%

"><%= ra[:entry].display_name %>

<%= ra[:entry].pages %> pages

<%- else -%>

"><%= ra[:entry].book.display_name %>

<%= ra[:grouped_count] %> new entries

<%- end -%> <%- end -%>
<%- end -%> <%- end -%> <% content_for "script" do %> <% end %>