Added css style for each cluster type. Unified cluster handling in UI

This commit is contained in:
emeric
2018-05-06 17:50:18 +02:00
parent 57e745b460
commit 142ef53b6f
8 changed files with 28 additions and 23 deletions
+1 -4
View File
@@ -79,10 +79,7 @@ Artist::refresh()
auto clusters = artist->getClusters(3);
for (auto cluster : clusters)
{
Wt::WTemplate* entry = clusterContainers->addNew<Wt::WTemplate>(Wt::WString::tr("Lms.Explore.Artist.template.cluster-entry"));
entry->bindString("name", Wt::WString::fromUTF8(cluster->getName()), Wt::TextFormat::Plain);
}
clusterContainers->addWidget(LmsApp->createCluster(cluster));
}
t->bindString("name", Wt::WString::fromUTF8(artist->getName()), Wt::TextFormat::Plain);