diff --git a/core/src/main/java/hudson/model/TreeView.java b/core/src/main/java/hudson/model/TreeView.java index 3e668554ab..6d58dbe8e7 100644 --- a/core/src/main/java/hudson/model/TreeView.java +++ b/core/src/main/java/hudson/model/TreeView.java @@ -8,7 +8,6 @@ import org.kohsuke.stapler.StaplerResponse; import javax.servlet.ServletException; import java.io.IOException; -import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; @@ -116,7 +115,7 @@ public class TreeView extends View implements ViewGroup { public void doCreateView( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException { try { checkPermission(View.CREATE); - views.add(View.create(req,rsp, this)); + views.add(View.create(req,rsp,this)); save(); } catch (ParseException e) { sendError(e,req,rsp); diff --git a/core/src/main/java/hudson/model/View.java b/core/src/main/java/hudson/model/View.java index f086e97a9c..5ab721a58f 100644 --- a/core/src/main/java/hudson/model/View.java +++ b/core/src/main/java/hudson/model/View.java @@ -538,7 +538,7 @@ public abstract class View extends AbstractModelObject implements AccessControll v.owner = owner; // redirect to the config screen - rsp.sendRedirect2("./"+v.getUrl()+v.getPostConstructLandingPage()); + rsp.sendRedirect2(req.getContextPath()+'/'+v.getUrl()+v.getPostConstructLandingPage()); return v; } diff --git a/core/src/main/resources/lib/hudson/projectView.jelly b/core/src/main/resources/lib/hudson/projectView.jelly index 2c8e783d98..94febcb3f6 100644 --- a/core/src/main/resources/lib/hudson/projectView.jelly +++ b/core/src/main/resources/lib/hudson/projectView.jelly @@ -10,95 +10,35 @@ --> - -
- - - - - - projectstatus - sortable pane bigtable - - margin-top:0px; border-top: none; - - - S - W - ${%Job} - ${%Last Success} - ${%Last Failure} - ${%Last Duration} - - - - - - - + +
+ + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
- - ${job.displayName} - - - - - ${lsBuild.timestampString} - (#${lsBuild.number}) - - - ${%N/A} - - - - - - ${lfBuild.timestampString} - (#${lfBuild.number}) - - - ${%N/A} - - - - - - ${lsBuild.durationString} - - - ${lfBuild.durationString} - - - ${%N/A} - - - - - - - - ${%Schedule a build} - - -
SW${%Job}${%Last Success}${%Last Failure}${%Last Duration} + + + +
+ +
+
diff --git a/core/src/main/resources/lib/hudson/projectViewRow.jelly b/core/src/main/resources/lib/hudson/projectViewRow.jelly new file mode 100644 index 0000000000..17e136d8f2 --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow.jelly @@ -0,0 +1,67 @@ + + + + + + + + + + ${job.displayName} + + + + + + ${lsBuild.timestampString} + (#${lsBuild.number}) + + + ${%N/A} + + + + + + + ${lfBuild.timestampString} + (#${lfBuild.number}) + + + ${%N/A} + + + + + + + ${lsBuild.durationString} + + + ${lfBuild.durationString} + + + ${%N/A} + + + + + + + + + + ${%Schedule a build} + + + + + diff --git a/core/src/main/resources/lib/hudson/projectViewRow_de.properties b/core/src/main/resources/lib/hudson/projectViewRow_de.properties new file mode 100644 index 0000000000..4b07775b8e --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_de.properties @@ -0,0 +1,7 @@ +Job=Job +Last\ Success=Letzter Erfolg +Last\ Failure=Letzter Fehlschlag +Last\ Duration=Letzte Dauer +N/A=Unbekannt +Schedule\ a\ build=Build planen +Description=Beschreibung diff --git a/core/src/main/resources/lib/hudson/projectViewRow_fr.properties b/core/src/main/resources/lib/hudson/projectViewRow_fr.properties new file mode 100644 index 0000000000..5ef9b5fcbd --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_fr.properties @@ -0,0 +1,9 @@ +Job= +Last\ Success=Dernier succès +Last\ Failure=Dernier échec +Last\ Duration=Dernière durée +N/A= +Schedule\ a\ build=Demander un build +Description= +Status\ of\ the\ last\ build=Statut du dernier build +Weather\ report\ showing\ aggregated\ status\ of\ recent\ builds=Graphe montrant les statuts de tous les builds récents diff --git a/core/src/main/resources/lib/hudson/projectViewRow_ja.properties b/core/src/main/resources/lib/hudson/projectViewRow_ja.properties new file mode 100644 index 0000000000..aca7ea6134 --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_ja.properties @@ -0,0 +1,11 @@ +Job=\u30B8\u30E7\u30D6 +Last\ Success=\u6700\u5F8C\u306E\u6210\u529F +Last\ Failure=\u6700\u5F8C\u306E\u5931\u6557 +Last\ Duration=\u30D3\u30EB\u30C9\u6240\u8981\u6642\u9593 +N/A=\u2015 +Schedule\ a\ build=\u30D3\u30EB\u30C9\u5B9F\u884C + +Description=\u8AAC\u660E +Status\ of\ the\ last\ build=\u6700\u65B0\u30D3\u30EB\u30C9\u306E\u30B9\u30C6\u30FC\u30BF\u30B9 +Weather\ report\ showing\ aggregated\ status\ of\ recent\ builds=\ + \u6700\u8FD1\u306E\u30D3\u30EB\u30C9\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u96C6\u7D04\u3057\u305F\u5929\u6C17\u4E88\u5831 diff --git a/core/src/main/resources/lib/hudson/projectViewRow_ko.properties b/core/src/main/resources/lib/hudson/projectViewRow_ko.properties new file mode 100644 index 0000000000..55eb98962e --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_ko.properties @@ -0,0 +1,7 @@ +Job=\uC791\uC5C5 +Last\ Success=\uCD5C\uADFC \uC131\uACF5 +Last\ Failure=\uCD5C\uADFC \uC2E4\uD328 +Last\ Duration=\uCD5C\uADFC \uC18C\uC694 \uC2DC\uAC04 +Description=\uC124\uBA85 +N/A=\u2015 +Schedule\ a\ build=\uBE4C\uB4DC \uC2E4\uD589 \uC77C\uC815 diff --git a/core/src/main/resources/lib/hudson/projectViewRow_nl.properties b/core/src/main/resources/lib/hudson/projectViewRow_nl.properties new file mode 100644 index 0000000000..84739bbef1 --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_nl.properties @@ -0,0 +1,7 @@ +Job=Job +Last\ Success=Laatste succesvolle bouwpoging +Last\ Failure=Laatste gefaalde bouwpoging +Last\ Duration=Duur laatste bouwpoging +Description=Omschrijving +N/A=N.B. +Schedule\ a\ build=Start nu een bouwpoging diff --git a/core/src/main/resources/lib/hudson/projectViewRow_pt_BR.properties b/core/src/main/resources/lib/hudson/projectViewRow_pt_BR.properties new file mode 100644 index 0000000000..14a34ae0b1 --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_pt_BR.properties @@ -0,0 +1,7 @@ +Job=Tarefa +Last\ Success=\u00DAltima de Sucesso +Last\ Failure=\u00DAltima com Falha +Last\ Duration=\u00DAltima Dura\u00E7\u00E3o +Description=Descri\u00E7\u00E3o +N/A= +Schedule\ a\ build=Agendar uma constru\u00E7\u00E3o diff --git a/core/src/main/resources/lib/hudson/projectViewRow_ru.properties b/core/src/main/resources/lib/hudson/projectViewRow_ru.properties new file mode 100644 index 0000000000..d32b42c449 --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_ru.properties @@ -0,0 +1,7 @@ +Job=\u0417\u0430\u0434\u0430\u0447\u0430 +Last\ Success=\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0443\u0441\u043f\u0435\u0445 +Last\ Failure=\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043d\u0435\u0443\u0434\u0430\u0447\u0430 +Last\ Duration=\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c +N/A=\u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e +Schedule\ a\ build=\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u0431\u043e\u0440\u043a\u0443 +Description=\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 diff --git a/core/src/main/resources/lib/hudson/projectViewRow_tr.properties b/core/src/main/resources/lib/hudson/projectViewRow_tr.properties new file mode 100644 index 0000000000..f69f785b29 --- /dev/null +++ b/core/src/main/resources/lib/hudson/projectViewRow_tr.properties @@ -0,0 +1,7 @@ +Job=\u0130\u015f +Last\ Success=En son ba\u015far\u0131 +Last\ Failure=En son ba\u015far\u0131s\u0131zl\u0131k +Last\ Duration=En son s\u00fcre +Description=A\u00e7\u0131klama +N/A=Mevcut De\u011fil +Schedule\ a\ build=Bir\ yap\u0131land\u0131rma\ planla