mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Move home links definition into js.
This commit is contained in:
parent
74ad4f0556
commit
5b9df09541
2 changed files with 14 additions and 18 deletions
11
js/app.js
11
js/app.js
|
@ -234,7 +234,16 @@ app = Sammy('#main', function (sam) {
|
||||||
// Show development note
|
// Show development note
|
||||||
c.flash('info', '<b>You are using a development version.</b><br />' +
|
c.flash('info', '<b>You are using a development version.</b><br />' +
|
||||||
'Please note that you can use the <a href="https://doc.yunohost.org/#/moulinette" target="_blank">moulinette</a> if you want to access to more YunoHost\'s features.');
|
'Please note that you can use the <a href="https://doc.yunohost.org/#/moulinette" target="_blank">moulinette</a> if you want to access to more YunoHost\'s features.');
|
||||||
c.view('home');
|
|
||||||
|
// Available sections
|
||||||
|
data = {links: [
|
||||||
|
{name: "Users", path: '#/users'},
|
||||||
|
{name: "Domains", path: '#/domains'},
|
||||||
|
{name: "Applications", path: '#/apps'},
|
||||||
|
{name: "Services", path: '#/services'},
|
||||||
|
]};
|
||||||
|
|
||||||
|
c.view('home', data);
|
||||||
});
|
});
|
||||||
|
|
||||||
sam.get('#/login', function (c) {
|
sam.get('#/login', function (c) {
|
||||||
|
|
|
@ -5,25 +5,12 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="list-group">
|
<div class="list-group">
|
||||||
<a href="#/users" class="list-group-item slide">
|
{{#links}}
|
||||||
<h4 class="pull-left list-group-item-heading">Users</h4>
|
<a href="{{path}}" class="list-group-item slide">
|
||||||
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
|
<h4 class="pull-left list-group-item-heading">{{name}}</h4>
|
||||||
<div class="clearfix"></div>
|
|
||||||
</a>
|
|
||||||
<a href="#/domains" class="list-group-item slide">
|
|
||||||
<h4 class="pull-left list-group-item-heading">Domains</h4>
|
|
||||||
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</a>
|
|
||||||
<a href="#/apps" class="list-group-item slide">
|
|
||||||
<h4 class="pull-left list-group-item-heading">Applications</h4>
|
|
||||||
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</a>
|
|
||||||
<a href="#/services" class="list-group-item slide">
|
|
||||||
<h4 class="pull-left list-group-item-heading">Services</h4>
|
|
||||||
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
|
<span class="glyphicon glyphicon-chevron-right pull-right"></span>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
</a>
|
</a>
|
||||||
|
{{/links}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue