summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/panels/BranchesPanel.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-04-11 21:49:36 -0400
committerJames Moger <james.moger@gitblit.com>2011-04-11 21:49:36 -0400
commitbc10f9b3128f6d6986138914b3b53f5d974a2d09 (patch)
treec812ce17e751db2f7d86788ad24aa1c8440c0b63 /src/com/gitblit/wicket/panels/BranchesPanel.java
parent7d35e227475bb4a6ba185788cc663e38822c15f8 (diff)
downloadgitblit-bc10f9b3128f6d6986138914b3b53f5d974a2d09.tar.gz
gitblit-bc10f9b3128f6d6986138914b3b53f5d974a2d09.zip
Eliminated most session usage.
Diffstat (limited to 'src/com/gitblit/wicket/panels/BranchesPanel.java')
-rw-r--r--src/com/gitblit/wicket/panels/BranchesPanel.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/gitblit/wicket/panels/BranchesPanel.java b/src/com/gitblit/wicket/panels/BranchesPanel.java
index d060b147..1c68b6f9 100644
--- a/src/com/gitblit/wicket/panels/BranchesPanel.java
+++ b/src/com/gitblit/wicket/panels/BranchesPanel.java
@@ -6,7 +6,6 @@ import java.util.List;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
-import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
import org.apache.wicket.markup.repeater.data.ListDataProvider;
@@ -15,7 +14,6 @@ import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Repository;
import com.gitblit.utils.JGitUtils;
-import com.gitblit.wicket.GitBlitWebSession;
import com.gitblit.wicket.LinkPanel;
import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.models.RefModel;
@@ -24,7 +22,7 @@ import com.gitblit.wicket.pages.LogPage;
import com.gitblit.wicket.pages.SummaryPage;
import com.gitblit.wicket.pages.TreePage;
-public class BranchesPanel extends Panel {
+public class BranchesPanel extends BasePanel {
private static final long serialVersionUID = 1L;
@@ -59,7 +57,7 @@ public class BranchesPanel extends Panel {
public void populateItem(final Item<RefModel> item) {
final RefModel entry = item.getModelObject();
- item.add(WicketUtils.createDateLabel("branchDate", entry.getDate(), GitBlitWebSession.get().getTimezone()));
+ item.add(WicketUtils.createDateLabel("branchDate", entry.getDate(), getTimeZone()));
item.add(new LinkPanel("branchName", "list name", WicketUtils.trimString(entry.getDisplayName(), 28), LogPage.class, WicketUtils.newObjectParameter(repositoryName, entry.getName())));