This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 39199e84 authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Make "Git" button open repo home in new tab

parent 3cdaec14
2 merge requests!17Initial Merge to Prepare Release 1.0.0,!2Add gitlab metadata
......@@ -97,7 +97,8 @@
jhiTranslate="exercise.details.allExercises">
</button>
<button type="button" class="btn btn-outline-secondary" style="display: block;">
<button type="button" class="btn btn-outline-secondary" style="display: block;"
(click)="openLink(exercise.gitlabURL)">
Git
</button>
</div>
......@@ -339,4 +340,4 @@
</div>
</div>
</div>
</div>
\ No newline at end of file
</div>
......@@ -38,4 +38,8 @@ export class ExerciseDetailsComponent implements OnInit {
});
return result;
}
openLink(link: string): void {
window.open(link);
}
}
......@@ -82,6 +82,8 @@ export class MockSearchComponent implements OnInit {
structure: searchResult.metadata.structure,
version: searchResult.metadata.version,
metadataVersion: searchResult.metadata.metadataVersion,
gitlabURL: searchResult.project.url,
};
}
......
......@@ -31,6 +31,8 @@ export interface Exercise {
version: string;
metadataVersion: string;
gitlabURL: string;
// not in metadata
rating: number;
lastUpdate: string;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment