From 0b799859a607430ea497a085d3abcb077c8214dd Mon Sep 17 00:00:00 2001 From: Tina Huang Date: Wed, 28 Jan 2015 21:14:58 -1000 Subject: [PATCH] Links in to the repositories on the main dashboard should go to the html urls and not the api urls. // FREEBIE --- .../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..227d4cd 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 getHtml_url() { + 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..6edd4d7 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}}