Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix unformatted HTML
  • Loading branch information
NeuroAssassin committed Nov 30, 2020
1 parent c19982f commit 99d88b8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions reddash/app/home/templates/dashboard.html
Expand Up @@ -72,6 +72,7 @@ <h1>{{ _('Loading servers...') }}</h1>
} else {
var base_guild_url = "{{ url_for('home_blueprint.guild', guild='123456789123456789') }}"
$("#serverrow").html("")
let counter = 0
for (let g of json.data) {
var current_guild_url = base_guild_url.replace("123456789123456789", g.id)
$("#serverrow").append(`
Expand All @@ -80,13 +81,16 @@ <h1>{{ _('Loading servers...') }}</h1>
<div class="card h-100" onmouseover="playGif(this)" onmouseout="stopGif(this)">
<img class="card-img-top" src="${g.icon}png" alt="Card image cap" data-src-url="${g.icon}" data-is-animated=${g.animated}>
<div class="card-body">
<h5 class="card-title">${g.name}</h5>
<p class="card-text">Owner: ${g.owner}</p>
<h5 class="card-title" id="guild-counter-${counter}">Loading...</h5>
<p class="card-text" id="owner-counter-${counter}">Owner: Loading...</p>
</div>
</div>
</a>
</div>
`)
$(`#guild-counter-${counter}`).text(g.name)
$(`#owner-counter-${counter}`).text(g.owner)
counter += 1
}
}
}
Expand Down

0 comments on commit 99d88b8

Please sign in to comment.