fixed links css for challenges in home

This commit is contained in:
Danhia 2022-01-30 19:22:58 +01:00
parent 9ff4e7e36b
commit 37525bb50a
2 changed files with 16 additions and 11 deletions

View File

@ -62,7 +62,8 @@
{% if ctfs %} {% if ctfs %}
{% for ctf in ctfs %} {% for ctf in ctfs %}
<li class="list-group-item"> <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> </li>
{% endfor %} {% endfor %}
{% else %} {% else %}
@ -74,8 +75,11 @@
{% for f in latest_flags %} {% for f in latest_flags %}
{% ismember f.user.userprofileinfo as is_member %} {% ismember f.user.userprofileinfo as is_member %}
<li class="list-group-item text-truncate"> <li class="list-group-item text-truncate">
<a class="profile_link {{is_member}}" href="{% url 'accounts:profile' user_name=f.user.username %}"> <a class="ctf-link" href="{% url 'ctf' cat_slug=f.ctf.category.slug ctf_slug=f.ctf.slug %}"> {{f.ctf}}</a>
{{ f.user.username }}</a> - {{f.ctf}} <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 %} {% endfor %}
</ul> </ul>
<div class="row flex-nowrap"> <div class="row flex-nowrap">

View File

@ -77,14 +77,7 @@ pre {
.table-dark thead th { .table-dark thead th {
border: none; border: none;
} }
.list-group a {
text-decoration: none;
/* color: #4375aa; */
}
.list-group a:hover {
text-decoration: none;
color: #fff;
}
.ctf-block { .ctf-block {
background-color: #1d1d1d; background-color: #1d1d1d;
min-height: 235px; min-height: 235px;
@ -372,4 +365,12 @@ footer {
.top-sm { order: 1; } .top-sm { order: 1; }
.middle-sm { order: 2; } .middle-sm { order: 2; }
.bottom-sm { order: 3 } .bottom-sm { order: 3 }
}
.ctf-link {
color: #fff;
}
.ctf-link:hover {
color: #a9a9a9;
text-decoration: none;
} }