diff --git a/src/containers/home.js b/src/containers/home.js index 22e6782..d04525c 100644 --- a/src/containers/home.js +++ b/src/containers/home.js @@ -24,6 +24,7 @@ import { Container } from 'flux/utils'; // import AppDispatcher from '../app-dispatcher'; import VillasStore from '../stores/villas-store'; +import UserStore from '../stores/users-store'; class Home extends Component { static getStores() { @@ -32,13 +33,41 @@ class Home extends Component { static calculateState() { return { - villas: VillasStore.getState() + villas: VillasStore.getState(), + currentUser: UserStore.getState().currentUser + counts: { + users: UserStore.getState().users.length }; } render() { return (
Welcome {this.state.currentUser}! This is the VILLASweb frontend version [version] hosted by [admin].
+This instance is hosting {this.state.counts.projects} projects consisting of {this.state.counts.nodes} nodes, {this.state.counts.simulations} simulations and {this.state.counts.visualizations} visualisations.
+
There are currently {this.state.counts.users} users registered.
+VILLASweb is developed by the Institute for Automation of Complex Power Systems at the RWTH Aachen University.
+The development of VILLASframework projects have received funding from
+