Consolidate titles

This commit is contained in:
Nils Maier 2014-05-17 15:46:11 +02:00
parent 42f03a7ff0
commit 23773bac0d
2 changed files with 9 additions and 10 deletions

View File

@ -9,7 +9,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>aria2 web client</title> <title ng-controller="NavCtrl">{{ name }}</title>
<link rel="stylesheet" href="css/bootstrap.css"> <link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-responsive.css"> <link rel="stylesheet" href="css/bootstrap-responsive.css">
@ -95,7 +95,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
</span> </span>
<a class="brand">{{ name }}</a> <a class="brand"><span class="icon-circle-arrow-down"></span> {{ name }}</a>
<div class="nav-collapse" collapse="collapsed"> <div class="nav-collapse" collapse="collapsed">
<ul class="nav"> <ul class="nav">

View File

@ -1,5 +1,5 @@
angular.module('webui.services.utils', []) angular.module('webui.services.utils', ['webui.services.constants'])
.factory('$utils', ['$filter', function(filter) { .factory('$utils', ['$filter', "$name", function(filter, $name) {
var rnd16 = (function() { var rnd16 = (function() {
"use strict"; "use strict";
var rndBuffer = new Uint8Array(16); var rndBuffer = new Uint8Array(16);
@ -119,12 +119,11 @@ angular.module('webui.services.utils', [])
// get info title from global statistics // get info title from global statistics
getTitle: function(stats) { getTitle: function(stats) {
var title = var title =
'(' 'active: ' + stats.numActive
+ ' active:' + stats.numActive + ' - waiting: ' + stats.numWaiting
+ ' waiting:' + stats.numWaiting + ' - stopped: ' + stats.numStopped
+ ' stopped:' + stats.numStopped + ' — '
+ ') ' + $name;
+ 'aria2 Web Client';
return title; return title;
}, },