lila/app/templating/BookmarkHelper.scala
2014-04-19 13:28:46 +02:00

14 lines
259 B
Scala

package lila.app
package templating
import lila.bookmark.Env.{ current => bookmarkEnv }
import lila.game.Game
import lila.user.User
trait BookmarkHelper {
def isBookmarked(game: Game, user: User): Boolean =
bookmarkEnv.api.bookmarked(game, user)
}