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-version/display-version.directive.html

12 lines
588 B

<div class="version-wrapper">
<span ng-if="!displayPaneController.getReadValue()">-</span>
<span ng-if="displayPaneController.getReadValue() && customEditorController.isVersionLinkViewable()">
<a href="{{customEditorController.pathHelper.staticVersionPath(displayPaneController.getReadValue().props.id)}}">
{{displayPaneController.getReadValue().props.name}}
</a>
</span>
<span ng-if="displayPaneController.getReadValue() && !customEditorController.isVersionLinkViewable()">
{{displayPaneController.getReadValue().props.name}}
</span>
</div>