Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Adds matched topic information to hold in browse list #317

Merged
merged 2 commits into from
Aug 12, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion app/views/hold/browse.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
* Copyright (c) 2015 MIT Libraries *
*****************************************************************************@
@(id: Int, holds: List[Hold], page: Int, total: Long)(implicit request: play.api.mvc.RequestHeader)
@reason(topic: Topic) = {
<p class="hold_topic">@topic.scheme.tag: <a href="@routes.Application.topic(topic.id)">@topic.tag</a></p>
}
@layout.main("Holds Browse - TopicHub") {
<div class="page-header">
<h2>Review Holds</h2>
@tags.summary(page, 10, total, holds.length)
</div>
<ul>
@holds.map { hold =>
<li><a href="@routes.ItemController.item(hold.itemId)">@Html(hold.item.metadataValue("title"))</a></li>
<li><a href="@routes.ItemController.item(hold.itemId)">@Html(hold.item.metadataValue("title"))</a>
@reason(hold.subscription.topic)
</li>
}
</ul>
@tags.pagination(page, 10, total, routes.Application.holdBrowse(id).toString, holds.length)
Expand Down
4 changes: 4 additions & 0 deletions public/stylesheets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ a.list-group-item:hover {
background-color: lightblue;
border: solid thin red;
}

.hold_topic, .hold_topic a {
color: gray;
}