Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
584f7823
Unverified
Commit
584f7823
authored
Feb 05, 2023
by
CurtisDS
Committed by
GitHub
Feb 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ui_extra_networks.py
update the string used to build the ID handle to replace spaces with underscore
parent
ea9bd9fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ui_extra_networks.py
modules/ui_extra_networks.py
+4
-2
No files found.
modules/ui_extra_networks.py
View file @
584f7823
...
@@ -94,11 +94,13 @@ class ExtraNetworksPage:
...
@@ -94,11 +94,13 @@ class ExtraNetworksPage:
dirs
=
""
.
join
([
f
"<li>{x}</li>"
for
x
in
self
.
allowed_directories_for_previews
()])
dirs
=
""
.
join
([
f
"<li>{x}</li>"
for
x
in
self
.
allowed_directories_for_previews
()])
items_html
=
shared
.
html
(
"extra-networks-no-cards.html"
)
.
format
(
dirs
=
dirs
)
items_html
=
shared
.
html
(
"extra-networks-no-cards.html"
)
.
format
(
dirs
=
dirs
)
self_name_id
=
self
.
name
.
replace
(
" "
,
"_"
)
res
=
f
"""
res
=
f
"""
<div id='{tabname}_{self
.name
}_subdirs' class='extra-network-subdirs extra-network-subdirs-{view}'>
<div id='{tabname}_{self
_name_id
}_subdirs' class='extra-network-subdirs extra-network-subdirs-{view}'>
{subdirs_html}
{subdirs_html}
</div>
</div>
<div id='{tabname}_{self
.name
}_cards' class='extra-network-{view}'>
<div id='{tabname}_{self
_name_id
}_cards' class='extra-network-{view}'>
{items_html}
{items_html}
</div>
</div>
"""
"""
...
...
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