diff options
Diffstat (limited to 'client/src/view/licence')
-rw-r--r-- | client/src/view/licence/LicencePage.scala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/client/src/view/licence/LicencePage.scala b/client/src/view/licence/LicencePage.scala new file mode 100644 index 0000000..fc76522 --- /dev/null +++ b/client/src/view/licence/LicencePage.scala @@ -0,0 +1,24 @@ +package yoga.view.licence + +import java.net.URI +import scala.xml.Node + +import yoga.service.Poses + +object LicencePage { + + def apply(uri: URI): Node = + <div> + {Poses.values.find(_.image == uri).map { pose => + <div> + <div> + <img src={s"images/${pose.image}"} /> + </div> + <a href={pose.rights.licence.uri.toString}> + {pose.rights.licence.name} + </a> + </div> + }} + </div> + +} |