1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

move footer to branding

This commit is contained in:
irismarie 2021-03-16 11:55:30 +01:00
parent 604e603384
commit 9733dcbb51
5 changed files with 15 additions and 35 deletions

View file

@ -26,7 +26,6 @@ import NotificationsDataManager from './common/data-managers/notifications-data-
import Home from './common/home';
import Header from './common/header';
import Footer from './common/footer';
import Menu from './common/menu';
import InfrastructureComponents from './ic/ics';
@ -106,7 +105,7 @@ class App extends React.Component {
</div>
</div>
<Footer />
{branding.getFooter()}
</div>
</DndProvider>
}

View file

@ -15,7 +15,7 @@
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import { villasweb_home } from './villasweb/villasweb-home';
import { villasweb_footer, villasweb_home } from './villasweb/villasweb-functions';
import villasweb_values from './villasweb/villasweb-values';
import { slew_home } from './slew/slew-home';
@ -82,6 +82,10 @@ class Branding {
return homepage;
}
getFooter() {
return villasweb_footer();
}
getWelcome() {
var welcome = '';
switch (this.brand) {

View file

@ -65,4 +65,12 @@ export function villasweb_home(title, username, userid, role) {
<p><a href="http://www.jara.org/en/research/energy">JARA-ENERGY:</a> Jülich-Aachen Research Alliance (JARA) is an initiative of RWTH Aachen University and Forschungszentrum Jülich.</p>
</ul>
</div>)
}
export function villasweb_footer() {
return (
<footer className="app-footer">
Copyright &copy; {new Date().getFullYear()} - <a href="https://www.acs.eonerc.rwth-aachen.de">Institute for Automation of Complex Power Systems</a> - <a href="https://www.rwth-aachen.de">RWTH Aachen University</a>
</footer>
);
}

View file

@ -1,30 +0,0 @@
/**
* This file is part of VILLASweb.
*
* VILLASweb is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VILLASweb is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VILLASweb. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<footer className="app-footer">
Copyright &copy; {new Date().getFullYear()} - <a href="https://www.acs.eonerc.rwth-aachen.de">Institute for Automation of Complex Power Systems</a> - <a href="https://www.rwth-aachen.de">RWTH Aachen University</a>
</footer>
);
}
}
export default Footer;

View file

@ -23,7 +23,6 @@ import { Redirect } from 'react-router-dom';
import LoginForm from './login-form';
import Header from '../common/header';
import Footer from '../common/footer';
import NotificationsDataManager from '../common/data-managers/notifications-data-manager';
import LoginStore from './login-store'
import AppDispatcher from '../common/app-dispatcher';
@ -88,7 +87,7 @@ class Login extends Component {
</div>
</div>
<Footer />
{branding.getFooter()}
</div>
);
}