Skip to content

Commit

Permalink
fix show comment form (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
usernaimandrey committed Apr 19, 2023
1 parent 8698ab0 commit 7a59514
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/views/web/resumes/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@
div
= link_to resume_comment_path(@resume, comment), method: :delete, data: { confirm: t('confirm') } do
span.bi.bi-x-lg.text-secondary
hr.my-2
a.d-block.text-muted(href="#new_resume_comment-#{@resume.id}" data-bs-toggle="collapse")
= t('.add_a_comment')
.collapse(id="new_resume_comment-#{@resume.id}")
- if user_signed_in?
= render 'web/shared/comment_form', comment: @resume.comments.build, url: resume_comments_path(@resume)
- else
= render 'comment_requires'
hr.my-2
a.d-block.text-muted(href="#new_resume_comment-#{@resume.id}" data-bs-toggle="collapse")
= t('.add_a_comment')
.collapse(id="new_resume_comment-#{@resume.id}")
- if user_signed_in?
= render 'web/shared/comment_form', comment: @resume.comments.build, url: resume_comments_path(@resume)
- else
= render 'comment_requires'

- if @resume_answers.any?
h3.mb-3 = t('.recomendations')
Expand Down
2 changes: 2 additions & 0 deletions config/locales/ru.views.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ ru:
header: Упс, а тут пусто
explanation: Такое бывает, когда страницу удалили или в адрес случайно закралась ошибка. Но ничего страшного, можно просто тыкнуть на любой пункт меню сверху и попасть-таки в нужное место.
shared:
answer:
add_a_comment: Добавить комментарий
resume_filter:
directions: Выберите направление
name: Название резюме
Expand Down

0 comments on commit 7a59514

Please sign in to comment.