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
3ccf6f5a
Commit
3ccf6f5a
authored
Mar 29, 2023
by
space-nuko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add webui link
parent
563d0487
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/ui_extensions.py
modules/ui_extensions.py
+7
-7
No files found.
modules/ui_extensions.py
View file @
3ccf6f5a
...
@@ -202,6 +202,10 @@ def update_config_states_table(state_name):
...
@@ -202,6 +202,10 @@ def update_config_states_table(state_name):
else
:
else
:
webui_commit_date
=
"<unknown>"
webui_commit_date
=
"<unknown>"
remote
=
f
"""<a href="{html.escape(webui_remote)}" target="_blank">{html.escape(webui_remote or '')}</a>"""
commit_link
=
make_commit_link
(
webui_commit_hash
,
webui_remote
)
date_link
=
make_commit_link
(
webui_commit_hash
,
webui_remote
,
webui_commit_date
)
current_webui
=
config_states
.
get_webui_config
()
current_webui
=
config_states
.
get_webui_config
()
style_remote
=
""
style_remote
=
""
...
@@ -214,9 +218,6 @@ def update_config_states_table(state_name):
...
@@ -214,9 +218,6 @@ def update_config_states_table(state_name):
if
current_webui
[
"commit_hash"
]
!=
webui_commit_hash
:
if
current_webui
[
"commit_hash"
]
!=
webui_commit_hash
:
style_commit
=
STYLE_PRIMARY
style_commit
=
STYLE_PRIMARY
commit_link
=
make_commit_link
(
webui_commit_hash
,
webui_remote
)
date_link
=
make_commit_link
(
webui_commit_hash
,
webui_remote
,
webui_commit_date
)
code
+=
f
"""<h2>Config Backup: {config_name}</h2>
code
+=
f
"""<h2>Config Backup: {config_name}</h2>
<div><b>Filepath:</b> {filepath}</div>
<div><b>Filepath:</b> {filepath}</div>
<div><b>Created at:</b> {created_date}</div>"""
<div><b>Created at:</b> {created_date}</div>"""
...
@@ -233,7 +234,7 @@ def update_config_states_table(state_name):
...
@@ -233,7 +234,7 @@ def update_config_states_table(state_name):
</thead>
</thead>
<tbody>
<tbody>
<tr>
<tr>
<td><label{style_remote}>{
webui_
remote}</label></td>
<td><label{style_remote}>{remote}</label></td>
<td><label{style_branch}>{webui_branch}</label></td>
<td><label{style_branch}>{webui_branch}</label></td>
<td><label{style_commit}>{commit_link}</label></td>
<td><label{style_commit}>{commit_link}</label></td>
<td><label{style_commit}>{date_link}</label></td>
<td><label{style_commit}>{date_link}</label></td>
...
@@ -270,6 +271,8 @@ def update_config_states_table(state_name):
...
@@ -270,6 +271,8 @@ def update_config_states_table(state_name):
ext_commit_date
=
"<unknown>"
ext_commit_date
=
"<unknown>"
remote
=
f
"""<a href="{html.escape(ext_remote)}" target="_blank">{html.escape(ext_remote or '')}</a>"""
remote
=
f
"""<a href="{html.escape(ext_remote)}" target="_blank">{html.escape(ext_remote or '')}</a>"""
commit_link
=
make_commit_link
(
ext_commit_hash
,
ext_remote
)
date_link
=
make_commit_link
(
ext_commit_hash
,
ext_remote
,
ext_commit_date
)
style_enabled
=
""
style_enabled
=
""
style_remote
=
""
style_remote
=
""
...
@@ -287,9 +290,6 @@ def update_config_states_table(state_name):
...
@@ -287,9 +290,6 @@ def update_config_states_table(state_name):
if
current_ext
.
commit_hash
!=
ext_commit_hash
:
if
current_ext
.
commit_hash
!=
ext_commit_hash
:
style_commit
=
STYLE_PRIMARY
style_commit
=
STYLE_PRIMARY
commit_link
=
make_commit_link
(
ext_commit_hash
,
ext_remote
)
date_link
=
make_commit_link
(
ext_commit_hash
,
ext_remote
,
ext_commit_date
)
code
+=
f
"""
code
+=
f
"""
<tr>
<tr>
<td><label{style_enabled}><input class="gr-check-radio gr-checkbox" type="checkbox" disabled="true" {'checked="checked"' if ext_enabled else ''}>{html.escape(ext_name)}</label></td>
<td><label{style_enabled}><input class="gr-check-radio gr-checkbox" type="checkbox" disabled="true" {'checked="checked"' if ext_enabled else ''}>{html.escape(ext_name)}</label></td>
...
...
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