#6 - cleaning branch
This commit is contained in:
parent
fffb9f76fb
commit
0f4926ddd8
@ -38,23 +38,12 @@ public class GitExtractorController {
|
||||
return "filtering";
|
||||
}
|
||||
|
||||
/*@PostMapping("/sendRepo")
|
||||
public String sendRepo(@ModelAttribute RepoForm repoForm, Model model) {
|
||||
model.addAttribute("filterForm", new FilterForm(repoForm.getRepo()));
|
||||
if (repoForm.getBranch() == null) {
|
||||
return "newRepo";
|
||||
} else {
|
||||
return "filtering";
|
||||
}
|
||||
}*/
|
||||
|
||||
@PostMapping("/sendFilter")
|
||||
public String sendFilter(@ModelAttribute FilterForm filterForm, Model model) {
|
||||
if (filterForm.getFilter() == null || filterForm.getFilter().isEmpty()) {
|
||||
model.addAttribute("error", "'Строка' не должно быть пустым");
|
||||
return "filtering";
|
||||
}
|
||||
// model.addAttribute("commits", filteringService.getCommits(filterForm.getFilter(), filterForm.getFilter()));
|
||||
return "resultRepo";
|
||||
}
|
||||
|
||||
@ -62,7 +51,6 @@ public class GitExtractorController {
|
||||
public String getBranch(@ModelAttribute RepoForm repoForm, Model model) {
|
||||
try {
|
||||
gitRepositoryService.cloneOrUpdateRepo(repoForm.getRepo());
|
||||
// model.addAttribute("branches", gitRepositoryService.getBranches(repoForm.getRepo()));
|
||||
List<Branch> list = gitRepositoryService.getBranches(repoForm.getRepo());
|
||||
model.addAttribute("branches", list);
|
||||
return "newRepo";
|
||||
|
@ -12,10 +12,6 @@
|
||||
<p><b>Фильтровать данные:</b><Br></p>
|
||||
По автору
|
||||
<select class="selectpicker" data-live-search="true">
|
||||
<!-- <option th:each="author : ${authors}"-->
|
||||
<!-- th:value="${author.name}"-->
|
||||
<!-- th:utext="${author.name}"/>-->
|
||||
<!-- </option>-->
|
||||
</select>
|
||||
Дата с
|
||||
<select class="selectpicker" data-live-search="true">
|
||||
|
Loading…
Reference in New Issue
Block a user