Skip to content

Commit

Permalink
Add a missing <tr> and <td>
Browse files Browse the repository at this point in the history
  • Loading branch information
elkuku committed Aug 18, 2014
1 parent e149b2c commit ec08e3e
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions templates/tracker/tpl/activities.twig
Original file line number Diff line number Diff line change
Expand Up @@ -143,19 +143,24 @@
{% endmacro %}

{% macro category(old, new) %}
<td class="span4">
{% for oldCategory in old %}
<span class="label" style="background-color: {{ '#' ~ oldCategory.color }}; color: {{ getContrastColor(oldCategory.color) }};">
{{ oldCategory.title }}
</span>
{% endfor %}
</td>
<td class="span1">&rArr;</td>
<td class="span4">
{% for newCategory in new %}
<span class="label" style="background-color: {{ '#' ~ newCategory.color }}; color: {{ getContrastColor(newCategory.color) }};">
{{ newCategory.title }}
</span>
{% endfor %}
</td>
<tr>
<td class="span2">
{{ 'Category'|_ }}
</td>
<td class="span4">
{% for oldCategory in old %}
<span class="label" style="background-color: {{ '#' ~ oldCategory.color }}; color: {{ getContrastColor(oldCategory.color) }};">
{{ oldCategory.title }}
</span>
{% endfor %}
</td>
<td class="span1">&rArr;</td>
<td class="span4">
{% for newCategory in new %}
<span class="label" style="background-color: {{ '#' ~ newCategory.color }}; color: {{ getContrastColor(newCategory.color) }};">
{{ newCategory.title }}
</span>
{% endfor %}
</td>
</tr>
{% endmacro %}

0 comments on commit ec08e3e

Please sign in to comment.