From e54c361a9560f36605459b02f000faa001fc1ab3 Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <eelco.dolstra@logicblox.com>
Date: Fri, 16 Aug 2013 16:39:42 +0200
Subject: [PATCH] Remove per-platform links from the job page

Having different builds within a job is obsolete (issue #60), one
should have different job per platform (e.g. build.x86_64-linux).
---
 src/lib/Hydra/Controller/Job.pm | 2 --
 src/root/job.tt                 | 3 ---
 2 files changed, 5 deletions(-)

diff --git a/src/lib/Hydra/Controller/Job.pm b/src/lib/Hydra/Controller/Job.pm
index e062e14a..50b6b875 100644
--- a/src/lib/Hydra/Controller/Job.pm
+++ b/src/lib/Hydra/Controller/Job.pm
@@ -36,8 +36,6 @@ sub overview : Chained('job') PathPart('') Args(0) {
             , '+as' => ['enabled']
             }
         ) ];
-
-    $c->stash->{systems} = [$c->stash->{job}->builds->search({iscurrent => 1}, {select => ["system"], distinct => 1})];
 }
 
 
diff --git a/src/root/job.tt b/src/root/job.tt
index 1361fccd..8722d3df 100644
--- a/src/root/job.tt
+++ b/src/root/job.tt
@@ -25,9 +25,6 @@
     <ul>
       <li><a href="[% c.uri_for('/job' project.name jobset.name job.name 'latest') %]">Latest successful build</a></li>
       <li><a href="[% c.uri_for('/job' project.name jobset.name job.name 'latest-finished') %]">Latest successful build from a finished evaluation</a></li>
-      [% FOREACH system IN systems %]
-        <li><a href="[% c.uri_for('/job' project.name jobset.name job.name 'latest-for' system.system) %]">Latest successful build for <tt>[% system.system %]</tt></a></li>
-      [% END %]
     </ul>
   </div>