-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display commit status on landing page of repo (#1784)
* Display commit status on landing page of repo * improve last status of commits and add link to ci * fix last commit status since the order of ids are desc
- Loading branch information
Showing
7 changed files
with
60 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{if eq .State "pending"}} | ||
<a href="{{.TargetURL}}" target=_blank><i class="commit-status circle icon yellow"></i></a> | ||
{{end}} | ||
{{if eq .State "success"}} | ||
<a href="{{.TargetURL}}" target=_blank><i class="commit-status check icon green"></i></a> | ||
{{end}} | ||
{{if eq .State "error"}} | ||
<a href="{{.TargetURL}}" target=_blank><i class="commit-status warning icon red"></i></a> | ||
{{end}} | ||
{{if eq .State "failure"}} | ||
<a href="{{.TargetURL}}" target=_blank><i class="commit-status remove icon red"></i></a> | ||
{{end}} | ||
{{if eq .State "warning"}} | ||
<a href="{{.TargetURL}}" target=_blank><i class="commit-status warning sign icon yellow"></i></a> | ||
{{end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters