diff --git a/onionr/onionrpeers/peercleanup.py b/onionr/onionrpeers/peercleanup.py index 2624ac86..4446aa3c 100644 --- a/onionr/onionrpeers/peercleanup.py +++ b/onionr/onionrpeers/peercleanup.py @@ -19,6 +19,7 @@ ''' import sqlite3 import logger +from onionrutils import epoch from . import scoresortedpeerlist, peerprofiles def peer_cleanup(core_inst): '''Removes peers who have been offline too long or score too low''' diff --git a/onionr/static-data/www/board/index.html b/onionr/static-data/www/board/index.html index 69483429..8b17dc53 100755 --- a/onionr/static-data/www/board/index.html +++ b/onionr/static-data/www/board/index.html @@ -34,7 +34,6 @@ Mail Friends Circles - Clandestine diff --git a/onionr/static-data/www/friends/friends.js b/onionr/static-data/www/friends/friends.js index 99973b22..98e52981 100755 --- a/onionr/static-data/www/friends/friends.js +++ b/onionr/static-data/www/friends/friends.js @@ -99,31 +99,5 @@ fetch('/friends/list', { } } - /* Template to add Friends to page */ - // Test to see if the browser supports the HTML template element by checking - // for the presence of the template element's content attribute. - if ('content' in document.createElement('template')) { - // Instantiate the table with the existing HTML tbody - // and the row with the template - var template = document.getElementById('friendTemplate'); - - // Clone the new row and insert it into the table - var list = document.getElementById("friendList"); - var clone = document.importNode(template.content, true); - var div = clone.querySelectorAll("div"); - div[2].textContent = nameText.value; - div[3].textContent = peer; - div[3].setAttribute('data-pubkey', peer) - - list.appendChild(clone); - - } else { - // Find another way to add the rows to the table because - // the HTML template element is not supported. - } - }) - - document.getElementById('defriend').onclick = function(){ - removeFriend(document.getElementById('friendPubkey').value) - } \ No newline at end of file + }) \ No newline at end of file diff --git a/onionr/static-data/www/friends/index.html b/onionr/static-data/www/friends/index.html index 249fa01b..518dbea5 100755 --- a/onionr/static-data/www/friends/index.html +++ b/onionr/static-data/www/friends/index.html @@ -36,7 +36,6 @@ Mail Friends Circles - Clandestine @@ -135,14 +134,6 @@ -
diff --git a/onionr/static-data/www/mail/index.html b/onionr/static-data/www/mail/index.html index 2202b709..198f6f03 100755 --- a/onionr/static-data/www/mail/index.html +++ b/onionr/static-data/www/mail/index.html @@ -36,7 +36,6 @@ Mail Friends Circles - Clandestine diff --git a/onionr/static-data/www/private/index.html b/onionr/static-data/www/private/index.html index e747e46e..add1c223 100755 --- a/onionr/static-data/www/private/index.html +++ b/onionr/static-data/www/private/index.html @@ -40,7 +40,6 @@ Mail Friends Circles - Clandestine