diff options
author | Alex Lewis <alex.lewis001@gmail.com> | 2013-11-20 17:32:27 +0000 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-12-02 14:59:40 -0500 |
commit | e3733c7a39cb0249922c7042d6b21a10c2e21e53 (patch) | |
tree | dd267b3f3db5312f3569247fc4707089ead27178 /src/main/java/com/gitblit/wicket/WicketUtils.java | |
parent | 088b6f33671697dc8c15197b0a63eecf6d74f75f (diff) | |
download | gitblit-e3733c7a39cb0249922c7042d6b21a10c2e21e53.tar.gz gitblit-e3733c7a39cb0249922c7042d6b21a10c2e21e53.zip |
Add coloring modes to the blame page (issue-2, pull request #125)
Blame output is now colored according to Commit (default), Author or
Age. Both Commit and Author output uses random colors whereas Age uses a
single color with varying tints applied to indicate the age. White
indicates the eldest commit with the tint darkening as the commits get
younger.
Change-Id: I045458329af4765e91d5829ce3e8d28e21eeb66e
Diffstat (limited to 'src/main/java/com/gitblit/wicket/WicketUtils.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/WicketUtils.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/WicketUtils.java b/src/main/java/com/gitblit/wicket/WicketUtils.java index 8e119da8..f1f084c6 100644 --- a/src/main/java/com/gitblit/wicket/WicketUtils.java +++ b/src/main/java/com/gitblit/wicket/WicketUtils.java @@ -434,6 +434,16 @@ public class WicketUtils { parameterMap.put("pg", String.valueOf(pageNumber));
return new PageParameters(parameterMap);
}
+
+ public static PageParameters newBlameTypeParameter(String repositoryName,
+ String commitId, String path, String blameType) {
+ Map<String, String> parameterMap = new HashMap<String, String>();
+ parameterMap.put("r", repositoryName);
+ parameterMap.put("h", commitId);
+ parameterMap.put("f", path);
+ parameterMap.put("blametype", blameType);
+ return new PageParameters(parameterMap);
+ }
public static String getProjectName(PageParameters params) {
return params.getString("p", "");
|