Skip to content

Commit

Permalink
Remove unneeded Text()
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbriccetti authored and indrajitr committed Apr 21, 2010
1 parent 84b3cc2 commit f31d0f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/birdshow/snippet/Galleries.scala
Expand Up @@ -23,15 +23,15 @@ class Galleries extends PhotoRows {
val showGalleryIndex = <a href="?">Show gallery index</a>

def bindGalleryWithId(content: NodeSeq, id: String) = bind("gal", content,
"heading" -> Text(Flickr.getSets.find(_.id == id) match {
"heading" -> (Flickr.getSets.find(_.id == id) match {
case Some(photoSet) => photoSet.title
case _ => ""
}),
"showAll" -> showGalleryIndex,
"photoRows" -> bindPhotoRows(content, Flickr.getSetPhotosAndSizes(id), photoExpandableImage))

def bindSearchResults(content: NodeSeq) = bind("gal", content,
"heading" -> Text("Results for " + searchText.is),
"heading" -> ("Results for " + searchText.is),
"showAll" -> showGalleryIndex,
"photoRows" -> bindPhotoRows(content, Flickr.searchPhotos(searchText.is), photoExpandableImage))

Expand Down

0 comments on commit f31d0f8

Please sign in to comment.