From 917276f0fc8c0f6b3d063704f44dc8770413fb8f Mon Sep 17 00:00:00 2001 From: Michael Fogel Date: Fri, 9 Dec 2016 19:49:48 -0800 Subject: [PATCH] Fix links from dashboard to repos They were previously linking to the github api payload for each repo. --- .../org/whispersystems/bithub/entities/Repository.java | 8 ++++++++ .../org/whispersystems/bithub/views/dashboard.mustache | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/whispersystems/bithub/entities/Repository.java b/src/main/java/org/whispersystems/bithub/entities/Repository.java index a1caa47..9a9db8b 100644 --- a/src/main/java/org/whispersystems/bithub/entities/Repository.java +++ b/src/main/java/org/whispersystems/bithub/entities/Repository.java @@ -30,6 +30,10 @@ public class Repository { @NotEmpty private String url; + @JsonProperty + @NotEmpty + private String html_url; + @JsonProperty @NotNull private Author owner; @@ -59,6 +63,10 @@ public String getUrl() { return url; } + public String getHtmlUrl() { + return html_url; + } + public String getDescription() { return description; } diff --git a/src/main/resources/org/whispersystems/bithub/views/dashboard.mustache b/src/main/resources/org/whispersystems/bithub/views/dashboard.mustache index ac613f4..e093a37 100644 --- a/src/main/resources/org/whispersystems/bithub/views/dashboard.mustache +++ b/src/main/resources/org/whispersystems/bithub/views/dashboard.mustache @@ -146,7 +146,7 @@

{{description}}