From 09ed637ee54dccea1a0288ffe2004f986b455dc9 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 7 Aug 2023 22:23:47 +0200 Subject: [PATCH] Add header to pipeline log and always show buttons (#2140) Fixes: https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1649213999 (4.) ![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/8544c683-b856-4938-bb8c-7cd9db0c2de9) ![image](https://github.com/woodpecker-ci/woodpecker/assets/3391958/53f7ec27-a0fd-4803-8bb4-e89e9ced3601) That both buttons are shown in the screenshot is only for demonstration. --- web/src/assets/locales/en.json | 1 + .../components/repo/pipeline/PipelineLog.vue | 39 +++++++++++-------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/web/src/assets/locales/en.json b/web/src/assets/locales/en.json index bbb791cd9..1c3df7631 100644 --- a/web/src/assets/locales/en.json +++ b/web/src/assets/locales/en.json @@ -241,6 +241,7 @@ "exit_code": "Exit Code {exitCode}", "loading": "Loading…", "pipeline": "Pipeline #{pipelineId}", + "log_title": "Step Logs", "log_download_error": "There was an error while downloading the log file", "actions": { "cancel": "Cancel", diff --git a/web/src/components/repo/pipeline/PipelineLog.vue b/web/src/components/repo/pipeline/PipelineLog.vue index 55d36fb90..23ae5c043 100644 --- a/web/src/components/repo/pipeline/PipelineLog.vue +++ b/web/src/components/repo/pipeline/PipelineLog.vue @@ -13,22 +13,27 @@ @mouseover="showActions = true" @mouseleave="showActions = false" > -