Commit ecb27b26 authored by Michal Čihař's avatar Michal Čihař

Optimize index page

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 8fc35bc9
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% load translations %} {% load translations %}
{% load crispy_forms_tags %}
{% block content %} {% block content %}
...@@ -48,9 +49,6 @@ ...@@ -48,9 +49,6 @@
<div class="tab-content"> <div class="tab-content">
{% if user.is_authenticated %} {% if user.is_authenticated %}
<div class="tab-pane active" id="your"> <div class="tab-pane active" id="your">
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Your translations" %}</h4></div>
<div class="panel-body">
{% if usertranslations %} {% if usertranslations %}
{% with usertranslations as translations and 2 as show_language and user.profile.hide_completed as hide_completed %} {% with usertranslations as translations and 2 as show_language and user.profile.hide_completed as hide_completed %}
{% include "list-translations.html" %} {% include "list-translations.html" %}
...@@ -58,20 +56,15 @@ ...@@ -58,20 +56,15 @@
{% else %} {% else %}
<p class="help-block">{% trans "Choose your languages in preferences and you will get an overview here of available translations for those languages." %}</p> <p class="help-block">{% trans "Choose your languages in preferences and you will get an overview here of available translations for those languages." %}</p>
{% endif %} {% endif %}
</div> <p><a class="btn btn-default" href="{% url 'profile' %}#languages">{% trans "Manage your translations" %}</a></p>
<div class="panel-footer">
<a class="btn btn-default" href="{% url 'profile' %}#languages">{% trans "Manage your translations" %}</a>
</div>
</div>
</div> </div>
<div class="tab-pane" id="projects"> <div class="tab-pane" id="projects">
{% else %} {% else %}
<div class="tab-pane active" id="projects"> <div class="tab-pane active" id="projects">
{% endif %} {% endif %}
<div class="panel panel-primary">
<div class="panel-heading"><h4 class="panel-title">{% trans "Projects" %}</h4></div>
<div class="panel-body">
<table class="sort table"> <table class="sort table">
<thead> <thead>
<tr> <tr>
...@@ -91,20 +84,21 @@ ...@@ -91,20 +84,21 @@
</tbody> </tbody>
</table> </table>
<p>
{% include "legend.html" %} {% include "legend.html" %}
</p>
</div>
{% if offer_hosting %} {% if offer_hosting %}
<div class="panel-footer"> <p><a class="btn btn-default" href="{% url 'hosting' %}">{% trans "Ask for project hosting" %}</a>
<a class="btn btn-default" href="{% url 'hosting' %}">{% trans "Ask for project hosting" %}</a>
</div>
{% endif %} {% endif %}
</div> </div>
</div>
<div class="tab-pane" id="search"> <div class="tab-pane" id="search">
{% include "search-form.html" %} <form action="{% url 'search' %}" method="GET">
{{ search_form|crispy }}
<input type="submit" value="{% trans "Search" %}" class="btn btn-default" />
</form>
</div> </div>
...@@ -165,7 +159,8 @@ ...@@ -165,7 +159,8 @@
</div> </div>
<div class="tab-pane" id="history"> <div class="tab-pane" id="history">
{% include "last-changes.html" %} {% include "last-changes-content.html" %}
<a class="btn btn-link" href="{% url 'changes' %}?{{ last_changes_url }}">{% trans "Browse all changes" %}</a>
</div> </div>
</div> </div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment