mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Merge pull request #28 from tituspijean/update-badge
Update badge and summary URLs
This commit is contained in:
commit
8e63987832
2 changed files with 3 additions and 1 deletions
2
run.py
2
run.py
|
@ -945,6 +945,7 @@ async def html_job(request, job_id):
|
|||
job_url = app.config.BASE_URL + app.url_for("html_job", job_id=job.id)
|
||||
badge_url = app.config.BASE_URL + app.url_for("api_badge_job", job_id=job.id)
|
||||
shield_badge_url = f"https://img.shields.io/endpoint?url={badge_url}"
|
||||
summary_url = app.config.BASE_URL + "/summary/" + str(job.id) + ".png"
|
||||
|
||||
return {
|
||||
"job": job,
|
||||
|
@ -952,6 +953,7 @@ async def html_job(request, job_id):
|
|||
'job_url': job_url,
|
||||
'badge_url': badge_url,
|
||||
'shield_badge_url': shield_badge_url,
|
||||
'summary_url': summary_url,
|
||||
'relative_path_to_root': '../',
|
||||
'path': request.path
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@
|
|||
// Clipboard API not available
|
||||
return
|
||||
}
|
||||
const text = "[](https://ci.pijean.ovh/ci/job/<{ job.id }>)"
|
||||
const text = "[](<{ job_url }>)\n[](<{ job_url }>)"
|
||||
try {
|
||||
await navigator.clipboard.writeText(text)
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Reference in a new issue