Follow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link in the...
[lhc/web/wiklou.git] / resources / mediawiki / mediawiki.debug.js
index 2afcbc6..e631c76 100644 (file)
 
                        var gitInfo = '';
                        if ( this.data.gitRevision != false ) {
-                               gitInfo = ' (' + this.data.gitRevision.substring( 0, 7 ) + ')';
+                               gitInfo = '(' + this.data.gitRevision.substring( 0, 7 ) + ')';
+                               if ( this.data.gitViewUrl != false ) {
+                                       gitInfo = $( '<a></a>' ).attr( 'href', this.data.gitViewUrl ).text( gitInfo );
+                               }
                        }
 
                        bitDiv( 'mwversion' )
                                .append( $( '<a href="//www.mediawiki.org/"></a>' ).text( 'MediaWiki' ) )
-                               .append( ': ' + this.data.mwVersion + gitInfo );
+                               .append( ': ' + this.data.mwVersion + ' ' )
+                               .append( gitInfo );
 
                        if ( this.data.gitBranch != false ) {
                                bitDiv( 'gitbranch' ).text( 'Git branch: ' + this.data.gitBranch );