@if(profile.identityId.providerId != "userpass") {
@profile.fullName
} else {
@if(ownProfile){
} else {
@Html(profile.firstName)
@Html(profile.lastName)
}
}
@profile.identityId.providerId match {
case "userpass" => {
Profile Source : Local Account
}
case "google" => {
Profile Source :
Google+
}
case "twitter" => {
Profile Source :
Twitter
}
case "facebook" => {
Profile Source :
Facebook
}
case "orcid" => {
Profile Source :
ORCID
}
case provider => {
Profile Source :

@provider.capitalize
}
}
@if(profile.email.isDefined) {
@profile.email.get
}
@if(profile.profile.isDefined) {
Institution
@profile.profile.get.getPositionAtInstitution
@profile.profile.get.orcidID match{
case Some(info) => {
Orcid ID
@info
}
case None => {}
}
@if(profile.profile.get.biography.nonEmpty) {
Biography
@profile.profile.get.biography
}
@if(profile.profile.get.currentprojects.nonEmpty) {
Current Projects
@profile.profile.get.currentprojects.mkString(", ")
}
@if(profile.profile.get.pastprojects.nonEmpty) {
Past Projects
@profile.profile.get.pastprojects.mkString(", ")
}
}
@if(ownProfile && play.api.Play.current.plugin[services.StagingAreaPlugin].isDefined) {
@play.api.i18n.Messages("profile.disclaimer")
}
@if(ownProfile) {
User API Keys
Create your personal API keys by providing a name for the key and clicking the Add button. Key names have to be unique per user.
@keys.map{key =>
@if(key.name.startsWith("_")) {
} else {
}
@key.name
@key.key
}
}