diff options
author | James Moger <james.moger@gmail.com> | 2013-11-13 20:16:59 -0500 |
---|---|---|
committer | James Moger <james.moger@gmail.com> | 2013-11-13 20:16:59 -0500 |
commit | 9de1a56ac4a888289cd758d033cb02ece2bbca76 (patch) | |
tree | 47a43f0a8eb9a62ab72c53e6869f473dfeaafc27 /src/main/java | |
parent | c44dd099a432094a12131cf60dfc8a19f5aa8101 (diff) | |
download | gitblit-9de1a56ac4a888289cd758d033cb02ece2bbca76.tar.gz gitblit-9de1a56ac4a888289cd758d033cb02ece2bbca76.zip |
Tweak pull request ref display
Change-Id: I07d05eb45e40c233facfa3674f9528d2bda4b5d5
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/panels/RefsPanel.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/wicket/panels/RefsPanel.java b/src/main/java/com/gitblit/wicket/panels/RefsPanel.java index 1a763119..7a16f4a2 100644 --- a/src/main/java/com/gitblit/wicket/panels/RefsPanel.java +++ b/src/main/java/com/gitblit/wicket/panels/RefsPanel.java @@ -122,11 +122,13 @@ public class RefsPanel extends Panel { cssClass = "otherRef";
} else if (name.startsWith(Constants.R_PULL)) {
// Pull Request ref
- name = "pull #" + name.substring(Constants.R_PULL.length());
- if (name.endsWith("/head")) {
+ String num = name.substring(Constants.R_PULL.length());
+ if (num.endsWith("/head")) {
// strip pull request head from name
- name = name.substring(0, name.length() - "/head".length());
+ num = num.substring(0, num.length() - "/head".length());
}
+ name = "pr #" + num;
+ tooltip = "pull request #" + num;
cssClass = "pullRef";
} else if (name.startsWith(Constants.R_REMOTES)) {
// remote branch
|