Commits

Steve Losh committed c10c5e8

Handle some more edge cases, add more data, prettify.

Comments (0)

Files changed (3)

site-media/styles/tinpan.css

     margin-right: 3em;
     border: 1px solid #888;
     padding: 1.5em;
+    line-height: 1.5em;
     background-color: #e5e5e5;
 }
 
+p > code, li > code {
+    border: 1px solid #888;
+    background-color: #f0f0f0;
+    padding-left: 4px;
+    padding-right: 4px;
+}
+
 p.empty-page {
     margin: 0 0 1em;
     font-size: 1.5em;
     color: #666;
     font-family: "Helvetica Neue Light", HelveticaNeue-Light, "Helvetica Neue", Helvetica, Arial, sans-serif;
+}
+
+ul.info-list {
+    list-style: none;
+}
+
+ul.info-list li {
+    margin-left: 0em;
+}
+
+ul.info-list li span.info-label {
+    display: inline-block;
+    width: 10em;
+    font-weight: bold;
 }

templates/integration/build.html

         to finish.
     </p>
     
-    <p>The command used to build was:</p>
-    
-    <pre><code>{{ run.command }}</code></pre>
+    <p>The command used to build was: <code>{{ run.command }}</code></p>
     
     {% if not run.success %}
         <p>The output was:</p>

templates/integration/project.html

 {% endblock header %}
 
 {% block content %}
+    <ul class="info-list">
+        <li><span class="info-label">Test Bed:</span><code>{{ project.test_bed }}</code></li>
+        <li><span class="info-label">Test Command:</span><code>{{ project.command }}</code></li>
+    </ul>
+    
     <form method="post" action="{% url run_build slug=project.slug %}">
         <p><input type="submit" value="Start a build" /></p>
         <input type="hidden" name="run" value="run" />
     </form>
-    <h2>Builds</h2>
+    
+    <h2>All Builds</h2>
     {% for run in project.buildrun_set.all %}
         <p class="project-run {% if forloop.last %}last{% endif %}">
             <a href="{% url build_detail slug=project.slug,id=run.id %}">A build of {{ project.name }}</a>
                 is currently running (started {{ run.start_time|timesince }} ago)...
             {% endif %}
         </p>
+    {% empty %}
+        <p class="empty-page">This project has never been built.</p>
     {% endfor %}
 {% endblock content %}