<div class='card'>
- <div class='card-left text-center' ng-if='!noSynopsis'>
+ <div class='card-left text-center'>
<entity-tag mentity='mentity' />
</div>
<div class='card-body'>
- <h5 class='card-heading' ng-if='!noSynopsis'>
- <entity-signature mentity='mentity'/>
+ <h5 class='card-heading'>
+ <entity-signature mentity='mentity' />
</h5>
<span class='synopsis' ng-bind-html='mentity.mdoc.html_synopsis' />
</div>
return {
restrict: 'E',
scope: {
- mentity: '=',
- defaultTab: '@',
- noSynopsis: '='
+ mentity: '='
},
replace: true,
- templateUrl: '/directives/entity/card.html',
- link: function ($scope, element, attrs) {
- $scope.currentTab = $scope.defaultTab ? $scope.defaultTab : 'signature';
-
- $scope.loadEntityStars = function() {
- Feedback.loadEntityStars($scope.mentity.full_name,
- function(data) {
- $scope.ratings = data;
- }, function(message, status) {
- $scope.error = {message: message, status: status};
- });
- };
- }
+ templateUrl: '/directives/entity/card.html'
};
}])
display: table;
width: 100%;
background: #fff;
- border: 1px solid #ccc;
+ border: 1px solid #eee;
margin-top: 10px;
- box-shadow: 0 -1px 0 #e5e5e5,0 0 2px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.24);
+ box-shadow: -1px -1px 3px rgba(0,0,0,.06), 1px 1px 3px rgba(0,0,0,.12);
}
.card-body, .card-left, .card-right {
}
.card-list > .card:first-child {
- border-top: 1px solid #ccc;
+ border-top: 1px solid #ddd;
}
.card-list > .card {