Invalid version, made all upper buttons be lined up in one header.
This commit is contained in:
@@ -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 {
|
||||
|
||||
3
app/controllers/redirections_controller.rb
Normal file
3
app/controllers/redirections_controller.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
class RedirectionsController < ApplicationController
|
||||
def index
|
||||
end
|
||||
@@ -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) {} %>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user