[LNT] r179192 - Change popups to use Bootstrap collapsable accordians
Paul Redmond
paul.redmond at intel.com
Wed Apr 10 11:11:23 PDT 2013
Author: predmond
Date: Wed Apr 10 13:11:23 2013
New Revision: 179192
URL: http://llvm.org/viewvc/llvm-project?rev=179192&view=rev
Log:
Change popups to use Bootstrap collapsable accordians
Reviewed by: Daniel Dunbar
Modified:
lnt/trunk/lnt/server/ui/templates/utils.html
lnt/trunk/lnt/server/ui/templates/v4_run.html
Modified: lnt/trunk/lnt/server/ui/templates/utils.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/utils.html?rev=179192&r1=179191&r2=179192&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/utils.html (original)
+++ lnt/trunk/lnt/server/ui/templates/utils.html Wed Apr 10 13:11:23 2013
@@ -1,14 +1,17 @@
{% macro render_popup_begin(id, title, hidden, depth=1) -%}
-<p>
-<a href="javascript://" onclick="toggleLayer('{{id}}')"; id="{{id}}_">({{
- "-" if hidden else "+" }}) {{title}}</a>
-<div id="{{id}}"
- style="display: {{'none' if hidden else '' }};"
- class="hideable_{{depth}}">
+ <div class="accordion" id="{{id}}-accordion">
+ <div class="accordion-group">
+ <div class="accordion-heading">
+ <a class="accordion-toggle" data-toggle="collapse" data-parent="#{{id}}-accordion" href="#{{id}}-collapse">{{ title }}</a>
+ </div>
+ <div id="{{id}}-collapse" class="accordion-body {{ 'collapse' if hidden else 'collapse in' }}">
+ <div class="accordion-inner">
{%- endmacro %}
-
{% macro render_popup_end() -%}
-</div>
+ </div>
+ </div>
+ </div>
+ </div>
{%- endmacro %}
{% macro render_result(r) -%}
Modified: lnt/trunk/lnt/server/ui/templates/v4_run.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_run.html?rev=179192&r1=179191&r2=179192&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_run.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_run.html Wed Apr 10 13:11:23 2013
@@ -265,8 +265,6 @@
{{request_info.html_report|safe}}
{{ utils.render_popup_end() }}
- <h3>Tests</h3>
-
{% set graph_base=v4_url_for('v4_graph', highlight_run=run.id) %}
<form method="GET" action="{{ graph_base }}">
More information about the llvm-commits
mailing list