New route to view user's trace through repository
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
084244449c
commit
61f4795511
@ -319,6 +319,12 @@ func declareAPIAuthRepositoriesRoutes(router *gin.RouterGroup) {
|
|||||||
|
|
||||||
TriggerTests(c, work, repo, u)
|
TriggerTests(c, work, repo, u)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
repositoriesRoutes.GET("/traces", func(c *gin.Context) {
|
||||||
|
repo := c.MustGet("repository").(*Repository)
|
||||||
|
|
||||||
|
c.Redirect(http.StatusFound, fmt.Sprintf("%s/%s", droneEndpoint, repo.TestsRef))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
type GitLabWebhook struct {
|
type GitLabWebhook struct {
|
||||||
|
@ -131,6 +131,14 @@
|
|||||||
>
|
>
|
||||||
<i class="bi bi-play"></i>
|
<i class="bi bi-play"></i>
|
||||||
</button>
|
</button>
|
||||||
|
<a
|
||||||
|
href="/api/users/{user.id}/works/{w.id}/repositories/{repo.id}/traces"
|
||||||
|
target="_blank"
|
||||||
|
class="btn btn-sm btn-outline-info mr-1"
|
||||||
|
title="Voir le détail de la notation"
|
||||||
|
>
|
||||||
|
<i class="bi bi-list-check"></i>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
Reference in New Issue
Block a user