mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 14:32:22 +00:00
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@4414 71c3de6d-444a-0410-be80-ed276b4c234a
17 lines
343 B
Java
17 lines
343 B
Java
package hudson;
|
|
|
|
import hudson.model.Job;
|
|
|
|
/**
|
|
* Used by <tt>projectView.jelly</tt> to indent modules.
|
|
*
|
|
* @author Kohsuke Kawaguchi
|
|
*/
|
|
public abstract class Indenter<J extends Job> {
|
|
protected abstract int getNestLevel(J job);
|
|
|
|
public final String getCss(J job) {
|
|
return "padding-left: "+getNestLevel(job)*2+"em";
|
|
}
|
|
}
|