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

Commit

Permalink
Adjust display for Subscriber Index
Browse files Browse the repository at this point in the history
closes #252
  • Loading branch information
JPrevost committed Jul 28, 2015
1 parent bd9268a commit 4a9b049
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
27 changes: 14 additions & 13 deletions app/views/subscriber/index.scala.html
@@ -1,21 +1,22 @@
@*****************************************************************************
* Entry page for subscriber browsing. Includes a link to forms *
* for new subscriber account creation *
* Copyright (c) 2015 MIT Libraries *
*****************************************************************************@
* Entry page for subscriber browsing. Includes a link to forms *
* for new subscriber account creation *
* Copyright (c) 2015 MIT Libraries *
*****************************************************************************@
@()(implicit request: play.api.mvc.RequestHeader)
@layout.main("Subscribers - TopicHub") {
<div class="container-fluid">
<div class="row">
<div class="row-fluid">
<div class="col-md-4">
<div class="well-lg sidebar-nav">
<ul class="navbar-nav nav-list">
<li class="nav-header">Categories</li>
@for(cat <- Subscriber.categories) {
<li><a href="@routes.Application.subscriberBrowse("category", cat)">@cat</a> (@HubUtils.pluralize(Subscriber.categoryCount(cat), "subscriber"))</li>
}
</ul>
</div>
<div class="list-group">
<h3>Categories</h3>
@for(cat <- Subscriber.categories) {
<a href="@routes.Application.subscriberBrowse("category", cat)"
class="list-group-item">@cat
<span class="badge">@Subscriber.categoryCount(cat)</span>
</a>
}
</div>
</div>
<div class="col-md-8">
<div class="jumbotron">
Expand Down
1 change: 0 additions & 1 deletion test/integration/SubscriberPageSpec.scala
Expand Up @@ -28,7 +28,6 @@ class SubscriberPagesSpec extends Specification {
Some("link"), Some("logo"))
browser.goTo("http://localhost:" + port + "/subscribers")
assertThat(browser.title()).isEqualTo("Subscribers - TopicHub")
browser.pageSource must contain("(One subscriber)")
browser.pageSource must contain("Sign Up »")
}

Expand Down

1 comment on commit 4a9b049

@richardrodgers
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.