Require authentication for all endpoints except API

* And more minor UI changes
This commit is contained in:
JonnyWong16 2016-04-23 01:02:37 -07:00
parent d8ad9adabd
commit e99bc73e46
5 changed files with 147 additions and 22 deletions

View file

@ -212,6 +212,8 @@ from plexpy.helpers import anon_url
% endif
<a href="settings" class="dropdown-toggle disabled" aria-haspopup="true" data-toggle="dropdown" data-hover="dropdown"><i class="fa fa-lg fa-cogs"></i> <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="settings"><i class="fa fa-cogs"></i> Settings</a></li>
<li role="separator" class="divider"></li>
<li><a href="logs"><i class="fa fa-list-alt"></i> View Logs</a></li>
<li role="separator" class="divider"></li>
% if plexpy.CONFIG.CHECK_GITHUB:
@ -219,7 +221,9 @@ from plexpy.helpers import anon_url
% endif
<li><a href="#" id="nav-restart"><i class="fa fa-refresh"></i> Restart</a></li>
<li><a href="#" id="nav-shutdown"><i class="fa fa-power-off"></i> Shutdown</a></li>
<li><a href="${http_root}auth/login"><i class="fa fa-sign-out"></i> Logout</a></li>
% if plexpy.CONFIG.HTTP_PASSWORD:
<li><a href="${http_root}auth/logout"><i class="fa fa-sign-out"></i> Logout</a></li>
% endif
</ul>
</li>
</ul>

View file

@ -132,7 +132,7 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
<td><a class="no-highlight" href="${anon_url('https://gitter.im/drzoidberg33/plexpy')}" target="_blank">https://gitter.im/drzoidberg33/plexpy</a></td>
</tr>
<tr>
<td>Donations:</td>
<td>Support PlexPy:</td>
<td><a class="no-highlight" href="${anon_url('https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DG783BMSCU3V4')}" target="_blank">Paypal</a> |
<a class="no-highlight" href="${anon_url('http://swiftpanda16.tip.me/')}" target="_blank">Bitcoin</a></td>
</tr>
@ -236,12 +236,11 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
<div role="tabpanel" class="tab-pane" id="tabs-2">
<div class="padded-header">
<h3>Homepage</h3>
<h3>Sections</h3>
</div>
<label for="sortable_home_stats_cards">Sections</label>
<p class="help-block">
Select the sections to show on the homepage.<br>
Select the sections to show on the homepage.
Drag the items below to reorder your homepage content.
</p>
<div class="row">
@ -281,7 +280,6 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
</div>
<div class="form-group">
<label for="sortable_home_stats_cards">Cards</label>
<p class="help-block">
Select the cards to show in the watch statistics on the home page.
Drag the items below to reorder your homepage content.
@ -386,7 +384,6 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
</div>
<div class="form-group">
<label for="home_library_cards">Cards</label>
<p class="help-block">
Select the cards to show in the library statistics on the home page.
Drag the items below to reorder your homepage content.
@ -433,7 +430,7 @@ available_notification_agents = sorted(notifiers.available_notification_agents()
<input type="text" class="form-control http-settings" id="http_root" name="http_root" value="${config['http_root']}" data-parsley-trigger="change">
</div>
</div>
<p class="help-block">The base URL for the web server. Used for reverse proxies.</p>
<p class="help-block">The base URL of the web server used for reverse proxies.</p>
</div>
<div class="checkbox">
<label>