Skip to content

Commit

Permalink
Adds console version to the admin page.
Browse files Browse the repository at this point in the history
Showing the version of the console in the admin page makes it easier to
debug issues with the console. Fixes #10
  • Loading branch information
neomorphic committed Sep 1, 2015
1 parent 9a89e75 commit b7c77b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/components/ServerStats.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ServerActions from '../actions/ServerActions';
import ServerStore from '../stores/ServerStore';
import AltContainer from 'alt/AltContainer';
import {Glyphicon} from 'react-bootstrap';
import pjson from '../../package.json';


class StatsDisplay extends React.Component {
Expand Down Expand Up @@ -89,6 +90,14 @@ class StatsDisplay extends React.Component {
</div>
</div>
</div>
<div className="col-md-3 col-sm-6">
<div className="panel panel-default">
<div className="panel-heading"><Glyphicon glyph="bookmark"/>Console Version</div>
<div className="panel-body">
<p>v{pjson.version}</p>
</div>
</div>
</div>
</div>
);
}
Expand Down

0 comments on commit b7c77b7

Please sign in to comment.