ソースを参照

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(): for path, (channel, auth, hidden, extrasearchpaths, description) in self._paths.items():
if hidden: if hidden:
continue 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') 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): async def get_channel_info(self, request):


読み込み中…
キャンセル
保存