Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

1.6 KB
Raw Blame
<div
  class='op-issue--title'
  [textContent]="gitlabIssue.title"
></div>

<span class='op-issue--state' [ngClass]="'op-issue--state_' + state">

  @if (state === 'open') {
    <svg op-gitlab-issue-open-icon size="small"></svg>
  }
  @if (state !== 'open') {
    <svg op-gitlab-issue-closed-icon size="small"></svg>
  }

  {{state}} |
  <a
    [ngClass]="'op-issue--link_' + state"
    [href]="gitlabIssue.htmlUrl"
    target="blank"
    [textContent]="gitlabIssue.repository + '#' + gitlabIssue.number"
  ></a>
</span>

@if (gitlabIssue.labels && gitlabIssue.labels.length > 0) {
  <button (click)="toggleLabels(gitlabIssue.number)" class='op-issue--label_icon' title="Show/Hide labels">
    <svg class="op-issue--label_icon_style" op-gitlab-labels-icon size="small"></svg>
  </button>
}

<div class="op-issue--info_created">
  {{ text.label_created_by }}
  <span class='op-issue--user'>
    @if (gitlabIssue.gitlabUser) {
      <a
        [href]="'mailto:' + gitlabIssue.gitlabUser.email"
        class='op-issue--username'
        [textContent]="gitlabIssue.gitlabUser.login"
      ></a>
      }.
    </span>
    <span class='op-issue--date'>
      {{ text.label_last_updated_on }}
      <op-date-time [dateTimeValue]="gitlabIssue.gitlabUpdatedAt" />
    </span>.
  </div>

  <div
    class="op-issue--labels"
    [ngClass]="'op-issue--labels-' + gitlabIssue.number" style="display: none;">
    @for (label of gitlabIssue.labels; track label) {
      <span>
        <span class='op-issue--label' [ngStyle]="{'background-color': label.color}" >
          {{label.title}}
        </span>
      </span>
    }
  </div>