Show config path for empty libraries and link to Admin for manual re-scan

This commit is contained in:
Jared Turner 2020-06-08 15:24:51 +01:00
parent 0bd94a2290
commit 6d4e8ea544

View File

@ -8,9 +8,10 @@
<dt style="font-weight: 500;">Current library path</dt> <dt style="font-weight: 500;">Current library path</dt>
<dd><code><%= @context.config.library_path %></code></dd> <dd><code><%= @context.config.library_path %></code></dd>
<dt style="font-weight: 500;">Want to change your library path?</dt> <dt style="font-weight: 500;">Want to change your library path?</dt>
<dd>Update <code>config.yml</code> located at: <code>/can/I/access/config_path/from/view?</code></dd> <dd>Update <code>config.yml</code> located at: <code><%= @context.config.path %></code></dd>
<dt style="font-weight: 500;">Can't see your files yet?</dt> <dt style="font-weight: 500;">Can't see your files yet?</dt>
<dd>You must wait <%= @context.config.scan_interval %> minutes for the library scan to complete, or restart Mango.</dd> <dd>You must wait <%= @context.config.scan_interval %> minutes for the library scan to complete
<% if is_admin %>, or manually re-scan from <a href="/admin">Admin</a><% end %>.</dd>
</dl> </dl>
</div> </div>