yocto_console_vew: Add link to wiki log

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-09-26 15:00:26 +01:00
parent 7ea2415383
commit 394e6929d8
3 changed files with 9 additions and 1 deletions

View File

@ -316,6 +316,12 @@ class Console extends Controller
change.caption = @branchmapping[build.buildid]
change.revlink = "http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=" + rev
change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/?filter=" + rev + "&type=commit&limit=150"
bid = build.buildid
if buildset? and buildset.parent_buildid?
bid = buildset.parent_buildid
if (change.bid? and bid > change.bid) or !change.bid?
change.bid = bid
change.loglink = "https://wiki.yoctoproject.org/wiki/BuildLog#" + bid
if build.properties?.reason?
change.reason = build.properties.reason[0]
else

View File

@ -4,6 +4,8 @@ div.yoctochangedetails(style="width:100%;")
| {{ change.caption }} &nbsp;
a(ng-if="change.errorlink", ng-href="{{change.errorlink}}")
| {{ "Errors" }} &nbsp;
a(ng-if="change.loglink", ng-href="{{change.loglink}}")
| {{ "WikiLog" }} &nbsp;
span(ng-if="!change.revlink", uib-tooltip="{{change.comments}}")
| {{ change.caption }} &nbsp;
span(ng-if="!compact" uib-tooltip="{{change.when_timestamp | dateformat:'LLL'}}")

File diff suppressed because one or more lines are too long