-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak additional links in classification list view (#656)
- Display button as link - Don't include number of links - Show icons for DNB and Wikidata
- Loading branch information
Showing
3 changed files
with
9 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,7 +91,7 @@ | |
}}">@hits</a>) | ||
} | ||
@if(!matches.isEmpty()) { | ||
<button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#@matches.hashCode"><span class="octicon octicon-link"></span> @matches.size</button> | ||
<button type="button" class="btn btn-link btn-xs" data-toggle="modal" data-target="#@matches.hashCode"><span class="octicon octicon-link"></span></button> | ||
<div id="@matches.hashCode" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="[email protected]"> | ||
<div class="modal-dialog modal-lg" role="document"> | ||
<div class="modal-content"> | ||
|
@@ -100,7 +100,14 @@ | |
<h4 class="modal-title" id="[email protected]">Links für @Html(entryLabel)</h4> | ||
</div> | ||
<div class="modal-body"> | ||
@for(link <- matches) { <p><a href="@link" target="_blank"><span class="octicon octicon-link"></span> @link</a></p> } | ||
@for(link <- matches) { <p><a href="@link" target="_blank"> | ||
@link match { | ||
case x if x.contains("d-nb.info") => { <img src='@controllers.routes.Assets.at("images/dnb.png")' style="height:1em" alt="Deutsche Nationalbibliothek (DNB)"> } | ||
case x if x.contains("wikidata.org") => { <img src='@controllers.routes.Assets.at("images/wikidata.png")' style="height:1em" alt="Wikidata"> } | ||
case _ => { <span class="octicon octicon-link"></span> } | ||
} | ||
@link</a></p> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.