1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-21 15:54:22 +01:00

private profile

This commit is contained in:
Sylvain 2016-05-17 17:43:29 +02:00
parent 0061c3dca6
commit 284879e0d4
4 changed files with 30 additions and 12 deletions

View File

@ -500,6 +500,20 @@ body.container{
.profile-top-infos { .profile-top-infos {
margin: 0 15px 0 15px; margin: 0 15px 0 15px;
padding: 30px 0 30px 0; padding: 30px 0 30px 0;
.private-profile {
color: #000;
border: 1px solid $border-color;
background-color: $border-color;
border-radius: 3px;
padding: 0 5px 0 5px;
margin-left: 2em;
i {
padding-right: 5px;
}
}
} }
.profile-top-pictos { .profile-top-pictos {

View File

@ -26,15 +26,17 @@
</div> </div>
<div class="col-lg-7 profile-top-infos"> <div class="col-lg-7 profile-top-infos">
<div class="text-xl font-ebold upper">{{user.username}}</div> <div class="text-xl font-ebold upper">{{user.username}}</div>
<small class="font-bold">{{user.name}}</small> • <small class="upper">{{user.is_allow_contact ? 'Profil public' : 'Profil privé'}}</small> <small class="font-bold">{{user.name}}</small>
<div class="text-italic"> <small class="text-xs upper font-thin private-profile" ng-show="!user.is_allow_contact"><i class="fa fa-lock" aria-hidden="true"></i> {{ 'private_profile' | translate }}</small>
<span class="font-bold" translate>{{ 'interests' }}</span> <div class="m-t">
<div class="m-b">{{user.profile.interest}}</div> <small translate>{{ 'last_activity_' }}</small>
<span class="font-bold" translate>{{ 'CAD_softwares_mastered' }}</span> <div class="text-lt font-bold" ng-if="user.last_sign_in_at">{{ '_on_' | translate }} {{user.last_sign_in_at | amDateFormat: 'LL'}}</div>
<div>{{user.profile.software_mastered}}</div> <small translate>{{ 'email_address' }}</small>
<div class="text-lt font-bold break-word">{{user.email}}</div>
</div> </div>
</div> </div>
<div class="col-lg-3 profile-top-badge"></div> <div class="col-lg-3 profile-top-badge">
</div>
</section> </section>
</div> </div>
@ -48,12 +50,12 @@
<div class="wrapper m-t-xl m-b"> <div class="wrapper m-t-xl m-b">
<div class="row m-b"> <div class="row m-b">
<div class="col-xs-5 text-right"> <div class="col-xs-5 text-right">
<small translate>{{ 'last_activity_' }}</small> <span class="font-bold" translate>{{ 'interests' }}</span>
<div class="text-lt font-bold" ng-if="user.last_sign_in_at">{{ '_on_' | translate }} {{user.last_sign_in_at | amDateFormat: 'LL'}}</div> <div class="m-b m-t-sm">{{user.profile.interest}}</div>
</div> </div>
<div class="col-xs-offset-1 col-xs-6"> <div class="col-xs-offset-1 col-xs-6">
<small translate>{{ 'email_address' }}</small> <span class="font-bold" translate>{{ 'CAD_softwares_mastered' }}</span>
<div class="text-lt font-bold break-word">{{user.email}}</div> <div class="m-t-sm">{{user.profile.software_mastered}}</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -290,3 +290,4 @@ en:
no_projects: "No projects" no_projects: "No projects"
author: "Author" author: "Author"
collaborator: "Collaborator" collaborator: "Collaborator"
private_profile: "Private profile"

View File

@ -290,3 +290,4 @@ fr:
no_projects: "Aucun projet" no_projects: "Aucun projet"
author: "Auteur" author: "Auteur"
collaborator: "Collaborateur" collaborator: "Collaborateur"
private_profile: "Profil privé"