14 lines
259 B
Scala
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)
|
|
}
|