]> git.openstreetmap.org Git - rails.git/commitdiff
Add block tab to show block pages
authorAnton Khorev <tony29@yandex.ru>
Mon, 8 Apr 2024 10:26:38 +0000 (13:26 +0300)
committerAnton Khorev <tony29@yandex.ru>
Mon, 8 Apr 2024 10:26:38 +0000 (13:26 +0300)
app/views/user_blocks/_navigation.html.erb
config/locales/en.yml

index a84ba133985c0b4331f339f669f1fc9296358547..f53f5cf2806bfc022e10ffed06518095c0fdcf6f 100644 (file)
                   :class => ["nav-link", { :active => action_name == "blocks_by" }] %>
     </li>
   <% end %>
                   :class => ["nav-link", { :active => action_name == "blocks_by" }] %>
     </li>
   <% end %>
+  <% if @user_block %>
+    <li class="nav-item">
+      <%= link_to t(".block", :id => @user_block.id),
+                  user_block_path(@user_block),
+                  :class => ["nav-link", { :active => action_name == "show" }] %>
+    </li>
+  <% end %>
 </ul>
 </ul>
index 0634fc2a0d1f52b1000462318c6bf42b0620d422..f9117ca1cc89add7669440805fbb59138644c7b0 100644 (file)
@@ -2991,6 +2991,7 @@ en:
       blocks_on_user: "Blocks on %{user}"
       blocks_by_me: "Blocks by Me"
       blocks_by_user: "Blocks by %{user}"
       blocks_on_user: "Blocks on %{user}"
       blocks_by_me: "Blocks by Me"
       blocks_by_user: "Blocks by %{user}"
+      block: "Block #%{id}"
   user_mutes:
     index:
       title: "Muted Users"
   user_mutes:
     index:
       title: "Muted Users"