[llvm-commits] [LNT] r162184 - in /lnt/trunk/lnt/server/ui: templates/v4_overview.html templates/v4_recent_activity.html views.py
Daniel Dunbar
daniel at zuster.org
Sat Aug 18 19:44:13 PDT 2012
Author: ddunbar
Date: Sat Aug 18 21:44:13 2012
New Revision: 162184
URL: http://llvm.org/viewvc/llvm-project?rev=162184&view=rev
Log:
UI: Add a new top-level overview page that just links to various reports.
- Shamelessly stealing parts of Codespeed's style...
Modified:
lnt/trunk/lnt/server/ui/templates/v4_overview.html
lnt/trunk/lnt/server/ui/templates/v4_recent_activity.html
lnt/trunk/lnt/server/ui/views.py
Modified: lnt/trunk/lnt/server/ui/templates/v4_overview.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_overview.html?rev=162184&r1=162183&r2=162184&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_overview.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_overview.html Sat Aug 18 21:44:13 2012
@@ -3,74 +3,72 @@
{% extends "layout.html" %}
{% set components = [(testsuite_name, v4_url_for("v4_overview"))] %}
{% block title %}Overview{% endblock %}
+
+{% block head %}
+<style type="text/css">
+
+a {
+ color: #000;
+ text-decoration: none;
+}
+
+div .dashboard {
+ padding: 0.8em;
+ -moz-border-radius: 10px;
+ -webkit-border-radius: 10px;
+ border-radius: 10px;
+}
+
+div #dashboard_content {
+ background-color: #DFE0E3;
+ width: 600px;
+ margin: 0 auto;
+ text-align: center;
+}
+
+div .dashboard_box {
+ background-color: #AFA3A3;
+ width: 200px;
+ margin: 1em;
+ position: relative;
+ display: inline-block;
+ text-align: center;
+}
+
+</style>
+{% endblock %}
+
{% block body %}
-<center><h3>Compiler Status Pages</h3></center>
-<a href="{{ v4_url_for('v4_global_status', field=2) }}">Compile Time</a>
-<a href="{{ v4_url_for('v4_global_status', field=3) }}">Execution Time</a>
-
-{# Find recent runs. #}
-<center><h3>Submission Overview</h3></center>
-<table width="100%%">
- <tr>
- <td valign="top" width="50%">
- <center>
- <h3>Active Machines</h3>
- <table class="sortable" border=1>
- <thead>
- <tr>
- <th>Latest Submission</th>
- <th>Machine</th>
- <th>Results</th>
- </tr>
- </thead>
-
-{# Show the most active machines. #}
-{% for machine_name,r in active_machines|dictsort %}
- <tr>
- <td>{{r.start_time}}</td>
- <td align=left><a href="{{v4_url_for('v4_machine', id=r.machine.id)}}">{{
- r.machine.name}}:{{r.machine.id}}</a></td>
- <td><a href="{{v4_url_for('v4_run', id=r.id)}}">
- View Results</a></td>
- </tr>
-{% endfor %}
-
- </table>
- </center>
- </td>
- <td valign="top">
- <center>
- <h3>Recent Submissions</h3>
- <table class="sortable" border=1>
- <thead>
- <tr>
- <th>Run Order</th>
- <th>Start Time</th>
- <th>Duration</th>
- <th>Machine</th>
- <th>Results</th>
- </tr>
- </thead>
-
-{# Show the active submissions. #}
-{% for r,run_order in active_submissions %}
-{% set m = r.machine %}
- <tr>
- <td><a href="{{v4_url_for('v4_order', id=r.order.id)}}">{{
- run_order}}</a></td></td>
- <td>{{r.start_time}}</td>
- <td>{{r.end_time - r.start_time}}</td>
- <td align=left><a href="{{v4_url_for('v4_machine',id=m.id)}}">{{
- m.name}}:{{m.id}}</a></td>
- <td><a href="{{v4_url_for('v4_run', id=r.id)}}">
- View Results</a></td>
- </tr>
-{% endfor %}
- </table>
- </center>
- </td>
- </tr>
-</table>
+<div id="dashboard_content" class="dashboard">
+
+<a href="{{ v4_url_for('v4_recent_activity') }}">
+ <div class="dashboard_box dashboard">
+ <h2>Recent Activity</h2>
+ <p>display recent runs and active machines</p>
+ </div>
+</a>
+<a href="{{ v4_url_for('v4_global_status') }}">
+ <div class="dashboard_box dashboard">
+ <h2>Global Status</h2>
+ <p>show baseline comparison for all tests and machines</p>
+ </div>
+</a>
+
+<a href="{{ v4_url_for('v4_daily_report_overview') }}">
+ <div class="dashboard_box dashboard">
+ <h2>Daily Report</h2>
+ <p>daily performance change report (WIP)</p>
+ </div>
+</a>
+
+<a href="{{ v4_url_for('v4_summary_report') }}">
+ <div class="dashboard_box dashboard">
+ <h2>Summary Report</h2>
+ <p>high-level performance summary charts (WIP)</p>
+ </div>
+</a>
+
+</div>
{% endblock %}
Modified: lnt/trunk/lnt/server/ui/templates/v4_recent_activity.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_recent_activity.html?rev=162184&r1=162183&r2=162184&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_recent_activity.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_recent_activity.html Sat Aug 18 21:44:13 2012
@@ -5,10 +5,6 @@
{% block title %}Overview{% endblock %}
{% block body %}
-<center><h3>Compiler Status Pages</h3></center>
-<a href="{{ v4_url_for('v4_global_status', field=2) }}">Compile Time</a>
-<a href="{{ v4_url_for('v4_global_status', field=3) }}">Execution Time</a>
-
{# Find recent runs. #}
<center><h3>Submission Overview</h3></center>
<table width="100%%">
Modified: lnt/trunk/lnt/server/ui/views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/views.py?rev=162184&r1=162183&r2=162184&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/views.py (original)
+++ lnt/trunk/lnt/server/ui/views.py Sat Aug 18 21:44:13 2012
@@ -122,6 +122,11 @@
@v4_route("/")
def v4_overview():
+ return render_template("v4_overview.html",
+ testsuite_name=g.testsuite_name)
+
+ at v4_route("/recent_activity")
+def v4_recent_activity():
ts = request.get_testsuite()
# Get the most recent runs in this tag, we just arbitrarily limit to looking
@@ -141,7 +146,7 @@
active_submissions = [(r, r.order.llvm_project_revision)
for r in recent_runs[:N]]
- return render_template("v4_overview.html",
+ return render_template("v4_recent_activity.html",
testsuite_name=g.testsuite_name,
active_machines=active_machines,
active_submissions=active_submissions)
More information about the llvm-commits
mailing list