Renamed webhook icon to guest icon for preperation of avatars in the client

This commit is contained in:
Jeremy Zhang
2017-09-24 01:22:07 +00:00
parent cb10c35ec9
commit ad833434dd
13 changed files with 90 additions and 60 deletions

View File

@ -14,7 +14,7 @@
<th>User ID</th>
<th>CSS</th>
<th>CSS Limit</th>
<th>Webhook Icon</th>
<th>Guest Icon</th>
<th>Submit</th>
</tr>
</thead>
@ -44,7 +44,7 @@
<div class="switch">
<label>
Off
<input type="checkbox" id="new_webhook_icon_switch">
<input type="checkbox" id="new_guest_icon_switch">
<span class="lever"></span>
On
</label>
@ -68,7 +68,7 @@
<th>User ID</th>
<th>CSS</th>
<th>CSS Limit</th>
<th>Webhook Icon</th>
<th>Guest Icon</th>
</tr>
</thead>
<tbody>
@ -95,7 +95,7 @@
<div class="switch">
<label>
Off
<input type="checkbox" {% if cosmetic.webhook_icon %}checked{% endif %} onchange="update_webhook_icon_switch('{{ cosmetic.user_id }}', this)">
<input type="checkbox" {% if cosmetic.guest_icon %}checked{% endif %} onchange="update_guest_icon_switch('{{ cosmetic.user_id }}', this)">
<span class="lever"></span>
On
</label>

View File

@ -115,13 +115,13 @@
<br>
<p class="flow-text">Webhook Guest User Avatar URL</p>
<p>If enabled Webhook Messages, you may set it so that the guest users may have a custom avatar instead of the Titan logo. Source must be the permanent URL location to the image file (try imgur and get direct link to image).</p>
<p class="flow-text">Guest User Avatar URL</p>
<p>Guest users may have a custom avatar instead of the Titan logo. Source must be the permanent URL location to the image file (try imgur and get direct link to image).</p>
<p>(Leave blank if none - enter to submit)</p>
{% if not cosmetics.webhook_icon %}
<p class="red lighten-4"><strong>Your user account does not have access to change webhook avatar url. Please visit the Titan Tokens shop to activate this cosmetic item.</strong></p>
{% if not cosmetics.guest_icon %}
<p class="red lighten-4"><strong>Your user account does not have access to change guest avatar url. Please visit the Titan Tokens shop to activate this cosmetic item.</strong></p>
{% endif %}
<input id="webhook_icon" value="{{ guild['webhook_icon'] }}" {% if not cosmetics.webhook_icon %}disabled{% endif %}>
<input id="guest_icon" value="{{ guild['guest_icon'] }}" {% if not cosmetics.guest_icon %}disabled{% endif %}>
</div>
</div>
</div>

View File

@ -47,10 +47,10 @@
</div>
<div class="col s12">
<div class="card-panel indigo lighten-5 z-depth-3 hoverable black-text">
<h4>Webhook Guest User Avatar <strong>[300 tokens]</strong></h4>
<p class="flow-text">Tired of the bland Titan logo for your guests avatars in your servers? Enables your account to be able to set webhook icons for guests for all servers you can manage.</p>
<p>(Note: Webhook Messages has to be enabled & Titan needs server permissions to create webhooks)</p>
<a class="waves-effect waves-light btn" id="buy-webhook-guest-user-avatar-btn" {% if cosmetics.webhook_icon %}disabled{% endif %}>{% if cosmetics.webhook_icon %}Already Purchased{% else %}Buy{% endif %}</a>
<h4>Guest User Avatar <strong>[300 tokens]</strong></h4>
<p class="flow-text">Tired of the bland Titan logo for your guests avatars in your servers? Enables your account to be able to set icons for guests on all servers you can manage.</p>
<p>(Note: Webhook Messages has to be enabled to be displayed in Discord; Titan needs server permissions to create webhooks)</p>
<a class="waves-effect waves-light btn" id="buy-guest-user-avatar-btn" {% if cosmetics.guest_icon %}disabled{% endif %}>{% if cosmetics.guest_icon %}Already Purchased{% else %}Buy{% endif %}</a>
</div>
</div>
</div>