James Moger
2011-04-06 7ba0ec1e871a1f7b5a40b3272e860ade13038e95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.gitblit.wicket.panels;
 
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.panel.Panel;
 
import com.gitblit.Constants;
import com.gitblit.StoredSettings;
 
 
public class PageFooter extends Panel {
 
    private static final long serialVersionUID = 1L;
 
    public PageFooter(String id) {
        this(id, "");
    }
 
    public PageFooter(String id, String description) {
        super(id);        
        add(new Label("footerText", description));
        add(new Label("gbVersion", "v" + Constants.VERSION));
        if (StoredSettings.getBoolean("aggressiveHeapManagement", false)) {
            System.gc();
        }
    }
}