Skip to content

Commit

Permalink
Revert "folder actions"
Browse files Browse the repository at this point in the history
This reverts commit f509c42.
  • Loading branch information
gigamaster committed Oct 18, 2024
1 parent 7f44400 commit 502c98e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,13 @@ def main():
for subdirname in dirnames:

# Join Parent Directory and Subdirectory
folderZip = os.path.join(pDirname, subdirname)
folderZip = os.path.join(pDirname, subdirname)
f.write("<tr class=\"w-1/4 border-b dark:border-primary-darker hover:bg-primary-100 dark:hover:bg-primary-dark\">" +
"<th scope=\"row\" class=\"p-2 lg:px-6 font-medium whitespace-nowrap flex align-middle\">" +
"<a class=\"flex flex-nowrap items-center my-auto dark:text-light\" href=\"" + subdirname + "/\">" +
"<img style=\"max-width:23px; margin-right:5px\" src=\"" + get_icon_base64("o.folder") + "\"/>" +
subdirname + "</a></th><td></td><td></td>")

if dirname == ".":

f.write("<td class=\"text-center\"></td></tr>")

else:

f.write("<td class=\"text-center\">" +
subdirname + "</a></th><td></td><td></td>" +
"<td class=\"text-center\">" +
"<a class=\"download 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\" @click=\"GitZip.zipRepo('" + uFolder + folderZip + "'); await $nextTick(); $notify('Downloading folder...')\" title=\"Download Folder\">" +
"<span class=\"icon-download w-4 h-4 mx-2\"></span></td></a></tr>\n")

Expand All @@ -96,7 +89,7 @@ def main():

if dirname == ".":

f.write("<td class=\"text-center\"></td></tr>")
f.write("</td></tr>")

else:

Expand Down

0 comments on commit 502c98e

Please sign in to comment.