diff options
author | James Moger <james.moger@gitblit.com> | 2011-04-26 18:05:39 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-04-26 18:05:39 -0400 |
commit | c1c3c6a7a2f0a2893ef36ab3dfc7b09d04a133bc (patch) | |
tree | 55552bd1d27e4eca2dc96b136c371e22b14813e5 /src/com/gitblit/wicket/pages/TreePage.java | |
parent | 1e83907b001a2df3f14a35fc36c47ea8f49155c4 (diff) | |
download | gitblit-c1c3c6a7a2f0a2893ef36ab3dfc7b09d04a133bc.tar.gz gitblit-c1c3c6a7a2f0a2893ef36ab3dfc7b09d04a133bc.zip |
Commit header panel. File type icons. Docs page.
Diffstat (limited to 'src/com/gitblit/wicket/pages/TreePage.java')
-rw-r--r-- | src/com/gitblit/wicket/pages/TreePage.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/gitblit/wicket/pages/TreePage.java b/src/com/gitblit/wicket/pages/TreePage.java index 9022d444..56f96d65 100644 --- a/src/com/gitblit/wicket/pages/TreePage.java +++ b/src/com/gitblit/wicket/pages/TreePage.java @@ -19,6 +19,7 @@ import com.gitblit.wicket.LinkPanel; import com.gitblit.wicket.RepositoryPage;
import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.models.PathModel;
+import com.gitblit.wicket.panels.CommitHeaderPanel;
import com.gitblit.wicket.panels.PathBreadcrumbsPanel;
public class TreePage extends RepositoryPage {
@@ -36,7 +37,7 @@ public class TreePage extends RepositoryPage { add(new BookmarkablePageLink<Void>("historyLink", HistoryPage.class, WicketUtils.newPathParameter(repositoryName, objectId, path)));
add(new BookmarkablePageLink<Void>("headLink", TreePage.class, WicketUtils.newPathParameter(repositoryName, Constants.HEAD, path)));
- add(new LinkPanel("shortlog", "title", commit == null ? "" : commit.getShortMessage(), CommitPage.class, newCommitParameter()));
+ add(new CommitHeaderPanel("commitHeader", repositoryName, commit));
// breadcrumbs
add(new PathBreadcrumbsPanel("breadcrumbs", repositoryName, path, objectId));
@@ -66,7 +67,7 @@ public class TreePage extends RepositoryPage { // folder/tree link
item.add(WicketUtils.newImage("pathIcon", "folder_16x16.png"));
item.add(new Label("pathSize", ""));
- item.add(new LinkPanel("pathName", null, entry.name, TreePage.class, newPathParameter(entry.path)));
+ item.add(new LinkPanel("pathName", "list", entry.name, TreePage.class, newPathParameter(entry.path)));
// links
Fragment links = new Fragment("pathLinks", "treeLinks", this);
@@ -75,7 +76,7 @@ public class TreePage extends RepositoryPage { item.add(links);
} else {
// blob link
- item.add(WicketUtils.newImage("pathIcon", "file_16x16.png"));
+ item.add(WicketUtils.getFileImage("pathIcon", entry.name));
item.add(new Label("pathSize", byteFormat.format(entry.size)));
item.add(new LinkPanel("pathName", "list", entry.name, BlobPage.class, newPathParameter(entry.path)));
|