diff options
author | Vladimir Mandic <mandic00@live.com> | 2023-02-19 14:19:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-19 14:19:25 +0000 |
commit | 8affa42588e85d10da86c401e3558143b05121af (patch) | |
tree | e6b9640f52787f41ba675ec0fb98e580dbad1d85 /modules/ui_extensions.py | |
parent | a320d157ec0221fa4e9c756327e31d881b9921ae (diff) | |
parent | 076d624a297532d6e4abebe5807fd7c7504d7a73 (diff) | |
download | stable-diffusion-webui-gfx803-8affa42588e85d10da86c401e3558143b05121af.tar.gz stable-diffusion-webui-gfx803-8affa42588e85d10da86c401e3558143b05121af.tar.bz2 stable-diffusion-webui-gfx803-8affa42588e85d10da86c401e3558143b05121af.zip |
Merge branch 'AUTOMATIC1111:master' into hide_ui_tabs
Diffstat (limited to 'modules/ui_extensions.py')
-rw-r--r-- | modules/ui_extensions.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/ui_extensions.py b/modules/ui_extensions.py index 37d30e1f..bd4308ef 100644 --- a/modules/ui_extensions.py +++ b/modules/ui_extensions.py @@ -80,6 +80,7 @@ def extension_table(): <tr>
<th><abbr title="Use checkbox to enable the extension; it will be enabled or disabled when you click apply button">Extension</abbr></th>
<th>URL</th>
+ <th><abbr title="Extension version">Version</abbr></th>
<th><abbr title="Use checkbox to mark the extension for update; it will be updated when you click apply button">Update</abbr></th>
</tr>
</thead>
@@ -87,11 +88,7 @@ def extension_table(): """
for ext in extensions.extensions:
- remote = ""
- if ext.is_builtin:
- remote = "built-in"
- elif ext.remote:
- remote = f"""<a href="{html.escape(ext.remote or '')}" target="_blank">{html.escape("built-in" if ext.is_builtin else ext.remote or '')}</a>"""
+ remote = f"""<a href="{html.escape(ext.remote or '')}" target="_blank">{html.escape("built-in" if ext.is_builtin else ext.remote or '')}</a>"""
if ext.can_update:
ext_status = f"""<label><input class="gr-check-radio gr-checkbox" name="update_{html.escape(ext.name)}" checked="checked" type="checkbox">{html.escape(ext.status)}</label>"""
@@ -102,6 +99,7 @@ def extension_table(): <tr>
<td><label><input class="gr-check-radio gr-checkbox" name="enable_{html.escape(ext.name)}" type="checkbox" {'checked="checked"' if ext.enabled else ''}>{html.escape(ext.name)}</label></td>
<td>{remote}</td>
+ <td>{ext.version}</td>
<td{' class="extension_status"' if ext.remote is not None else ''}>{ext_status}</td>
</tr>
"""
|