Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
26e1cd7e
Commit
26e1cd7e
authored
Jan 21, 2024
by
Sj-Si
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary template and simplify tree list.
parent
d7d3166a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
html/extra-networks-tree.html
html/extra-networks-tree.html
+0
-3
modules/ui_extra_networks.py
modules/ui_extra_networks.py
+1
-10
No files found.
html/extra-networks-tree.html
deleted
100644 → 0
View file @
d7d3166a
<div
class=
"tree-list"
>
{tree}
</div>
\ No newline at end of file
modules/ui_extra_networks.py
View file @
26e1cd7e
...
@@ -164,7 +164,6 @@ class ExtraNetworksPage:
...
@@ -164,7 +164,6 @@ class ExtraNetworksPage:
self
.
lister
=
util
.
MassFileLister
()
self
.
lister
=
util
.
MassFileLister
()
# HTML Templates
# HTML Templates
self
.
pane_tpl
=
shared
.
html
(
"extra-networks-pane.html"
)
self
.
pane_tpl
=
shared
.
html
(
"extra-networks-pane.html"
)
self
.
tree_tpl
=
shared
.
html
(
"extra-networks-tree.html"
)
self
.
card_tpl
=
shared
.
html
(
"extra-networks-card.html"
)
self
.
card_tpl
=
shared
.
html
(
"extra-networks-card.html"
)
self
.
btn_tree_tpl
=
shared
.
html
(
"extra-networks-tree-button.html"
)
self
.
btn_tree_tpl
=
shared
.
html
(
"extra-networks-tree-button.html"
)
self
.
btn_copy_path_tpl
=
shared
.
html
(
"extra-networks-copy-path-button.html"
)
self
.
btn_copy_path_tpl
=
shared
.
html
(
"extra-networks-copy-path-button.html"
)
...
@@ -420,8 +419,6 @@ class ExtraNetworksPage:
...
@@ -420,8 +419,6 @@ class ExtraNetworksPage:
def
create_tree_view_html
(
self
,
tabname
:
str
)
->
str
:
def
create_tree_view_html
(
self
,
tabname
:
str
)
->
str
:
"""Generates HTML for displaying folders in a tree view.
"""Generates HTML for displaying folders in a tree view.
The generated HTML uses `extra-networks-tree.html` as a template.
Args:
Args:
tabname: The name of the active tab.
tabname: The name of the active tab.
...
@@ -473,13 +470,7 @@ class ExtraNetworksPage:
...
@@ -473,13 +470,7 @@ class ExtraNetworksPage:
if
item_html
is
not
None
:
if
item_html
is
not
None
:
res
+=
item_html
res
+=
item_html
return
self
.
tree_tpl
.
format
(
return
f
"<ul class='tree-list tree-list--tree'>{res}</ul>"
**
{
"tabname"
:
tabname
,
"extra_networks_tabname"
:
self
.
extra_networks_tabname
,
"tree"
:
f
"<ul class='tree-list tree-list--tree'>{res}</ul>"
}
)
def
create_card_view_html
(
self
,
tabname
:
str
)
->
str
:
def
create_card_view_html
(
self
,
tabname
:
str
)
->
str
:
"""Generates HTML for the network Card View section for a tab.
"""Generates HTML for the network Card View section for a tab.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment