Add message for no recently added items

This commit is contained in:
JonnyWong16 2017-08-02 21:22:37 -07:00
parent e0b78adfee
commit 1ac4d43db2
2 changed files with 7 additions and 0 deletions

View file

@ -1009,6 +1009,9 @@ a .dashboard-activity-metadata-user-thumb:hover {
font-weight: bold;
color: #e9a049;
}
#dashboard-no-recently-added {
margin-bottom: 20px;
}
.dashboard-recent-media-row {
width: 100%;
margin: 0 auto;

View file

@ -31,6 +31,7 @@ DOCUMENTATION :: END
</%doc>
% if data != None:
% if data:
<div class="dashboard-recent-media-row">
<div id="recently-added-row-scroller" style="left: 0;">
<ul class="dashboard-recent-media list-unstyled">
@ -177,5 +178,8 @@ DOCUMENTATION :: END
</div>
</div>
% else:
<div id="dashboard-no-recently-added" class="text-muted">No recently added items.</div>
% endif
% else:
<div class="text-muted">There was an error communicating with your Plex Server.</div><br>
% endif