[llvm-commits] [zorg] r125911 - in /zorg/trunk/llvmlab/llvmlab/ui: ci/views.py templates/dashboard.html templates/latest_release.html

Daniel Dunbar daniel at zuster.org
Fri Feb 18 08:43:18 PST 2011


Author: ddunbar
Date: Fri Feb 18 10:43:17 2011
New Revision: 125911

URL: http://llvm.org/viewvc/llvm-project?rev=125911&view=rev
Log:
llvmlab: Move "latest release" information off to a side page, it is too busy
for the dashboard.

Added:
    zorg/trunk/llvmlab/llvmlab/ui/templates/latest_release.html
Modified:
    zorg/trunk/llvmlab/llvmlab/ui/ci/views.py
    zorg/trunk/llvmlab/llvmlab/ui/templates/dashboard.html

Modified: zorg/trunk/llvmlab/llvmlab/ui/ci/views.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/ci/views.py?rev=125911&r1=125910&r2=125911&view=diff
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/ci/views.py (original)
+++ zorg/trunk/llvmlab/llvmlab/ui/ci/views.py Fri Feb 18 10:43:17 2011
@@ -76,6 +76,10 @@
 def dashboard():
     return render_template("dashboard.html", ci_config=g_config)
 
+ at ci.route('/latest_release')
+def latest_release():
+    return render_template("latest_release.html", ci_config=g_config)
+
 @ci.route('/monitor')
 def buildbot_monitor():
     return render_template("buildbot_monitor.html",

Modified: zorg/trunk/llvmlab/llvmlab/ui/templates/dashboard.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/templates/dashboard.html?rev=125911&r1=125910&r2=125911&view=diff
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/templates/dashboard.html (original)
+++ zorg/trunk/llvmlab/llvmlab/ui/templates/dashboard.html Fri Feb 18 10:43:17 2011
@@ -15,7 +15,7 @@
     final_phase.passing.source_stamp }}</b>
 validated at:
 <i>{{ final_phase.passing.end_time }}</i>
-(available <a href="#latest_release">below</a>).
+(available <a href="{{ url_for('latest_release') }}">here</a>).
 {% else %}
 <i><b>No release is currently available!</b></i>
 {% endif %}
@@ -142,37 +142,6 @@
 </tr>
 </table>
 
-{# The builds archive table... #}
-<a name="latest_release">
-  <h2>Latest Release</h2>
-</a>
-
-<p>
-The latest released sources are available here: <a href="XXX">llvm-rNNNNNN</a>.
-
-<p>
-Binary packages of the latest release:
-<table width="100%">
-  <thead>
-    <tr>
-      <th>Product</th>
-      <th>OS</th>
-      <th>Arch</th>
-      <th width="80%" align="left">Archive</th>
-    </tr>
-  </thead>
-  
-  {% for build in ci_config.published_builds %}
-  <tr>
-    <td>{{ build.product }}</td>
-    <td>{{ build.os }}</td>
-    <td>{{ build.arch }}</td>
-    <td><a href="/archives/{{ build.archive_name }}">{{
-        build.archive_name }}</a></td>
-  </tr>
-  {% endfor %}
-</table>
-
 <h1>Example Phase Popups</h1>
 
 {% include "dashboard_popup.html" %}

Added: zorg/trunk/llvmlab/llvmlab/ui/templates/latest_release.html
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmlab/llvmlab/ui/templates/latest_release.html?rev=125911&view=auto
==============================================================================
--- zorg/trunk/llvmlab/llvmlab/ui/templates/latest_release.html (added)
+++ zorg/trunk/llvmlab/llvmlab/ui/templates/latest_release.html Fri Feb 18 10:43:17 2011
@@ -0,0 +1,38 @@
+{% extends "layout.html" %}
+{% block title %}latest release{% endblock %}
+{% block body %}
+
+{# The builds archive table... #}
+<a name="latest_release">
+  <h2>Latest Release</h2>
+</a>
+
+<b>FIXME: THIS PAGE IS JUST A PLACEHOLDER, IT IS NOT LIVE!</b>
+
+<p>
+The latest released sources are available here: <a href="XXX">llvm-rNNNNNN</a>.
+
+<p>
+Binary packages of the latest release:
+<table width="100%">
+  <thead>
+    <tr>
+      <th>Product</th>
+      <th>OS</th>
+      <th>Arch</th>
+      <th width="80%" align="left">Archive</th>
+    </tr>
+  </thead>
+  
+  {% for build in ci_config.published_builds %}
+  <tr>
+    <td>{{ build.product }}</td>
+    <td>{{ build.os }}</td>
+    <td>{{ build.arch }}</td>
+    <td><a href="/archives/{{ build.archive_name }}">{{
+        build.archive_name }}</a></td>
+  </tr>
+  {% endfor %}
+</table>
+
+{% endblock %}





More information about the llvm-commits mailing list