diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2014-02-20 01:20:47 +0000 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-03-14 17:55:02 +0000 |
commit | 0c111b24e9f86130bc43c1327a6d12026e92cdf2 (patch) | |
tree | a11a7d1955aafe820c36040eb4286340c1b53f1c /lib/toaster/toastergui/templates/package_built_dependencies.html | |
parent | c350e4924abab8688c539608fd7f3af687d7265a (diff) | |
download | bitbake-0c111b24e9f86130bc43c1327a6d12026e92cdf2.tar.gz |
toaster: Move <tbody> outside for statement
In the package details pages, the <tbody> tags where inside
the for statements, which caused multiple <tbody> tags to
be generated inside a single table.
To make sure only one <tbody> tag exists per table, moving
the <tbody> tag outside the for statement.
Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
Diffstat (limited to 'lib/toaster/toastergui/templates/package_built_dependencies.html')
-rw-r--r-- | lib/toaster/toastergui/templates/package_built_dependencies.html | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/lib/toaster/toastergui/templates/package_built_dependencies.html b/lib/toaster/toastergui/templates/package_built_dependencies.html index c67f60e20..4932f74c8 100644 --- a/lib/toaster/toastergui/templates/package_built_dependencies.html +++ b/lib/toaster/toastergui/templates/package_built_dependencies.html @@ -35,8 +35,8 @@ <th>Size</th> </tr> </thead> - {% for runtime_dep in runtime_deps %} - <tbody> + <tbody> + {% for runtime_dep in runtime_deps %} {% ifequal runtime_dep.version '' %} <tr class="muted"> <td>{{runtime_dep.name}}</td> @@ -55,8 +55,8 @@ <td>{{runtime_dep.size|filtered_filesizeformat}}</td> </tr> {% endifequal %} - </tbody> - {% endfor %} + {% endfor %} + </tbody> </table> {% endifequal %} {% ifnotequal other_deps|length 0 %} @@ -67,43 +67,41 @@ <th>Package</th> <th>Version</th> <th>Size</th> - <th> <i class="icon-question-sign get-help" title="There are 5 relationship types: recommends, suggests, provides, replaces and conflicts"></i> Relationship type </th> </tr> - </thead> - - {% for other_dep in other_deps %} - <tbody> - {% ifequal other_dep.version '' %} - <tr class="muted"> - <td>{{other_dep.name}}</td> - <td>{{other_dep.version}}</td> - <td></td> - <td> - {{other_dep.dep_type_display}} - <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> - </td> - </tr> - {% else %} - <tr> - <td> - <a href="{% url 'package_built_detail' build.id other_dep.depends_on_id %}"> - {{other_dep.name}} - </a> - </td> - <td>{{other_dep.version}}</td> - <td>{{other_dep.size|filtered_filesizeformat}}</td> - <td> - {{other_dep.dep_type_display}} - <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> - </td> - </tr> - </tbody> - {% endifequal %} - {% endfor %} + </thead> + <tbody> + {% for other_dep in other_deps %} + {% ifequal other_dep.version '' %} + <tr class="muted"> + <td>{{other_dep.name}}</td> + <td>{{other_dep.version}}</td> + <td></td> + <td> + {{other_dep.dep_type_display}} + <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> + </td> + </tr> + {% else %} + <tr> + <td> + <a href="{% url 'package_built_detail' build.id other_dep.depends_on_id %}"> + {{other_dep.name}} + </a> + </td> + <td>{{other_dep.version}}</td> + <td>{{other_dep.size|filtered_filesizeformat}}</td> + <td> + {{other_dep.dep_type_display}} + <i class="icon-question-sign get-help hover-help" title="{{other_dep.dep_type_help}}" ></i> + </td> + </tr> + {% endifequal %} + {% endfor %} + </tbody> </table> {% endifnotequal %} </div> <!-- tab-pane --> |