Fix user IPs table breaking if there are blank IPs.
Fix user_id showing on right of history table in info page. Add Donations button to readme.
This commit is contained in:
@@ -8,6 +8,10 @@ A python based web application for monitoring and logging activity on your Plex
|
|||||||
|
|
||||||
* plexPy forum thread: https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program
|
* plexPy forum thread: https://forums.plex.tv/discussion/169591/plexpy-another-plex-monitoring-program
|
||||||
|
|
||||||
|
If you'd like to buy me a beer, hit the donate button below.
|
||||||
|
|
||||||
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=G9HZK9BDJLKT6)
|
||||||
|
|
||||||
|
|
||||||
###Support
|
###Support
|
||||||
-----------
|
-----------
|
||||||
|
@@ -189,6 +189,7 @@ from plexpy import helpers
|
|||||||
<th class="never" align='left' id="user"></th>
|
<th class="never" align='left' id="user"></th>
|
||||||
<th class="never" align='left' id="media_type"></th>
|
<th class="never" align='left' id="media_type"></th>
|
||||||
<th class="never" align='left' id="video_decision"></th>
|
<th class="never" align='left' id="video_decision"></th>
|
||||||
|
<th class="never" align='left' id="user_id"></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@@ -35,6 +35,7 @@ user_ip_table_options = {
|
|||||||
"width": "15%",
|
"width": "15%",
|
||||||
"className": "modal-control no-wrap",
|
"className": "modal-control no-wrap",
|
||||||
"createdCell": function (td, cellData, rowData, row, col) {
|
"createdCell": function (td, cellData, rowData, row, col) {
|
||||||
|
if (cellData) {
|
||||||
if (isPrivateIP(cellData)) {
|
if (isPrivateIP(cellData)) {
|
||||||
if (cellData != '') {
|
if (cellData != '') {
|
||||||
$(td).html(cellData);
|
$(td).html(cellData);
|
||||||
@@ -44,6 +45,9 @@ user_ip_table_options = {
|
|||||||
} else {
|
} else {
|
||||||
$(td).html('<a href="#ip-info-modal" data-toggle="modal"><span data-toggle="ip-tooltip" data-placement="left" title="IP Address Info" id="ip-info"><i class="icon-map-marker icon-white"></i></span> ' + cellData +'</a>');
|
$(td).html('<a href="#ip-info-modal" data-toggle="modal"><span data-toggle="ip-tooltip" data-placement="left" title="IP Address Info" id="ip-info"><i class="icon-map-marker icon-white"></i></span> ' + cellData +'</a>');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$(td).html('n/a');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"width": "15%"
|
"width": "15%"
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user