Skip to content

Commit

Permalink
Revert "file actions"
Browse files Browse the repository at this point in the history
This reverts commit 8eecea4.
  • Loading branch information
gigamaster committed Oct 18, 2024
1 parent 502c98e commit e1187c9
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,11 @@ def main():
"<img style=\"max-width:23px; margin-right:5px\" src=\"" + get_icon_base64(filename) + "\"/>" +
filename + "</a></th><td class=\"size\">" +
get_file_size(path) + "</td><td class=\"time\">" + get_file_modified_time(path) + "</td>" +
"<td class=\"flex flex-nowrap items-center justify-center\">")
"<td class=\"flex flex-nowrap items-center justify-center\">") if dirname != "." else ""

if dirname == ".":

f.write("</td></tr>")

else:

# File Preview - filename relative path
f.write("<a class=\"preview m-1 mb-1 py-1 bg-gray-100 rounded-md hover:text-light hover:bg-primary dark:bg-dark dark:hover:bg-dark dark:hover:text-light\" title=\"Preview File\" x-on:click=\"openWithSelfMain('" + filename + "','codemo','960','540')\">" +
"<span class=\"icon-view w-4 h-4 mx-2\"></span></a>")
# File Preview - filename relative path
f.write("<a class=\"preview m-1 mb-1 py-1 bg-gray-100 rounded-md hover:text-light hover:bg-primary dark:bg-dark dark:hover:bg-dark dark:hover:text-light\" title=\"Preview File\" x-on:click=\"openWithSelfMain('" + filename + "','codemo','960','540')\">" +
"<span class=\"icon-view w-4 h-4 mx-2\"></span></a>")

# Join Parent Directory and File Name with extension
fName = os.path.join(pDirname, filename)
Expand Down

0 comments on commit e1187c9

Please sign in to comment.