Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions website/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,10 @@ a:hover{
text-decoration: none !important;
}
.leaderboard-points {
margin-top: 15px;
margin-right: 50px;
float: none !important;
}
.leaderboard-rank {
margin-top: -33px;
margin-left: 15px;
}
textarea {
resize: vertical;
Expand Down Expand Up @@ -423,4 +422,4 @@ input[type='file'] {
display: block;
font-size: 14px;
line-height: 20px;
}
}
46 changes: 22 additions & 24 deletions website/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,34 +153,32 @@ <h1 class="page-sub-header">Latest activity</h1>
</div>

<div class="list-group">
{% if leaderboard %}
{% for leader in leaderboard %}
<div class="list-group-item">
{% if leader.socialaccount_set.all.0.get_avatar_url %}
<img src="{{leader.socialaccount_set.all.0.get_avatar_url}}" width="50" height="50">
{% else %}
<img src="{% gravatar_url leader.email 50 %}">
{% endif %}
<a href="/profile/{{leader.username}}" class="text-capitalize leaderboard-name">{{leader.username}}</a>
<span class="badge leaderboard-points">{{leader.total_score}} Points</span>
<span class="pull-right label label-success leaderboard-rank">{{forloop.counter|ordinal}}</span>
</div>
{% endfor %}
{% else %}
</br>
Leaderboard reset for {% now "F" %}. Be first to find issues!
{% endif %}
</div>
<a href="/leaderboard" class="btn btn-default btn-block submit_button">View All</a>
{% if leaderboard %}
{% for leader in leaderboard %}
<div class="list-group-item">
{% if leader.socialaccount_set.all.0.get_avatar_url %}
<img src="{{leader.socialaccount_set.all.0.get_avatar_url}}" width="50" height="50">
{% else %}
<img src="{% gravatar_url leader.email 50 %}">
{% endif %}
<a href="/profile/{{leader.username}}" class="text-capitalize leaderboard-name">{{leader.username}}</a>
<span class="badge leaderboard-points">{{leader.total_score}} Points</span>
<span class="label label-success leaderboard-rank">{{forloop.counter|ordinal}}</span>
</div>
{% endfor %}
{% else %}
</br> Leaderboard reset for {% now "F" %}. Be first to find issues!
{% endif %}
</div>
<a href="/leaderboard" class="btn btn-default btn-block submit_button">View All</a>
</div>
</div>
</div>

<div class="row">
<div class="col-lg-3">
<a class="twitter-timeline" data-height="800" href="https://twitter.com/Bugheist"></a>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div class="row">
<div class="col-lg-3">
<a class="twitter-timeline" data-height="800" href="https://twitter.com/Bugheist"></a>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
</div>
Expand Down