Polish admin dashboard

This commit is contained in:
Toby Zerner 2015-08-27 10:50:15 +09:30
parent 559110a83f
commit b0db7bf751
4 changed files with 19 additions and 5 deletions

View File

@ -6,9 +6,9 @@ export default class DashboardPage extends Component {
<div className="DashboardPage">
<div className="container">
<h2>Welcome to Flarum Beta</h2>
<p>This is beta software; you shouldn't use it in production.</p>
<p>You're running version X</p>
<p>Get help on X. Report bugs here. Feedback here. Contribute here.</p>
<p>Thanks for trying out Flarum! You are running version <strong>{app.forum.attribute('version')}</strong>.</p>
<p>This is beta software, and should not be used in production. If you run into any trouble, please read the <a href="http://flarum.org/docs/troubleshooting" target="_blank">Troubleshooting docs</a>. You can get further help on the <a href="http://discuss.flarum.org" target="_blank">support forum</a> and report bugs on <a href="https://github.com/flarum/core/issues" target="_blank">GitHub</a>.</p>
<p>If you'd like to contribute, check out the <a href="http://flarum.org/docs/contributing" target="_blank">Contributing page</a>.</p>
</div>
</div>
);

View File

@ -1,4 +1,10 @@
.DashboardPage {
background: @control-bg;
color: @control-color;
min-height: 100vh;
font-size: 16px;
line-height: 1.7;
@media @desktop-up {
.container {
max-width: 600px;
@ -6,4 +12,10 @@
margin: 0;
}
}
h2 {
font-size: 30px;
font-weight: 300;
margin-top: 0;
}
}

View File

@ -11,6 +11,7 @@
namespace Flarum\Api\Serializers;
use Flarum\Core;
use Flarum\Core\Application;
class ForumSerializer extends Serializer
{
@ -49,6 +50,7 @@ class ForumSerializer extends Serializer
if ($this->actor->isAdmin()) {
$attributes['adminUrl'] = Core::url('admin');
$attributes['version'] = Application::VERSION;
}
return $attributes;

View File

@ -23,11 +23,11 @@ use Illuminate\Contracts\Foundation\Application as ApplicationContract;
class Application extends Container implements ApplicationContract
{
/**
* The Laravel framework version.
* The Flarum version.
*
* @var string
*/
const VERSION = '5.1.9 (LTS)';
const VERSION = '0.1.0-beta';
/**
* The base path for the Laravel installation.