changeset 577a0ccc8d5d in bugs.tryton.org:default
details: https://hg.tryton.org/bugs.tryton.org?cmd=changeset;node=577a0ccc8d5d
description:
Use striped table
diffstat:
html/file.index.html | 18 ++++++++------
html/issue.index.html | 62 ++++++++++++++++++++++++++------------------------
html/user.index.html | 24 ++++++++++---------
3 files changed, 55 insertions(+), 49 deletions(-)
diffs (132 lines):
diff -r a6131d5922a8 -r 577a0ccc8d5d html/file.index.html
--- a/html/file.index.html Mon Oct 19 10:34:38 2020 +0200
+++ b/html/file.index.html Mon Oct 19 10:35:03 2020 +0200
@@ -1,12 +1,14 @@
<h4>{% trans %}Files{% endtrans %}</h4>
-<table class='table'>
- <tr>
- <th>{% trans %}File name{% endtrans %}</th>
- <th>{% trans %}Uploaded{% endtrans %}</th>
- <th>{% trans %}Type{% endtrans %}</th>
- <th>{% if context.is_edit_ok() %}{% trans %}Edit{% endtrans %}{% else %}{%
trans %}Details{% endtrans %}{% endif %}</th>
- {% if context.is_edit_ok() %}<th>{% trans %}Remove{% endtrans %}</th>{%
endif %}
- </tr>
+<table class='table table-striped'>
+ <thead>
+ <tr>
+ <th>{% trans %}File name{% endtrans %}</th>
+ <th>{% trans %}Uploaded{% endtrans %}</th>
+ <th>{% trans %}Type{% endtrans %}</th>
+ <th>{% if context.is_edit_ok() %}{% trans %}Edit{% endtrans %}{% else
%}{% trans %}Details{% endtrans %}{% endif %}</th>
+ {% if context.is_edit_ok() %}<th>{% trans %}Remove{% endtrans %}</th>{%
endif %}
+ </tr>
+ </thead>
{% for file in context.files %}
<tr>
<td>
diff -r a6131d5922a8 -r 577a0ccc8d5d html/issue.index.html
--- a/html/issue.index.html Mon Oct 19 10:34:38 2020 +0200
+++ b/html/issue.index.html Mon Oct 19 10:35:03 2020 +0200
@@ -15,36 +15,38 @@
{% if context.is_view_ok() %}
{% set batch = request.batch() %}
{% if batch %}
- <table class='table'>
- <tr class='info'>
- {% if request.show.priority %}
- <td>{% trans %}Priority{% endtrans %}</td>
- {% endif %}
- {% if request.show.id %}
- <td>{% trans %}ID{% endtrans %}</td>
- {% endif %}
- {% if request.show.activity %}
- <td>{% trans %}Activity{% endtrans %}</td>
- {% endif %}
- {% if request.show.actor %}
- <td>{% trans %}Actor{% endtrans %}</td>
- {% endif %}
- {% if request.show.keyword %}
- <td>{% trans %}Keyword{% endtrans %}</td>
- {% endif %}
- {% if request.show.title %}
- <td>{% trans %}Title{% endtrans %}</td>
- {% endif %}
- {% if request.show.status %}
- <td>{% trans %}Status{% endtrans %}</td>
- {% endif %}
- {% if request.show.creator %}
- <td>{% trans %}Creator{% endtrans %}</td>
- {% endif %}
- {% if request.show.assignedto %}
- <td>{% trans %}Assigned To{% endtrans %}</td>
- {% endif %}
- </tr>
+ <table class='table table-striped'>
+ <thead>
+ <tr class='info'>
+ {% if request.show.priority %}
+ <th scope="col">{% trans %}Priority{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.id %}
+ <th scope="col">{% trans %}ID{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.activity %}
+ <th scope="col">{% trans %}Activity{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.actor %}
+ <th scope="col">{% trans %}Actor{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.keyword %}
+ <th scope="col">{% trans %}Keyword{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.title %}
+ <th scope="col">{% trans %}Title{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.status %}
+ <th scope="col">{% trans %}Status{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.creator %}
+ <th scope="col">{% trans %}Creator{% endtrans %}</th>
+ {% endif %}
+ {% if request.show.assignedto %}
+ <th scope="col">{% trans %}Assigned To{% endtrans %}</th>
+ {% endif %}
+ </tr>
+ </thead>
{% for issue in batch %}
{% if request.group|length %}
{% set group = [request.group[0][1], request.group[1][1]] if
request.group|length >= 2 else [request.group[0][1]] %}
diff -r a6131d5922a8 -r 577a0ccc8d5d html/user.index.html
--- a/html/user.index.html Mon Oct 19 10:34:38 2020 +0200
+++ b/html/user.index.html Mon Oct 19 10:35:03 2020 +0200
@@ -14,17 +14,19 @@
{% if context.is_view_ok() %}
{% set batch = request.batch() %}
- <table class='table'>
- <tr class='info'>
- <td>{% trans %}Username{% endtrans %}</td>
- <td>{% trans %}Real name{% endtrans %}</td>
- <td>{% trans %}Organisation{% endtrans %}</td>
- <td>{% trans %}Email address{% endtrans %}</td>
- <td>{% trans %}Phone number{% endtrans %}</td>
- {% if context.is_retire_ok() %}
- <td>{% trans %}Retire{% endtrans %}</td>
- {% endif %}
- </tr>
+ <table class='table table-striped'>
+ <thead>
+ <tr class='info'>
+ <td scope="col">{% trans %}Username{% endtrans %}</td>
+ <td scope="col">{% trans %}Real name{% endtrans %}</td>
+ <td scope="col">{% trans %}Organisation{% endtrans %}</td>
+ <td scope="col">{% trans %}Email address{% endtrans %}</td>
+ <td scope="col">{% trans %}Phone number{% endtrans %}</td>
+ {% if context.is_retire_ok() %}
+ <td scope="col">{% trans %}Retire{% endtrans %}</td>
+ {% endif %}
+ </tr>
+ </thead>
{% for user in batch %}
<tr>
<td>