Skip to content

Commit

Permalink
Merge pull request #1586 from opf/fix/activities-missing-user-names
Browse files Browse the repository at this point in the history
brought user activity template in line with api.
  • Loading branch information
myabc committed Jul 10, 2014
2 parents c9767d6 + 88b7a78 commit 30aa1f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ angular.module('openproject.workPackages.tabs')
scope.userPath = PathHelper.staticUserPath;

scope.activity.links.user.fetch().then(function(user) {
scope.userId = user.props.id;
scope.userName = user.props.firstName + ' ' + user.props.lastName;
scope.userAvatar = user.props.avatar;
});
}
Expand Down
2 changes: 1 addition & 1 deletion public/templates/work_packages/tabs/_user_activity.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="comments-number"><a ng-href="#{{ currentAnchor }}" ng-bind="'#' + activityNo"></a>
</div>
<img class="avatar" ng-src="{{ userAvatar }}" />
<span class="user"><a ng-href="{{ userPath(activity.props.userId) }}" name="{{ currentAnchor }}" ng-bind="activity.props.userName"></a></span>
<span class="user"><a ng-href="{{ userPath(userId) }}" name="{{ currentAnchor }}" ng-bind="userName"></a></span>
<span class="date">commented on <span ng-bind="activity.props.createdAt | date:'short'"/></span>
<span class="comment">
<span class="message"
Expand Down

0 comments on commit 30aa1f4

Please sign in to comment.