| |
@@ -24,8 +24,8 @@
|
| |
<table class="table table-bordered">
|
| |
<thead>
|
| |
<tr>
|
| |
- <th>Username</th>
|
| |
- <th>{{category.col_1_name or "Profile"}}</th>
|
| |
+ <th class="username">Username</th>
|
| |
+ <th class="profile">{{category.col_1_name or "Profile"}}</th>
|
| |
{% for testcase in category.testcases %}
|
| |
<th>
|
| |
<a href="{{testcase.url}}" class="external" target="_blank">
|
| |
@@ -33,7 +33,7 @@
|
| |
</a>
|
| |
</th>
|
| |
{% endfor %}
|
| |
- <th>Comments</th>
|
| |
+ <th class="comments">Comments</th>
|
| |
</tr>
|
| |
<tr>
|
| |
<th></th>
|
| |
@@ -41,7 +41,7 @@
|
| |
{% for testcase in category.testcases %}
|
| |
<th>
|
| |
{% if testcase.name in profile.filled %}
|
| |
- <a href="{{url_for('main.enter_result', event_id=testcase.category.event.id, tc_id=testcase.id)}}" class="btn btn-primary btn-xs ">
|
| |
+ <a href="{{url_for('main.enter_result', event_id=testcase.category.event.id, tc_id=testcase.id)}}" class="btn btn-primary btn-sm ">
|
| |
<strong>Already entered</strong>
|
| |
</a>
|
| |
{% else %}
|
| |
@@ -59,7 +59,15 @@
|
| |
{% for line in results[category.id] %}
|
| |
<tr>
|
| |
<td>{{line['username']}}</td>
|
| |
- <td>{{line['profile']}}</td>
|
| |
+ <td class="profile">
|
| |
+ {% if line['profile']|length > 150 %}
|
| |
+ <span>{{line['profile'][:150]}}</span>
|
| |
+ <span class="collapse" id="p_{{line['username']}}">{{line['profile'][150:]}}</span>
|
| |
+ <a data-toggle="collapse" class="collapse-toggle collapsed" href="#p_{{line['username']}}"></a>
|
| |
+ {% else %}
|
| |
+ {{line['profile']}}
|
| |
+ {% endif %}
|
| |
+ </td>
|
| |
{% for results in line['results'] %}
|
| |
<td>
|
| |
{% for result in results %}
|
| |
@@ -78,13 +86,20 @@
|
| |
{% endfor %}
|
| |
</td>
|
| |
{% endfor %}
|
| |
- <td>
|
| |
+ <td class="comments">
|
| |
{% for comment in line['comments'] %}
|
| |
{{loop.index}}.
|
| |
{% for bug in comment[0] %}
|
| |
<a class="external" target="_blank" href="https://bugzilla.redhat.com/show_bug.cgi?id={{bug}}">#{{bug}}</a>,
|
| |
{% endfor %}
|
| |
- {{comment[1]}}
|
| |
+ {% if comment[1]|length > 200 %}
|
| |
+ <span>{{comment[1][:200]}}</span>
|
| |
+ <span class="collapse" id="c_{{line['username']}}_{{loop.index}}">{{comment[1][200:]}}</span>
|
| |
+ <a data-toggle="collapse" class="collapse-toggle collapsed" href="#c_{{line['username']}}_{{loop.index}}"></a>
|
| |
+ {% else %}
|
| |
+ {{comment[1]}}
|
| |
+ {% endif %}
|
| |
+
|
| |
{% if comment[0] or comment[1] %}
|
| |
<br />
|
| |
{% endif %}
|
| |
#20