diff options
author | James Moger <james.moger@gitblit.com> | 2013-05-09 22:43:57 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-05-09 22:43:57 -0400 |
commit | 828add77e71a567be98490403bb92d6f1afb9930 (patch) | |
tree | f6211abf4a8ce9eb19ab56d7cf2f75b65afac5ea /src/main/java/com/gitblit/models/GitClientApplication.java | |
parent | 0b086146ffd70574b1069056e35bb11a1d782407 (diff) | |
download | gitblit-828add77e71a567be98490403bb92d6f1afb9930.tar.gz gitblit-828add77e71a567be98490403bb92d6f1afb9930.zip |
Implemented application menus for repository url panel
Diffstat (limited to 'src/main/java/com/gitblit/models/GitClientApplication.java')
-rw-r--r-- | src/main/java/com/gitblit/models/GitClientApplication.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/models/GitClientApplication.java b/src/main/java/com/gitblit/models/GitClientApplication.java index dbdfa395..fd530593 100644 --- a/src/main/java/com/gitblit/models/GitClientApplication.java +++ b/src/main/java/com/gitblit/models/GitClientApplication.java @@ -31,13 +31,15 @@ public class GitClientApplication implements Serializable { private static final long serialVersionUID = 1L;
public String name;
+ public String title;
+ public String description;
+ public String legal;
+ public String icon;
public String cloneUrl;
public String command;
public String productUrl;
- public String attribution;
- public boolean isApplication = true;
- public boolean isActive = true;
public String[] platforms;
+ public boolean isActive;
public boolean allowsPlatform(String p) {
if (ArrayUtils.isEmpty(platforms)) {
@@ -55,4 +57,9 @@ public class GitClientApplication implements Serializable { }
return false;
}
+
+ @Override
+ public String toString() {
+ return StringUtils.isEmpty(title) ? name : title;
+ }
}
\ No newline at end of file |