Invalid version, made all upper buttons be lined up in one header.

This commit is contained in:
2024-05-12 00:20:08 +02:00
parent 8a526e3724
commit 4fba5579ed
4 changed files with 9 additions and 11 deletions

View File

@@ -175,13 +175,6 @@ input[type=text]:read-only {
display: flex;
gap: 0.8em;
grid-area: header;
margin-left: auto;
}
.lheader {
display: flex;
gap: 0.8em;
grid-area: header;
}
.navigation {

View File

@@ -0,0 +1,3 @@
class RedirectionsController < ApplicationController
def index
end

View File

@@ -24,12 +24,10 @@
</head>
<body>
<div class="lheader">
<%= image_link_to(t(:get_code), "code-braces", "https://gitea.michalczyk.pro/fixin.me/fixin.me") %>
<%= image_link_to(t(:report_issue), "bug-outline", "https://gitea.michalczyk.pro/fixin.me/fixin.me/issues") %>
</div>
<header class="header">
<%= image_link_to_unless_current(t(:get_code), "code-braces", redirection_path) {} %>
<%= image_link_to(t(:report_issue), "bug-outline", "https://gitea.michalczyk.pro/fixin.me/fixin.me/issues", style: "margin-right: auto") %>
<% if user_signed_in? %>
<%= image_link_to_unless_current(current_user.email, "account-wrench-outline",
edit_user_registration_path) {} %>

View File

@@ -24,4 +24,8 @@ Rails.application.routes.draw do
devise_scope :user do
root to: "devise/sessions#new"
end
resources :redirections, only: [:show] do
get 'https://gitea.michalczyk.pro/fixin.me/fixin.me', to: 'redirections#index'
end
end