mirror of https://github.com/calzoneman/sync.git
Show page title in channel list
This commit is contained in:
parent
3af35cb268
commit
d9ed665540
1
api.js
1
api.js
|
@ -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 = [];
|
||||
|
|
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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);
|
||||
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue