Browse Source

Link to channel info on the homepage like irclogger does

master
JustAnotherArchivist 3 years ago
parent
commit
d49086f59a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py View File

@@ -881,7 +881,7 @@ class WebServer:
for path, (channel, auth, hidden, extrasearchpaths, description) in self._paths.items():
if hidden:
continue
lines.append(f'{"(PW) " if auth else ""}<a href="/{html.escape(path)}/today">{html.escape(channel)}</a> (<a href="/{html.escape(path)}/search">search</a>)')
lines.append(f'{"(PW) " if auth else ""}<a href="/{html.escape(path)}">{html.escape(channel)}</a> (<a href="/{html.escape(path)}/today">today&#x27;s log</a>, <a href="/{html.escape(path)}/search">search</a>)')
return aiohttp.web.Response(text = f'<!DOCTYPE html><html lang="en"><head><title>IRC logs</title></head><body>{"<br />".join(lines)}</body></html>', content_type = 'text/html')

async def get_channel_info(self, request):


Loading…
Cancel
Save