OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/frontend/app/components/inplace-edit/directives/field-display/display-user/display-user.directive.html

14 lines
1.1 KiB

<span class="user-avatar--container">
<img class="user-avatar--avatar"
ng-if="customEditorController.getUserName() && customEditorController.getUser().props.avatar"
ng-src="{{customEditorController.getUser().props.avatar}}" alt="Avatar" title="{{customEditorController.getUserName()}}" />
<span class="user-avatar--user-with-role">
<span class="user-avatar--user" ng-if="customEditorController.getUserName()">
<a ng-if="customEditorController.getUser().props.subtype !== 'Group'" ng-href="{{ customEditorController.userPath(customEditorController.getUser().props.id) }}" ng-bind="customEditorController.getUser().props.name"
class="user-field-user-link"/>
<span ng-if="customEditorController.getUser().props.subtype == 'Group'" ng-bind="customEditorController.getUser().props.name" class="user-field-user-link"/>
</span>
<span class="user-avatar--user" ng-if="!customEditorController.getUserName()"> - </span>
<span class="user-avatar--role" ng-if="customEditorController.getUser().props.role" ng-bind="customEditorController.getUser().props.role"/>
</span>
</span>