Skip to content

Commit

Permalink
Scala versions of artifact as link to artifact page
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Nov 22, 2022
1 parent aef981b commit 050c409
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
14 changes: 11 additions & 3 deletions modules/server/src/main/assets/css/partials/_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
}
}
.info-project {
margin-bottom: 60px;
margin-bottom: 40px;

h1 {
display: inline-block;
Expand Down Expand Up @@ -325,8 +325,16 @@
.fa-solid {
margin-left: 5px;
}
.scala-version {
padding-left: 15px;
a.scala-version {
padding-left: 16px;
display: inline-block;
color: $gray;
&:active,
&:focus,
&:hover {
text-decoration: none;
color: $brand-primary;
}
}
.artifact-content {
h5 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@
<div>We can't find any release that matches all you criteria</div>
} else {
<div>
@artifactByVersions.map { case ((releaseDate, semanticVersion), artifacts) =>
@artifactByVersions.map { case ((releaseDate, version), artifacts) =>
<div class="panel">
<div class="artifact-row panel-body center">
<div class="col-md-3 center">
<a class="artifact-version" href="/@project.reference/artifacts/@artifactName/@semanticVersion">@semanticVersion</a>
<a class="artifact-version" href="/@project.reference/artifacts/@artifactName/@version">@version</a>
</div>
<div class="col-md-9">
<div class="artifact-info">
Expand All @@ -66,8 +66,10 @@
.sortBy(_._1)(Platform.ordering.reverse)
) {
<h5>@platform:</h5>
@for(language <- binaryVersions.map(_.language).distinct.sorted) {
<span class="scala-version">@language.label</span>
@for(binaryVersion <- binaryVersions.distinct.sorted) {
<a href="/@project.reference/artifacts/@artifactName/@[email protected]" class="scala-version">
@binaryVersion.language.label
</a>
}
<br>
}
Expand Down

0 comments on commit 050c409

Please sign in to comment.