Skip to content

Instantly share code, notes, and snippets.

@dmsimard
Created May 21, 2019 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmsimard/aec125ebc575593b08930a939a440b54 to your computer and use it in GitHub Desktop.
Save dmsimard/aec125ebc575593b08930a939a440b54 to your computer and use it in GitHub Desktop.
diff --git a/src/playbooks/PlaybookSummary.js b/src/playbooks/PlaybookSummary.js
index 33a69a9..b750550 100644
--- a/src/playbooks/PlaybookSummary.js
+++ b/src/playbooks/PlaybookSummary.js
@@ -12,6 +12,8 @@ import {
global_warning_color_100,
global_Color_light_100
} from "@patternfly/react-tokens";
+import { Button } from '@patternfly/react-core';
+
const StatusIcon = ({ status }) => {
switch (status) {
@@ -148,6 +150,11 @@ export default class Playbook extends Component {
</h1>
</StatusAndName>
<PlaybookInfos>
+ {playbook.labels.map(label =>
+ <Button component="a" href="/playbooks/?label={label.name}" target="_blank" variant="secondary">
+ {label.name}
+ </Button>
+ )}
<PlaybookInfo>
<b>{playbook.items.plays}</b> Plays
</PlaybookInfo>
@@ -175,6 +182,7 @@ export default class Playbook extends Component {
</Duration>
</PlaybookContent>
</div>
+
</div>
</PlaybookWrapper>
);
--
2.21.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment