Added initial implementation of inline remixers
First implementation is a bit of a hardcode; working on making it work with all artist relations. Will then add a config flag or something for it to be user-toggleable.
This commit is contained in:
@@ -123,6 +123,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
${<if-has-remixers>}<div class="ms-5 pb-2 px-2 text-small">
|
||||||
|
Remixer — ${remixers class="d-inline d-md-inline"}
|
||||||
|
</div>${</if-has-remixers>}
|
||||||
</message>
|
</message>
|
||||||
|
|
||||||
<message id="Lms.Explore.Release.template.release-info">
|
<message id="Lms.Explore.Release.template.release-info">
|
||||||
|
|||||||
@@ -437,6 +437,13 @@ namespace lms::ui
|
|||||||
entry->bindWidget("artists-md", utils::createArtistDisplayNameWithAnchors(track->getArtistDisplayName(), artists));
|
entry->bindWidget("artists-md", utils::createArtistDisplayNameWithAnchors(track->getArtistDisplayName(), artists));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const auto remixers{ track->getArtistIds({ TrackArtistLinkType::Remixer }) };
|
||||||
|
if (!remixers.empty())
|
||||||
|
{
|
||||||
|
entry->setCondition("if-has-remixers", true);
|
||||||
|
entry->bindWidget("remixers", utils::createArtistDisplayNameWithAnchors(track->getArtistDisplayName(), remixers));
|
||||||
|
}
|
||||||
|
|
||||||
auto trackNumber{ track->getTrackNumber() };
|
auto trackNumber{ track->getTrackNumber() };
|
||||||
if (trackNumber)
|
if (trackNumber)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user