Explorar el Código

Link to channel info on the homepage like irclogger does

master
JustAnotherArchivist hace 3 años
padre
commit
d49086f59a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py Ver fichero

@@ -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):


Cargando…
Cancelar
Guardar