Clean up StarterKit view
And show the contents of `/etc/hostname` to make sure cockpit.js is loaded correctly.
This commit is contained in:
parent
ce7a2d3870
commit
8ff4b33bb5
2 changed files with 13 additions and 18 deletions
|
|
@ -1,39 +0,0 @@
|
|||
/*jshint esversion: 6 */
|
||||
/*
|
||||
* This file is part of Cockpit.
|
||||
*
|
||||
* Copyright (C) 2017 Red Hat, Inc.
|
||||
*
|
||||
* Cockpit is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation; either version 2.1 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Cockpit 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
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import React from 'react';
|
||||
|
||||
export class StarterKit extends React.Component {
|
||||
constructor() {
|
||||
super();
|
||||
// a good place to initialize this.state
|
||||
}
|
||||
|
||||
render() {
|
||||
let title = this.props.title?(<a href="#">{this.props.title}</a>):"Empty title";
|
||||
return (
|
||||
<div class="container-fluid">
|
||||
<h3>{title}</h3>
|
||||
<div>
|
||||
<span>Some content</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue