-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrated code lifecycle
: Simplify user interface for ssh keys (#9 …
…von 454) Co-authored-by: Kaan Çaylı <38523756+kaancayli@users.noreply.github.com>
- Loading branch information
1 parent
753f497
commit edf208e
Showing
19 changed files
with
463 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/webapp/app/shared/components/documentation-link/documentation-link.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@if (displayString() && documentationType()) { | ||
<a style="font-size: medium" class="text-primary ms-1 mb-1" href="{{ BASE_URL + DocumentationLinks[documentationType()!] }}"> | ||
<span [jhiTranslate]="displayString()!"></span> | ||
</a> | ||
} |
25 changes: 25 additions & 0 deletions
25
src/main/webapp/app/shared/components/documentation-link/documentation-link.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { Component, input } from '@angular/core'; | ||
import { TranslateDirective } from 'app/shared/language/translate.directive'; | ||
|
||
// The routes here are used to build the link to the documentation. | ||
// Therefore, it's important that they exactly match the url to the subpage of the documentation. | ||
// Additionally, the case names must match the keys in documentationLinks.json for the tooltip. | ||
const DocumentationLinks: { [key: string]: string } = { | ||
SshSetup: 'icl/ssh-intro', | ||
}; | ||
|
||
export type DocumentationType = keyof typeof DocumentationLinks; | ||
|
||
@Component({ | ||
selector: 'jhi-documentation-link', | ||
standalone: true, | ||
templateUrl: './documentation-link.component.html', | ||
imports: [TranslateDirective], | ||
}) | ||
export class DocumentationLinkComponent { | ||
readonly BASE_URL = 'https://docs.artemis.cit.tum.de/user/'; | ||
readonly DocumentationLinks = DocumentationLinks; | ||
|
||
documentationType = input<string>(); | ||
displayString = input<string>(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.