Implement server webhook icons as cosmetics & fixes

This commit is contained in:
Jeremy Zhang
2017-09-13 05:55:51 +00:00
parent d9edf7e8ef
commit c23b71d050
14 changed files with 186 additions and 18 deletions

View File

@ -14,6 +14,7 @@
<th>User ID</th>
<th>CSS</th>
<th>CSS Limit</th>
<th>Webhook Icon</th>
<th>Submit</th>
</tr>
</thead>
@ -24,6 +25,16 @@
<input id="new_user_id" placeholder="User ID">
</div>
</td>
<td>
<div class="switch">
<label>
Off
<input type="checkbox" id="new_css_switch">
<span class="lever"></span>
On
</label>
</div>
</td>
<td>
<div class="input-field inline">
<input id="new_css_limit" placeholder="CSS Limit" type="number">
@ -33,7 +44,7 @@
<div class="switch">
<label>
Off
<input type="checkbox" id="new_css_switch">
<input type="checkbox" id="new_webhook_icon_switch">
<span class="lever"></span>
On
</label>
@ -57,6 +68,7 @@
<th>User ID</th>
<th>CSS</th>
<th>CSS Limit</th>
<th>Webhook Icon</th>
</tr>
</thead>
<tbody>
@ -79,6 +91,16 @@
<input placeholder="CSS Limit" type="number" value="{{ cosmetic.css_limit }}" onchange="update_css_limit('{{ cosmetic.user_id }}', $(this).val())">
</div>
</td>
<td>
<div class="switch">
<label>
Off
<input type="checkbox" {% if cosmetic.webhook_icon %}checked{% endif %} onchange="update_webhook_icon_switch('{{ cosmetic.user_id }}', this)">
<span class="lever"></span>
On
</label>
</div>
</td>
</tr>
{% endfor %}
</tbody>