forked from scalacenter/scaladex
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move badge display to it's own box on RHS bar
Suggested in scalacenter#670 (comment) ...not entirely sure if it's better there, especially as the available space is even more narrow.
- Loading branch information
Showing
4 changed files
with
84 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
template/src/main/twirl/ch.epfl.scala.index.views/project/badges.scala.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@import ch.epfl.scala.index.model.Release | ||
@(release: Release) | ||
<div class="box badge-showcase"> | ||
<h4>Markdown Badge</h4> | ||
<div style="overflow: hidden"> | ||
<a href="#badge-markdown"> | ||
<img src="@release.reference.badgeUrl" /> | ||
</a> | ||
</div> | ||
<div id="badge-markdown" class="overlay"> | ||
<div class="popup"> | ||
<h2>Create badge</h2> | ||
<a class="close" href="#">×</a> | ||
|
||
<div class="content"> | ||
<img src="@release.reference.badgeUrl" /> | ||
<div> | ||
<h5>Markdown:</h5> | ||
<pre | ||
aria-label="Badge markdown" | ||
id="copy-badge-markdown" | ||
class="copyable-incantation" | ||
>[![@release.reference.artifact Scala version support](@release.reference.badgeUrl)](@release.reference.artifactFullHttpUrl)</pre> | ||
<button class="btn-copy btn btn-primary pull-right" data-clipboard-target="copy-badge-markdown">Copy Markdown</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters