Show page title in channel list

This commit is contained in:
calzoneman 2013-05-12 11:46:19 -04:00
parent 3af35cb268
commit d9ed665540
5 changed files with 8 additions and 2 deletions

1
api.js
View File

@ -117,6 +117,7 @@ function handleChannelData(params, req, res) {
if(d.loaded) {
var chan = Server.channels[cname];
d.pagetitle = chan.opts.pagetitle;
d.media = chan.media ? chan.media.pack() : {};
d.usercount = chan.users.length;
d.users = [];

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery",
"name": "CyTube",
"description": "Online media synchronizer and chat",
"version": "1.6.4",
"version": "1.6.5",
"repository": {
"url": "http://github.com/calzoneman/sync"
},

View File

@ -9,7 +9,7 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
const VERSION = "1.6.4";
const VERSION = "1.6.5";
var fs = require("fs");
var Logger = require("./logger.js");

View File

@ -35,6 +35,7 @@
<thead>
<tr>
<th>Channel</th>
<th>Title</th>
<th>Connected</th>
<th>Playing</th>
</tr>
@ -135,6 +136,7 @@
$("<a/>").attr("href", host + "/r/" + d.name)
.text(d.name)
.appendTo(name);
$("<td/>").text(d.pagetitle).appendTo(tr);
$("<td/>").text(d.usercount || 0).appendTo(tr);
var title = $("<td/>").appendTo(tr);
if(d.media.id) {
@ -153,6 +155,7 @@
$("<td/>").text("Total").appendTo(tr);
$("<td/>").text(total).appendTo(tr);
$("<td/>").appendTo(tr);
$("<td/>").appendTo(tr);
});
}

View File

@ -52,6 +52,7 @@
<thead>
<tr>
<th>Channel</th>
<th>Title</th>
<th>Connected</th>
<th>Playing</th>
</tr>
@ -144,6 +145,7 @@
$("<a/>").attr("href", host + "/r/" + d.name)
.text(d.name)
.appendTo(name);
$("<td/>").text(d.pagetitle).appendTo(tr);
$("<td/>").text(d.usercount || 0).appendTo(tr);
var title = $("<td/>").appendTo(tr);
if(d.media.id) {