diff --git a/app/assets/css/main.css b/app/assets/css/main.css index 21f1534..3caa41b 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -249,4 +249,19 @@ h3.library-identification{ } #scan-results{ margin-top: 64px; -} \ No newline at end of file +} +.confidence{ + border: 1px solid grey; + color: grey; + height: 1.5em; + width: 1.5em; + vertical-align: middle; + text-align: center; + display: inline-block; + border-radius: 1em; + margin-right: 5px; +} +.confidence .fa{ + position: relative; + top: -0.5ex; +} diff --git a/app/views/confidence.scala.html b/app/views/confidence.scala.html new file mode 100644 index 0000000..24de272 --- /dev/null +++ b/app/views/confidence.scala.html @@ -0,0 +1,4 @@ +@import com.ysoft.odc.Confidence +@import com.ysoft.odc.Confidence.Confidence +@(confidence: Confidence) +"up", Confidence.Medium->"right", Confidence.Low->"down")(confidence))"> \ No newline at end of file diff --git a/app/views/identifier.scala.html b/app/views/identifier.scala.html index facf294..e3de014 100644 --- a/app/views/identifier.scala.html +++ b/app/views/identifier.scala.html @@ -1,2 +1,4 @@ +@import com.ysoft.odc.Confidence @(identifier: Identifier, addLink: Boolean = true) -@secureLink(if(addLink) identifier.url else ""){@identifier.name} \ No newline at end of file +@secureLink(if(addLink) identifier.url else ""){ + @confidence(identifier.confidence)@identifier.name} \ No newline at end of file diff --git a/app/views/libraryIdentificationList.scala.html b/app/views/libraryIdentificationList.scala.html index b9c9687..2f38250 100644 --- a/app/views/libraryIdentificationList.scala.html +++ b/app/views/libraryIdentificationList.scala.html @@ -16,7 +16,7 @@ }