aboutsummaryrefslogtreecommitdiff
path: root/client/src/view/licence
diff options
context:
space:
mode:
authorJoris2019-05-16 09:40:02 +0200
committerJoris2019-05-16 09:40:02 +0200
commit7bf58894761742d4da8e6f52ce113ea7327e7114 (patch)
tree388785f65e258e956296977cff4bd1f7ac6e1526 /client/src/view/licence
parentf015a216f5ee1e335d5ae90dbc8f3efafdca6fec (diff)
Bootstrap
Diffstat (limited to 'client/src/view/licence')
-rw-r--r--client/src/view/licence/LicencePage.scala24
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>
+
+}