add local ip html

This commit is contained in:
b1ek 2023-03-12 02:48:46 +10:00
parent 409a6da58e
commit 8f517126d5
Signed by: blek
GPG Key ID: 14546221E3595D0C
1 changed files with 5 additions and 2 deletions

View File

@ -93,5 +93,8 @@ block content
a(href='/guestbook/del/' + entry.id class='gb_record_del_btn' title='you can delete your own messages') delete
td(width='80%' class='gb_entry_text')
p(class='gb_entry_text_title') Message:
pre(class='gb_entry_message_text').
#{entry.text}
pre(class='gb_entry_message_text')
if (entry.ip.startsWith('10.8.0.') || entry.ip.startsWith('::ffff:10.0.8.'))
| !{entry.text}
else
| #{entry.text}