Show community name in admin panel title.

This commit is contained in:
baldo 2016-07-29 13:27:34 +02:00
parent af2362c768
commit 28a1db7c83
2 changed files with 8 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<!doctype html>
<html lang="en">
<html lang="en" ng-app="ffffngAdmin">
<head>
<title>Knotenverwaltung - Admin-Panel</title>
<link rel="stylesheet" href="css/ng-admin.min.css">
@ -64,7 +64,7 @@
}
</style>
</head>
<body ng-app="ffffngAdmin">
<body>
<div ui-view></div>
<script src="js/moment-with-locales.min.js"></script>

View file

@ -35,13 +35,17 @@ angular.module('ffffngAdmin').config(function(NgAdminConfigurationProvider, Rest
}
var nga = NgAdminConfigurationProvider;
var admin = nga.application('Knotenverwaltung - Admin-Panel');
var title = 'Knotenverwaltung - ' + config.community.name + ' - Admin-Panel';
var admin = nga.application(title);
document.title = title;
admin
.header(
'<div class="navbar-header">' +
'<a class="navbar-brand" href="#" ng-click="appController.displayHome()">' +
'Knotenverwaltung - Admin-Panel <small style="font-size: 0.7em;">(<fa-version></fa-version>)</small>' +
title + ' ' +
'<small style="font-size: 0.7em;">(<fa-version></fa-version>)</small>' +
'</a>' +
'</div>' +
'<p class="navbar-text navbar-right">' +