aboutsummaryrefslogtreecommitdiffstats
path: root/templates/devtest
diff options
context:
space:
mode:
Diffstat (limited to 'templates/devtest')
-rw-r--r--templates/devtest/commit-sign-badge.tmpl13
-rw-r--r--templates/devtest/repo-action-view.tmpl31
2 files changed, 18 insertions, 26 deletions
diff --git a/templates/devtest/commit-sign-badge.tmpl b/templates/devtest/commit-sign-badge.tmpl
new file mode 100644
index 0000000000..a6677c4495
--- /dev/null
+++ b/templates/devtest/commit-sign-badge.tmpl
@@ -0,0 +1,13 @@
+{{template "devtest/devtest-header"}}
+<div class="page-content devtest ui container">
+ <div>
+ <h1>Commit Sign Badges</h1>
+ {{range $commit := .MockCommits}}
+ <div class="flex-text-block tw-my-2">
+ {{template "repo/commit_sign_badge" dict "Commit" $commit "CommitBaseLink" "/devtest/commit" "CommitSignVerification" $commit.Verification}}
+ {{template "repo/commit_sign_badge" dict "CommitSignVerification" $commit.Verification}}
+ </div>
+ {{end}}
+ </div>
+</div>
+{{template "devtest/devtest-footer"}}
diff --git a/templates/devtest/repo-action-view.tmpl b/templates/devtest/repo-action-view.tmpl
index 1fa71c0e5f..9c6bdf13da 100644
--- a/templates/devtest/repo-action-view.tmpl
+++ b/templates/devtest/repo-action-view.tmpl
@@ -1,30 +1,9 @@
{{template "base/head" .}}
<div class="page-content">
- <div id="repo-action-view"
- data-run-index="1"
- data-job-index="2"
- data-actions-url="{{AppSubUrl}}/devtest/actions-mock"
- data-locale-approve="approve"
- data-locale-cancel="cancel"
- data-locale-rerun="re-run"
- data-locale-rerun-all="re-run all"
- data-locale-runs-scheduled="scheduled"
- data-locale-runs-commit="commit"
- data-locale-runs-pushed-by="pushed by"
- data-locale-status-unknown="unknown"
- data-locale-status-waiting="waiting"
- data-locale-status-running="running"
- data-locale-status-success="success"
- data-locale-status-failure="failure"
- data-locale-status-cancelled="cancelled"
- data-locale-status-skipped="skipped"
- data-locale-status-blocked="blocked"
- data-locale-artifacts-title="artifacts"
- data-locale-confirm-delete-artifact="confirm delete artifact"
- data-locale-show-timestamps="show timestamps"
- data-locale-show-log-seconds="show log seconds"
- data-locale-show-full-screen="show full screen"
- data-locale-download-logs="download logs"
- ></div>
+ {{template "repo/actions/view_component" (dict
+ "RunIndex" 1
+ "JobIndex" 2
+ "ActionsURL" (print AppSubUrl "/devtest/actions-mock")
+ )}}
</div>
{{template "base/footer" .}}