@@ -52,15 +52,26 @@ <h3>{{ i18n('plugins.themes.themes.themes') }}</h3>
52
52
< th > ID</ th >
53
53
< th > {{ i18n('plugins.themes.themes.theme') }}</ th >
54
54
< th > {{ i18n('interface.common.url') }}</ th >
55
+ < th > {{ i18n('plugins.themes.themes.disabled') }}</ th >
55
56
< th > </ th >
56
57
< th > </ th >
57
58
</ thead >
58
59
< tbody >
59
60
{% for item in list %}
60
61
< tr >
61
- < td style ="vertical-align: middle "> {{ loop.index }}</ td >
62
- < td style ="vertical-align: middle "> {{ item.name }}</ td >
63
- < td style ="vertical-align: middle "> {{ item.url }}</ td >
62
+ < td {% if item.disabled %}class ="text-muted "{% endif %} style ="vertical-align: middle "> {{ loop.index }}</ td >
63
+ < td {% if item.disabled %}class ="text-muted "{% endif %} style ="vertical-align: middle "> {{ item.name }}</ td >
64
+ < td {% if item.disabled %}class ="text-muted "{% endif %} style ="vertical-align: middle "> {{ item.url }}</ td >
65
+ < td style ="vertical-align: middle ">
66
+ < input class ="form-check-input "
67
+ id ="disable-theme-{{ item.name }} "
68
+ name ="disable-theme-{{ item.name }} "
69
+ type ="checkbox " disabled value ="disabled "
70
+ {% if item.disabled %}
71
+ checked
72
+ {% endif %}
73
+ />
74
+ </ td >
64
75
< td >
65
76
< a href ="# " onclick ="copyToClipboard('{{ item.url }}') " class ="btn btn-default copy " role ="button " title ="{{ i18n('plugins.themes.themes.copy_url') }} ">
66
77
{{ utils.render_icon('copy') }}
@@ -140,15 +151,26 @@ <h3>{{ i18n('plugins.themes.themes.theme_groups') }}</h3>
140
151
< th > ID</ th >
141
152
< th > {{ i18n('plugins.themes.themes.theme') }}</ th >
142
153
< th > {{ i18n('interface.common.url') }}</ th >
154
+ < th > {{ i18n('plugins.themes.themes.disabled') }}</ th >
143
155
< th > </ th >
144
156
< th > </ th >
145
157
</ thead >
146
158
< tbody >
147
159
{% for item in group["items"] %}
148
160
< tr >
149
- < td style ="vertical-align: middle "> {{ loop.index }}</ td >
150
- < td style ="vertical-align: middle "> {{ item.name }}</ td >
151
- < td style ="vertical-align: middle "> {{ item.url }}</ td >
161
+ < td {% if item.disabled %}class ="text-muted "{% endif %} style ="vertical-align: middle "> {{ loop.index }}</ td >
162
+ < td {% if item.disabled %}class ="text-muted "{% endif %} style ="vertical-align: middle "> {{ item.name }}</ td >
163
+ < td {% if item.disabled %}class ="text-muted "{% endif %} style ="vertical-align: middle "> {{ item.url }}</ td >
164
+ < td style ="vertical-align: middle ">
165
+ < input class ="form-check-input "
166
+ id ="disable-theme-{{ item.name }} "
167
+ name ="disable-theme-{{ item.name }} "
168
+ type ="checkbox " disabled value ="disabled "
169
+ {% if item.disabled %}
170
+ checked
171
+ {% endif %}
172
+ />
173
+ </ td >
152
174
< td >
153
175
< a href ="# " onclick ="copyToClipboard('{{ item.url }}') " class ="btn btn-default copy " role ="button " title ="{{ i18n('plugins.themes.themes.copy_url') }} ">
154
176
{{ utils.render_icon('copy') }}
0 commit comments