Remove parent directory link from table

This commit is contained in:
L. Karkkainen 2023-01-27 04:30:23 +00:00
parent 41da8bbd61
commit 2038799d7a

View File

@ -53,13 +53,9 @@ class AutoIndex(BasePage):
def _file_table(self, files: Iterable[FileInfo]): def _file_table(self, files: Iterable[FileInfo]):
with self.doc.table(class_="autoindex"): with self.doc.table(class_="autoindex"):
self._parent()
for f in files: for f in files:
self._file_row(**f) self._file_row(**f)
def _parent(self):
self._file_row("📁", "..", "", "")
def _file_row( def _file_row(
self, self,
icon: str, icon: str,