Another update to recently added and recently watched.

Recently added albums now include artist name.
Recently watched episodes now include show name.
This commit is contained in:
JonnyWong16 2015-08-18 02:26:52 -07:00
parent 22cc06dec3
commit 6cb1c057cf
4 changed files with 22 additions and 14 deletions

View file

@ -264,6 +264,9 @@ fieldset[disabled] .btn-bright.active {
.modal-body i {
color: #F9AA03;
}
.modal-body i.fa {
color: #fff;
}
.modal-body strong {
color: #F9AA03;
}
@ -641,13 +644,14 @@ input[type="color"],
font-size: 13px;
margin: 0;
line-height: 15px;
font-weight: bold;
font-weight: normal;
width: 153px;
white-space: nowrap;
text-align: center;
clear: both;
}
.dashboard-recent-media-metacontainer text-muted {
.dashboard-recent-media-metacontainer .text-muted {
padding-top: 5px;
text-overflow: ellipsis;
overflow: hidden;
position: relative;
@ -1151,7 +1155,7 @@ input[type="color"],
position: relative;
font-size: 13px;
line-height: 15px;
font-weight: bold;
font-weight: normal;
width: 140px;
margin-left: 10px;
}

View file

@ -50,6 +50,7 @@ DOCUMENTATION :: END
<div class="cover-face" style="background-image: url(pms_image_proxy?img=${item['thumb']}&width=300&height=300&fallback=cover);"></div>
</div>
<div class="dashboard-recent-media-metacontainer">
<h3>${item['parent_title']}</h3>
<h3>${item['title']}</h3>
<div class="text-muted" id="added_at-${item['rating_key']}">${item['added_at']}</div>
</div>

View file

@ -18,6 +18,7 @@ time Returns the last watched time of the media.
title Returns the name of the movie or episode.
== Only if 'type' is 'episode ==
parent_title Returns the name of the TV Show a season belongs too.
parent_index Returns the season number.
index Returns the episode number.
@ -39,8 +40,9 @@ DOCUMENTATION :: END
</div>
<div class="dashboard-recent-media-metacontainer">
% if item['type'] == 'episode':
<h3>${item['parent_title']}</h3>
<h3>${item['title']}</h3>
<h3>(Season ${item['parentIndex']}, Episode ${item['index']})</h3>
<h3>(Season ${item['parent_index']}, Episode ${item['index']})</h3>
% elif item['type'] == 'movie':
<h3>${item['title']}</h3>
<h3>(${item['year']})</h3>