提交 a712248e 编写于 作者: K kohsuke

with a certain kind of jobs, name is not user modifiable.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3795 71c3de6d-444a-0410-be80-ed276b4c234a
上级 187f55fd
......@@ -195,6 +195,11 @@ public final class MavenModule extends AbstractMavenProject<MavenModule,MavenBui
return "Module";
}
@Override
public boolean isNameEditable() {
return false;
}
public MavenModuleSet getParent() {
return (MavenModuleSet)super.getParent();
}
......
......@@ -142,6 +142,13 @@ public abstract class Job<JobT extends Job<JobT,RunT>, RunT extends Run<JobT,Run
return "Project";
}
/**
* Returns whether the name of this job can be changed by user.
*/
public boolean isNameEditable() {
return true;
}
/**
* If true, it will keep all the build logs of dependency components.
*/
......
......@@ -6,9 +6,11 @@
<st:include page="sidepanel.jelly" />
<l:main-panel>
<f:form method="post" action="configSubmit">
<f:entry title="${it.pronoun} name">
<f:textbox name="name" value="${it.name}" />
</f:entry>
<j:if test="${it.isNameEditable()}">
<f:entry title="${it.pronoun} name">
<f:textbox name="name" value="${it.name}" />
</f:entry>
</j:if>
<f:entry title="Description" help="/help/project-config/description.html">
<textarea class="setting-input" name="description"
rows="5" style="width:100%"><st:out value="${it.description}"/></textarea>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册