@( selectedDependencies: Seq[(Int, Library)], allTags: Seq[(Int, LibraryTag)], dependencyTags: Map[Int, Set[LibraryTagAssignment]], requiredClassification: Option[Boolean], requiredTagSet: Set[Int], noTag: Boolean, tagsLink: Set[Int] => Call, classificationLink: Option[Boolean] => Call, noTagLink: Boolean => Call )(implicit header: DefaultRequest) @main(s"${requiredClassification match{case Some(true) => "Classified" case Some(false) => "Unclassified" case None => "All"}} dependencies (${selectedDependencies.size})") {
@for((newClassification, name) <- Seq(None -> "All", Some(true) -> "Classified", Some(false) -> "Unclassified"); isCurrent = newClassification == requiredClassification){ @name }
Required tags: @if(!noTag) { @for((tagId, tag) <- allTags.sortBy(_._2.name); enabled = requiredTagSet contains tagId) { @tag.name } }
@dependencyClassification( prefix = "dependency", dependencies = selectedDependencies, allTags = allTags, dependenciesTags = dependencyTags, details = (_, _) => { Html("") } ) }