Skip to content

Commit

Permalink
UPD: Обновляет посты, добавляет комментарии и лайки (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
owlscatcher committed Jun 4, 2024
1 parent 885cbf1 commit d4dd757
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
14 changes: 7 additions & 7 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
</style>
</head>

<header class="p-3 mb-3 border-bottom">
<div class="container">
<header class="py-3 mb-3 border-bottom">
<div class="container p-0">
<div class="d-flex flex-wrap align-items-center justify-content-center justify-content-lg-start">
<ul class="nav col-12 col-lg-auto me-lg-auto mb-2 justify-content-center mb-md-0">
<li><%= link_to t(".home"), root_path, class: "nav-link px-2 link-secondary" %></li>
<li><%= link_to t(".home"), root_path, class: "nav-link ps-0 link-secondary" %></li>
<% if user_signed_in? %>
<li>
<% if can? :read, :armstrong %>
<%= link_to armstrong_index_path, class: "nav-link px-2 link-secondary position-relative" do %>
<%= link_to armstrong_index_path, class: "nav-link link-secondary position-relative" do %>
<%= t(".ARMS") %>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger ">
β
Expand All @@ -45,7 +45,7 @@
</li>
<li>
<% if can? :read, Device %>
<%= link_to device_index_path, class: "nav-link px-2 link-secondary position-relative" do %>
<%= link_to device_index_path, class: "nav-link link-secondary position-relative" do %>
<%= t(".devices") %>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger ">
β
Expand All @@ -57,9 +57,9 @@
<li>
<% if can? :read, Inspection %>
<% if can? :new_tasks, Inspection %>
<%= link_to t(".inspections"), new_tasks_inspection_index_path, class: "nav-link px-2 link-secondary" %>
<%= link_to t(".inspections"), new_tasks_inspection_index_path, class: "nav-link link-secondary" %>
<% elsif can? :service_tasks, Inspection %>
<%= link_to t(".inspections"), service_tasks_inspection_index_path, class: "nav-link px-2 link-secondary" %>
<%= link_to t(".inspections"), service_tasks_inspection_index_path, class: "nav-link link-secondary" %>
<%end%>
<%end%>
</li>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ en:
updated: Updated
author: Author
comments: Comments
all_posts: All posts
shared:
post_footer:
published: published
Expand Down
4 changes: 3 additions & 1 deletion config/locales/ru.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ ru:
post: Пост
user: Пользователь
inspection: Инспекция
post_comment: Комментарий
attributes:
building:
id: ID
Expand Down Expand Up @@ -313,7 +314,7 @@ ru:
building_id: Здание
level: Уровень
description: Описание
posts:
post:
title: Заголовок
body: Текст записи
user: Автор
Expand Down Expand Up @@ -537,6 +538,7 @@ ru:
updated: Обновлен
author: Автор
comments: Комментарии
all_posts: Все посты
shared:
post_footer:
published: опубликовано
Expand Down

0 comments on commit d4dd757

Please sign in to comment.