handle pagetitle, use better background color
This commit is contained in:
parent
2100fabf24
commit
02d0c25c12
3 changed files with 9 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
body {
|
body {
|
||||||
background-color: black;
|
|
||||||
color: white;
|
color: white;
|
||||||
|
background-color: #222;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
}
|
}
|
||||||
.bufferlines {
|
.bufferlines {
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html ng-app="weechat">
|
<html ng-app="weechat" ng-cloak>
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<title ng-bind-template="WeeChat {{ pageTitle}}"></title>
|
||||||
|
|
||||||
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" media="screen">
|
||||||
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" rel="stylesheet" media="screen">
|
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js" rel="stylesheet" media="screen">
|
||||||
<link rel="shortcut icon" type="image/png" href="img/favicon.png" >
|
<link rel="shortcut icon" type="image/png" href="img/favicon.png" >
|
||||||
|
@ -54,7 +59,7 @@
|
||||||
<div ng-show="connected">
|
<div ng-show="connected">
|
||||||
|
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<li class="label" ng-class="{'label-success': content.notification }" ng-repeat="(key, content) in buffers | toArray | orderBy:'content.number':true">
|
<li class="label" ng-class="{'active': content.notification }" ng-repeat="(key, content) in buffers | toArray | orderBy:'content.number':true">
|
||||||
<a ng-click="setActiveBuffer(content.id)" title="{{ content.full_name }}">{{ content.short_name }}</a>
|
<a ng-click="setActiveBuffer(content.id)" title="{{ content.full_name }}">{{ content.short_name }}</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -534,6 +534,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', 'connection
|
||||||
$scope.setActiveBuffer = function(key) {
|
$scope.setActiveBuffer = function(key) {
|
||||||
$rootScope.buffers[key]['notification'] = false;
|
$rootScope.buffers[key]['notification'] = false;
|
||||||
$rootScope.activeBuffer = $rootScope.buffers[key];
|
$rootScope.activeBuffer = $rootScope.buffers[key];
|
||||||
|
$rootScope.pageTitle = $rootScope.activeBuffer['short_name'] + ' | ' + $rootScope.activeBuffer['title'];
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.sendMessage = function() {
|
$scope.sendMessage = function() {
|
||||||
|
|
Loading…
Reference in a new issue