Fix resources page

This commit is contained in:
ix 2022-02-03 20:49:02 +01:00
parent 248cdc54d5
commit 5d00c5733f
7 changed files with 25 additions and 60 deletions

View File

@ -1,9 +1,7 @@
{% extends 'base.html' %}
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="col-sm-12 col-md-6">
<div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>{% trans "What is 42CTF ?" %}</h3> <h3>{% trans "What is 42CTF ?" %}</h3>
@ -30,5 +28,4 @@
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,9 +1,7 @@
{% extends 'base.html' %}
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="col-sm-12 col-md-6">
<div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>{% trans "Create new challenges" %}</h3> <h3>{% trans "Create new challenges" %}</h3>
@ -18,5 +16,4 @@
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,9 +1,7 @@
{% extends 'base.html' %}
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="col-sm-12">
<div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>{% trans "Donate" %}</h3> <h3>{% trans "Donate" %}</h3>
@ -48,6 +46,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,9 +1,7 @@
{% extends 'base.html' %}
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="col-sm-12 col-md-6">
<div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>{% trans "Edit this page" %}</h3> <h3>{% trans "Edit this page" %}</h3>
@ -13,6 +11,4 @@
</div> </div>
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -3,38 +3,23 @@
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="row">
<div class="col-lg-9 col-sm-12 news-card"> {% block 42ctf %}
{% include "./42ctf.html" %}
<div class="card news-card"> {% endblock %}
<ul class="list-group"> {% block tools %}
<li class="list-group-item active">{% trans "Getting started" %}</li> {% include "./tools.html" %}
<li class="list-group-item"> {% endblock %}
<a href="{% url 'resources:42ctf' %}">{% trans "What is 42CTF ?" %}</a></br> {% block translate %}
<a href="{% url 'resources:tools' %}">{% trans "Recommended Tools" %}</a> {% include "./translate.html" %}
</li> {% endblock %}
</ul> {% block create_challenge %}
</div> {% include "./create_challenge.html" %}
{% endblock %}
<div class="card news-card"> {% block edit %}
<ul class="list-group"> {% include "./edit.html" %}
<li class="list-group-item active">{% trans "Technical documentation" %}</li> {% endblock %}
<li class="list-group-item">{% trans "No docs available, contact us if you want to write some :)" %}</li> {% block donate %}
</ul> {% include "./donate.html" %}
</div> {% endblock %}
<div class="card news-card">
<ul class="list-group">
<li class="list-group-item active">{% trans "Contribute" %}</li>
<li class="list-group-item">
<a href="{% url 'resources:create_challenge' %}">{% trans "Create new challenges" %}</a></br>
<a href="{% url 'resources:translate' %}">{% trans "Translate 42CTF" %}</a></br>
<a href="{% url 'resources:edit' %}">{% trans "Edit this page" %}</a></br>
<a href="{% url 'resources:donate' %}">{% trans "Donate" %}</a>
</li>
</ul>
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,9 +1,7 @@
{% extends 'base.html' %}
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="col-sm-12 col-md-6">
<div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>{% trans "Recommended Tools" %}</h3> <h3>{% trans "Recommended Tools" %}</h3>
@ -31,5 +29,4 @@
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,9 +1,7 @@
{% extends 'base.html' %}
{% block content %} {% block content %}
{% load i18n %} {% load i18n %}
{% get_current_language as lang %} {% get_current_language as lang %}
<div class="row"> <div class="col-sm-12">
<div class="col-sm-12 col-md-9">
<div class="ctf-block"> <div class="ctf-block">
<div class="ctf-head"> <div class="ctf-head">
<h3>{% trans "Translate 42CTF" %}</h3> <h3>{% trans "Translate 42CTF" %}</h3>
@ -19,5 +17,4 @@
</div> </div>
</div> </div>
</div>
{% endblock %} {% endblock %}