<div class="column is-one-third" is-user-card>
    <div class="box has-background-contrib-<%= user.rank %>" style="overflow: hidden; height: 100%; vertical-align: middle;">
        <article class="media">
            <div class="media-left">
                <figure class="image is-64x64">
                    <img width="64" height="64" class="is-rounded" loading="lazy" src="https://cdn.discordapp.com/avatars/<%= user.id %>/<%= user.avatar %>.<%= user.avatar?.startsWith('a_') ? 'gif' : imageFormat %>" alt="<%= __("common.img.profilePicture", `${user.username}#${user.discriminator}`) %>" onerror="this.onerror = null;this.src = '/img/defaultavatar.<%= imageFormat %>';console.log('<%= __("common.img.loadFail", user.id) %>');" draggable="false">
                </figure>
            </div>
            <div style="overflow: hidden;" class="media-content">
                <div class="content">
                    <a href="<%= linkPrefix %>/users/<%= user.id %>" class="has-text-white is-mobile">
                        <span class="is-size-4"><%= user.username %>#<%= user.discriminator %></span>
                        <br />
                        <% if (user.rank === "admin") { %>
                            <span><%= __("common.rank.admin") %></span>
                        <% } else if (user.rank === "assistant") { %> 
                            <span><%= __("common.rank.assistant") %></span>
                        <% } else if (user.rank === "mod") { %>
                            <span><%= __("common.rank.mod") %></span>
                        <% } else if (user.rank === "booster") { %>
                            <span><%= __("common.rank.booster") %></span>
                        <% } else if (user.rank === "donator") { %>
                            <span><%= __("common.rank.donator") %></span>
                        <% } else if (user.rank === "translator") { %>
                            <span><%= __("common.rank.translator") %></span>
                        <% } else if (user.rank === "tester") { %>
                            <span><%= __("common.rank.tester") %></span>
                        <% } %>
                        </a>
                </div>
            </div>
        </article>
    </div>
</div>
