@(profile: User, keys: List[UserApiKey], ownProfile: Boolean)(implicit user: Option[models.User] = None) @main("Profile") {

Followed by @profile.followers.size people

@user match { case Some(viewer) => { @if(ownProfile) {

Edit Profile

} else {

} } case None => {} }
@if(profile.identityId.providerId != "userpass") {

@profile.fullName

} else { @if(ownProfile){

@Html(profile.firstName)

@Html(profile.lastName)

} else {

@Html(profile.firstName)

@Html(profile.lastName)

} }
@profile.identityId.providerId match { case "userpass" => { Profile Source : Local Account } case "google" => { Profile Source : @profile.identityId.providerId Google+ } case "twitter" => { Profile Source : @profile.identityId.providerId Twitter } case "facebook" => { Profile Source : @profile.identityId.providerId Facebook } case "orcid" => { Profile Source : @profile.identityId.providerId ORCID } case provider => { Profile Source : @profile.identityId.providerId @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.
Name
Key
@keys.map{key =>
@if(key.name.startsWith("_")) { } else { }
@key.name
@key.key
} }
}