diff --git a/index.html b/index.html --- a/index.html +++ b/index.html @@ -453,6 +453,17 @@ this.loading = false; }, + + revStatus(repoRev) { + if ( + !repoRev || + !(this.status && this.status.rev) + ) return null; + + if (this.status.rev < repoRev) return 'behind'; + if (this.status.rev === repoRev) return 'current'; + if (this.status.rev > repoRev) return 'ahead'; + } })); Alpine.data('pdsHistory', (did, currentPds) => ({ @@ -902,13 +913,22 @@ > - - - + + + current + behind + ahead