return addNavigation(model, "applicationScmCommits");
}
@RequestMapping(value = "/{id}/scm/downloads", method = RequestMethod.GET)
public String getDownloads(@PathVariable Long id, Model model) {
Application app = applicationService.findOne(id);
// FIXME Currently assuming GitHub.
GitHubScm scm = (GitHubScm) app.getScm();
List<GitHubDownload> downloads = gitHub.repoOperations().getDownloads(scm.getUser(), scm.getRepo());
model.addAttribute(app);
model.addAttribute("entity", app);
model.addAttribute("downloadList", downloads);