admin/app/views/fragments/serverBasedExperiments.scala.html
@import conf.switches.Switch @import experiments.Experiment @import experiments.ActiveExperiments.allExperiments @import conf.Configuration @()
Name | State | Links | Bucket | Expires | Audience | @allExperiments.map { experiment => | @experiment.name | @status(experiment) | @links(experiment) |
@experiment.participationGroup
| @Switch.expiry(experiment.switch).daysToExpiry days | @experiment.participationGroup.percentage% | } @if(allExperiments.isEmpty) { | There are currently no server side tests | }
@status(experiment: Experiment) = { @if(Switch.expiry(experiment.switch).hasExpired) { expired } else { @if(Switch.expiry(experiment.switch).expiresSoon) { active } else { expires soon } @if(experiment.switch.isSwitchedOn) { on } else { off } } } @links(experiment: Experiment) = {
@if(experiment.switch.isSwitchedOn) { opt out opt in @if(Configuration.environment.isDev) {
These links won't work locally.
See How to force yourself into the test locally
} } else { Switch on the test to be able to opt in }
}