diff --git a/data/interfaces/default/css/style.css b/data/interfaces/default/css/style.css
index 8227537d2..8c78b7a39 100644
--- a/data/interfaces/default/css/style.css
+++ b/data/interfaces/default/css/style.css
@@ -1015,6 +1015,11 @@ div#artistheader h2 a {
text-align: left;
vertical-align: middle;
}
+#artist_table td#added {
+ min-width: 100px;
+ text-align: left;
+ vertical-align: middle;
+}
#markalbum {
position: relative;
top: 25px;
diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html
index 260c0a1a3..5c758ad19 100644
--- a/data/interfaces/default/index.html
+++ b/data/interfaces/default/index.html
@@ -12,6 +12,7 @@
Status |
Latest Release |
Have |
+ Added |
@@ -101,6 +102,9 @@
return '' + full['HaveTracks'] + '/' + full['TotalTracks'] + '
';
}
},
+ {
+ "aTargets":[5],"mDataProp":"DateAdded"
+ },
],
"oLanguage": {
"sSearch": "",
@@ -123,6 +127,7 @@
nRow.children[2].id = 'status'
nRow.children[3].id = 'album'
nRow.children[4].id = 'have'
+ nRow.children[5].id = 'added'
return nRow;
},
"fnServerData": function ( sSource, aoData, fnCallback ) {
diff --git a/headphones/webserve.py b/headphones/webserve.py
index 2b0f26993..e062022f4 100644
--- a/headphones/webserve.py
+++ b/headphones/webserve.py
@@ -998,6 +998,8 @@ def getArtists_json(self, iDisplayStart=0, iDisplayLength=100, sSearch="", iSort
sortcolumn = 'ReleaseDate'
elif iSortCol_0 == '4':
sortbyhavepercent = True
+ elif iSortCol_0 == '5':
+ sortcolumn = 'DateAdded'
if sSearch == "":
query = 'SELECT * from artists order by %s COLLATE NOCASE %s' % (sortcolumn, sSortDir_0)
@@ -1032,6 +1034,7 @@ def getArtists_json(self, iDisplayStart=0, iDisplayLength=100, sSearch="", iSort
"ReleaseDate": "",
"ReleaseInFuture": "False",
"AlbumID": "",
+ "DateAdded": artist["DateAdded"],
}
if not row['HaveTracks']: