mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-27 21:54:27 +01:00
19 lines
515 B
Plaintext
19 lines
515 B
Plaintext
|
Application.Directives.directive 'socialLink', [ ->
|
||
|
{
|
||
|
restrict: 'E'
|
||
|
scope:
|
||
|
network: '@?'
|
||
|
user: '='
|
||
|
templateUrl: '<%= asset_path "shared/_social_link.html" %>'
|
||
|
link: (scope, element, attributes) ->
|
||
|
if scope.network == 'dailymotion'
|
||
|
scope.image = "<%= asset_path('social/dailymotion.png') %>"
|
||
|
scope.altText = 'd'
|
||
|
else if scope.network == 'echosciences'
|
||
|
scope.image = "<%= asset_path('social/echosciences.png') %>"
|
||
|
scope.altText = 'E)'
|
||
|
}
|
||
|
]
|
||
|
|
||
|
|