aboutsummaryrefslogtreecommitdiff
path: root/client/src/view/licence/LicencePage.scala
blob: fc76522436f9d8ed4b5d3bbde91f0b7bfb6378db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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>

}