diff --git a/dist/treebird20.css b/dist/treebird20.css index b13a6c8..d9f9944 100644 --- a/dist/treebird20.css +++ b/dist/treebird20.css @@ -484,7 +484,8 @@ svg.in-reply-to-icon * Statuses * **************************/ .status, -.notification-regular +.notification-regular, +.scrobble { padding: 6px 2px 0 6px; border-bottom: 1px solid #cacaca !important; @@ -1182,3 +1183,71 @@ ul.large-list li a { text-decoration: none; } + +/****************************** + * Scrobbles * + ******************************/ +.scrobblist-info +{ + padding: 4px; + border-collapse: collapse; + border-bottom: 1px solid #cacaca; + width: 100%; +} + +.scrobblist-info .username +{ + font-weight: bold; +} + +.pfp-img-scrobble +{ + position: relative; + top: 2px; + left: 2px; +} + +.scrobblist-info-text +{ + position: relative; + top: 5px; + left: 6px; +} + +.scrobble +{ + padding: 0px; +} + +.scrobbles +{ + border-collapse: collapse; + padding: 0; + margin: 0; +} + +.scrobbles tr td +{ + padding: 8px 10px; + margin: 0; +} + +.scrobble-key +{ + border-right: 1px solid #cacaca; +} + +.scrobble-value +{ + width: 100%; + border-right: 0; + color: #404040; +} + +.scrobble-key +{ + background-color: #eaeaea; + color: #606060; + font-weight: bold; +} + diff --git a/src/scrobble.c b/src/scrobble.c index 58ddad7..c7dc554 100644 --- a/src/scrobble.c +++ b/src/scrobble.c @@ -28,10 +28,18 @@ char* construct_scrobble(struct mstdnt_scrobble* scrobble, int* size) size_t s; s = easprintf(&scrobble_html, data_scrobble_html, + scrobble->id, + scrobble->account.avatar, + scrobble->account.display_name, + "is listening to...", + "Title", scrobble->title, + "Artist", scrobble->artist, - scrobble->length, - scrobble->album); + "Album", + scrobble->album, + "Duration", + scrobble->length); if (size) *size = s; return scrobble_html; diff --git a/static/scrobble.html b/static/scrobble.html index 23d43e8..f5fffa1 100644 --- a/static/scrobble.html +++ b/static/scrobble.html @@ -1,2 +1,28 @@ -%s - %s - %d - %s - Public? -
+
+ + + +
+ + + %s %s +
+ + + + + + + + + + + + + + + + + +
%s%s
%s%s
%s%s
%s%d
+