소스 검색

Link to channel info on the homepage like irclogger does

master
JustAnotherArchivist 3 년 전
부모
커밋
d49086f59a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      irclog.py

+ 1
- 1
irclog.py 파일 보기

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


불러오는 중...
취소
저장