Obeyed Till one last time.

pull/1613/head
Richard 10 years ago
parent b3753c6272
commit e413d695dd
  1. 3
      app/assets/javascripts/angular/work_packages/tabs/attachment-user-cell-directive.js
  2. 2
      app/assets/javascripts/angular/work_packages/tabs/attachments-table-directive.js
  3. 2
      public/templates/work_packages/tabs/_attachment_user_cell.html

@ -36,12 +36,11 @@ angular.module('openproject.workPackages.directives')
attachment: '='
},
link: function(scope, element, attributes) {
scope.userPath = PathHelper.staticUserPath;
scope.attachment.links.author.fetch()
.then(function(author){
scope.authorName = author.props.name;
scope.authorId = author.props.id;
scope.userPath = PathHelper.staticUserPath(author.props.id);
});
}
};

@ -34,8 +34,6 @@ angular.module('openproject.workPackages.directives')
templateUrl: '/templates/work_packages/tabs/_attachments_table.html',
scope: {
attachments: '='
},
link: function(scope, element, attributes) {
}
};
}]);

@ -1 +1 @@
<a ng-href="{{ userPath(authorId) }}" ng-bind="authorName"></a>
<a ng-href="{{ userPath }}" ng-bind="authorName"></a>

Loading…
Cancel
Save