If for some reason "All" view is deleted, allow people to create it again.

(<a href=http://www.nabble.com/all-view-disappeared-tt21380658.html>report</a>)


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14322 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-01-09 23:38:57 +00:00
1 parent 053e8e7b47
commit 20c13b724e
3 files changed
+8 -1

No files matched your search

+4 -1
View File
@@ -75,7 +75,10 @@ public class AllView extends View {
@Override
public boolean isInstantiable() {
return false;
for (View v : Hudson.getInstance().getViews())
if(v instanceof AllView)
return false;
return true;
}
public String getDisplayName() {
@@ -0,0 +1,3 @@
<div>
${%blurb}
</div>
@@ -0,0 +1 @@
blurb=This view shows all the jobs on Hudson.