-
Notifications
You must be signed in to change notification settings - Fork 0
/
foto.scala.html
32 lines (28 loc) · 995 Bytes
/
foto.scala.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@(album: model.Fotoalbum, foto: model.Foto)
@import helper._
@import helper.twitterBootstrap._
@heading = {
Fotoalbum von @album.besitzer.name.vorname
}
@main(heading=heading.toString) {
<div id="foto-blaetterer">
<p>
@album.vorhergehendePosition(foto).map { pos =>
<a id="vorhergehendesBild" href="@routes.FotoVorfuehrer.fotoalbumEinzelfoto(album.besitzer.name, pos)"><<< Zurück</a>
}.getOrElse {
<<< Zurück
}
|
<a id="uebersicht" href="@routes.FotoVorfuehrer.fotoalbum(album.besitzer.name)">Übersicht</a>
|
@album.naechstePosition(foto).map { pos =>
<a id="naechstesBild" href="@routes.FotoVorfuehrer.fotoalbumEinzelfoto(album.besitzer.name, pos)">Weiter >>></a>
}.getOrElse {
Weiter >>>
}
</p>
</div>
<div>
<img class="foto" src="@routes.FotoVorfuehrer.foto(foto.id.get)">
</div>
}