summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/panels/HistoryPanel.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-04-25 21:52:38 -0400
committerJames Moger <james.moger@gitblit.com>2011-04-25 21:52:38 -0400
commit1e83907b001a2df3f14a35fc36c47ea8f49155c4 (patch)
treeb810c2069e41088a4e38920e729388882254ef1d /src/com/gitblit/wicket/panels/HistoryPanel.java
parent4910c13d1049a03895972878ff268a10149ad033 (diff)
downloadgitblit-1e83907b001a2df3f14a35fc36c47ea8f49155c4.tar.gz
gitblit-1e83907b001a2df3f14a35fc36c47ea8f49155c4.zip
Sprinkled some icons throughout ui. Centralized icon retrieval.
Diffstat (limited to 'src/com/gitblit/wicket/panels/HistoryPanel.java')
-rw-r--r--src/com/gitblit/wicket/panels/HistoryPanel.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/com/gitblit/wicket/panels/HistoryPanel.java b/src/com/gitblit/wicket/panels/HistoryPanel.java
index f8592133..234e00ba 100644
--- a/src/com/gitblit/wicket/panels/HistoryPanel.java
+++ b/src/com/gitblit/wicket/panels/HistoryPanel.java
@@ -5,7 +5,6 @@ import java.util.List;
import java.util.Map;
import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.image.ContextImage;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;
import org.apache.wicket.markup.html.panel.Fragment;
import org.apache.wicket.markup.repeater.Item;
@@ -43,7 +42,7 @@ public class HistoryPanel extends BasePanel {
public HistoryPanel(String wicketId, final String repositoryName, final String objectId, final String path, Repository r, int limit, int pageOffset) {
super(wicketId);
boolean pageResults = limit <= 0;
- int itemsPerPage = GitBlit.self().settings().getInteger(Keys.web.logPageCommitCount, 50);
+ int itemsPerPage = GitBlit.self().settings().getInteger(Keys.web.itemsPerPage, 50);
if (itemsPerPage <= 1) {
itemsPerPage = 50;
}
@@ -107,16 +106,16 @@ public class HistoryPanel extends BasePanel {
// merge icon
if (entry.getParentCount() > 1) {
- item.add(new ContextImage("commitIcon", "/com/gitblit/wicket/resources/commit_merge_16x16.png"));
+ item.add(WicketUtils.newImage("commitIcon", "commit_merge_16x16.png"));
} else {
- item.add(new ContextImage("commitIcon", "/com/gitblit/wicket/resources/blank.png"));
+ item.add(WicketUtils.newBlankImage("commitIcon"));
}
String shortMessage = entry.getShortMessage();
String trimmedMessage = StringUtils.trimShortLog(shortMessage);
LinkPanel shortlog = new LinkPanel("commitShortMessage", "list subject", trimmedMessage, CommitPage.class, WicketUtils.newObjectParameter(repositoryName, entry.getName()));
if (!shortMessage.equals(trimmedMessage)) {
- WicketUtils.setHtmlTitle(shortlog, shortMessage);
+ WicketUtils.setHtmlTooltip(shortlog, shortMessage);
}
item.add(shortlog);