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

fix social links position & website icon

This commit is contained in:
Sylvain 2016-05-18 09:11:08 +02:00
parent 196f1be6a3
commit d005712662
3 changed files with 7 additions and 2 deletions

View File

@ -12,6 +12,11 @@ Application.Directives.directive 'socialLink', [ ->
else if scope.network == 'echosciences'
scope.image = "<%= asset_path('social/echosciences.png') %>"
scope.altText = 'E)'
else
if scope.network == 'website'
scope.faClass = 'fa-globe'
else
scope.faClass = 'fa-'+scope.network.replace('_', '-')
}
]

View File

@ -532,7 +532,7 @@ body.container{
}
.social-links {
max-width: 133px;
width: 133px;
display: inline-block;
text-align: left;

View File

@ -1,4 +1,4 @@
<a ng-show="user.profile[network]" ng-href="{{user.profile[network]}}" target="_blank">
<img ng-src="{{image}}" alt="{{altText}}" class="fa-img" ng-show="image"/>
<i class="fa fa-{{network.replace('_', '-')}}" ng-hide="image"></i>
<i class="fa {{faClass}}" ng-hide="image"></i>
</a>