Merge branch 'home-refacto' into main
This commit is contained in:
commit
2495de137b
|
@ -62,7 +62,8 @@
|
|||
{% if ctfs %}
|
||||
{% for ctf in ctfs %}
|
||||
<li class="list-group-item">
|
||||
<a href="{% url 'ctf' cat_slug=ctf.category.slug ctf_slug=ctf.slug %}">{{ ctf.name }}</a> - {{ctf.points}} {% trans "points" %}
|
||||
<a class="ctf-link" href="{% url 'ctf' cat_slug=ctf.category.slug ctf_slug=ctf.slug %}">{{ ctf.name }}</a>
|
||||
<span style="position:absolute;right: 15px;">{{ctf.points}} {% trans "points" %}</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
|
@ -74,8 +75,11 @@
|
|||
{% for f in latest_flags %}
|
||||
{% ismember f.user.userprofileinfo as is_member %}
|
||||
<li class="list-group-item text-truncate">
|
||||
<a class="profile_link {{is_member}}" href="{% url 'accounts:profile' user_name=f.user.username %}">
|
||||
{{ f.user.username }}</a> - {{f.ctf}}
|
||||
<a class="ctf-link" href="{% url 'ctf' cat_slug=f.ctf.category.slug ctf_slug=f.ctf.slug %}"> {{f.ctf}}</a>
|
||||
<span style="position:absolute;right: 15px;">
|
||||
<a class="profile_link {{is_member}}" href="{% url 'accounts:profile' user_name=f.user.username %}">{{ f.user.username }}</a>
|
||||
</span>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
<div class="row flex-nowrap">
|
||||
|
|
|
@ -77,14 +77,7 @@ pre {
|
|||
.table-dark thead th {
|
||||
border: none;
|
||||
}
|
||||
.list-group a {
|
||||
text-decoration: none;
|
||||
/* color: #4375aa; */
|
||||
}
|
||||
.list-group a:hover {
|
||||
text-decoration: none;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ctf-block {
|
||||
background-color: #1d1d1d;
|
||||
min-height: 235px;
|
||||
|
@ -372,4 +365,12 @@ footer {
|
|||
.top-sm { order: 1; }
|
||||
.middle-sm { order: 2; }
|
||||
.bottom-sm { order: 3 }
|
||||
}
|
||||
|
||||
.ctf-link {
|
||||
color: #fff;
|
||||
}
|
||||
.ctf-link:hover {
|
||||
color: #a9a9a9;
|
||||
text-decoration: none;
|
||||
}
|
Loading…
Reference in New Issue