Consolidate titles
This commit is contained in:
parent
42f03a7ff0
commit
23773bac0d
|
@ -9,7 +9,7 @@
|
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<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-responsive.css">
|
||||
|
@ -95,7 +95,7 @@
|
|||
<span class="icon-bar"></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">
|
||||
<ul class="nav">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
angular.module('webui.services.utils', [])
|
||||
.factory('$utils', ['$filter', function(filter) {
|
||||
angular.module('webui.services.utils', ['webui.services.constants'])
|
||||
.factory('$utils', ['$filter', "$name", function(filter, $name) {
|
||||
var rnd16 = (function() {
|
||||
"use strict";
|
||||
var rndBuffer = new Uint8Array(16);
|
||||
|
@ -119,12 +119,11 @@ angular.module('webui.services.utils', [])
|
|||
// get info title from global statistics
|
||||
getTitle: function(stats) {
|
||||
var title =
|
||||
'('
|
||||
+ ' active:' + stats.numActive
|
||||
+ ' waiting:' + stats.numWaiting
|
||||
+ ' stopped:' + stats.numStopped
|
||||
+ ') '
|
||||
+ 'aria2 Web Client';
|
||||
'active: ' + stats.numActive
|
||||
+ ' - waiting: ' + stats.numWaiting
|
||||
+ ' - stopped: ' + stats.numStopped
|
||||
+ ' — '
|
||||
+ $name;
|
||||
|
||||
return title;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user