mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Always show overriden colors filter (#11755)
This commit is contained in:
parent
8b10fc2f8c
commit
3d7bb15be8
@ -41,31 +41,34 @@
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
<div class="admin-controls">
|
<div class="admin-controls">
|
||||||
{{#if model.theme_id}}
|
{{#unless model.theme_id}}
|
||||||
{{inline-edit-checkbox action=(action "applyUserSelectable") labelKey="admin.customize.theme.color_scheme_user_selectable" checked=model.user_selectable modelId=model.id}}
|
<div class="pull-right">
|
||||||
{{else}}
|
<label>
|
||||||
<label>
|
{{input type="checkbox" checked=onlyOverridden}}
|
||||||
{{input type="checkbox" checked=model.user_selectable}}
|
{{i18n "admin.settings.show_overriden"}}
|
||||||
{{i18n "admin.customize.theme.color_scheme_user_selectable"}}
|
</label>
|
||||||
</label>
|
</div>
|
||||||
{{/if}}
|
{{/unless}}
|
||||||
|
|
||||||
|
<div>
|
||||||
|
{{#if model.theme_id}}
|
||||||
|
{{inline-edit-checkbox action=(action "applyUserSelectable") labelKey="admin.customize.theme.color_scheme_user_selectable" checked=model.user_selectable modelId=model.id}}
|
||||||
|
{{else}}
|
||||||
|
<label>
|
||||||
|
{{input type="checkbox" checked=model.user_selectable}}
|
||||||
|
{{i18n "admin.customize.theme.color_scheme_user_selectable"}}
|
||||||
|
</label>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if colors.length}}
|
{{#if colors.length}}
|
||||||
<table class="table colors">
|
<table class="table colors">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>
|
<th></th>
|
||||||
</th>
|
|
||||||
<th class="hex">{{i18n "admin.customize.color"}}</th>
|
<th class="hex">{{i18n "admin.customize.color"}}</th>
|
||||||
<th class="overriden">
|
<th></th>
|
||||||
{{#unless model.theme_id}}
|
|
||||||
<label>
|
|
||||||
{{input type="checkbox" checked=onlyOverridden}}
|
|
||||||
{{i18n "admin.settings.show_overriden"}}
|
|
||||||
</label>
|
|
||||||
{{/unless}}
|
|
||||||
</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -520,6 +520,10 @@
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.admin-controls {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.colors {
|
.colors {
|
||||||
thead th {
|
thead th {
|
||||||
|
Loading…
Reference in New Issue
Block a user