<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one or more
  ~ contributor license agreements.  See the NOTICE file distributed with
  ~ this work for additional information regarding copyright ownership.
  ~ The ASF licenses this file to You under the Apache License, Version 2.0
  ~ (the "License"); you may not use this file except in compliance with
  ~ the License.  You may obtain a copy of the License at
  ~
  ~     http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<div class="about-dialog">
    <h2 mat-dialog-title>About</h2>
    <mat-dialog-content>
        <div class="flex flex-col justify-between gap-y-5">
            @if (about$ | async; as about) {
                <div class="flex justify-center">
                    <img ngSrc="assets/icons/nifi-logo-about.svg" priority width="300" height="128" alt="NiFi Logo" />
                </div>
                <div class="flex flex-col gap-y-1">
                    <div class="font-bold">{{ about.version }}</div>
                    @if (about.buildTimestamp) {
                        <div class="text-sm ml-2">{{ about.buildTimestamp }}</div>
                    }
                    @if (about.buildTag && about.buildTag !== 'HEAD') {
                        <div class="text-sm ml-2">Tagged {{ about.buildTag }}</div>
                    }
                    @if (about.buildRevision) {
                        <div class="text-sm ml-2">From {{ about.buildRevision }} on branch {{ about.buildBranch }}</div>
                    }
                </div>
                <div>
                    Apache NiFi is a framework to support highly scalable and flexible dataflows. It can be run on
                    laptops up through clusters of enterprise class servers. Instead of dictating a particular dataflow
                    or behavior it empowers you to design your own optimal dataflow tailored to your specific
                    environment.
                </div>
            }
        </div>
    </mat-dialog-content>
    <mat-dialog-actions align="end">
        <button mat-button mat-dialog-close>Close</button>
    </mat-dialog-actions>
</div>
