#74 some code fixes

This commit is contained in:
Anton Romanov 2019-04-16 13:41:10 +04:00
parent 95f70f425a
commit d81d1cf72c
3 changed files with 840 additions and 864 deletions

View File

@ -23,15 +23,11 @@ public class TagService {
return tags return tags
.stream() .stream()
.map(tag -> { .map(tag -> {
if (tag.getId() != null) { if (tag.getId() != null) {
return getExistById(tag); return getExistById(tag);
} else { } else {
Tag existTag = isExistByName(tag.getTagName()); Tag existTag = isExistByName(tag.getTagName());
if (existTag != null) { return existTag != null ? existTag : create(tag);
return existTag;
} else {
return create(tag);
}
} }
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }

File diff suppressed because it is too large Load Diff

View File

@ -10,12 +10,6 @@
<!-- Portfolio Grid --> <!-- Portfolio Grid -->
<section class="bg-light" id="portfolio"> <section class="bg-light" id="portfolio">
<div class="container"> <div class="container">
<div class="row">
<div class="col-lg-12 text-center">
<h2 class="section-heading text-uppercase">Work hard</h2>
<h3 class="section-subheading text-muted">sometimes</h3>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-md-4 col-sm-6 portfolio-item"> <div class="col-md-4 col-sm-6 portfolio-item">
<a class="portfolio-link" href="./papers/papers"> <a class="portfolio-link" href="./papers/papers">