Add souce code and issue tracker links

Closes #3
This commit is contained in:
cryptogopher 2024-05-12 23:21:30 +02:00
parent 1b6bda4e70
commit 927a8330bc
6 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="icon" viewBox="0 0 24 24"><path d="M20,8H17.19C16.74,7.2 16.12,6.5 15.37,6L17,4.41L15.59,3L13.42,5.17C12.96,5.06 12.5,5 12,5C11.5,5 11.05,5.06 10.59,5.17L8.41,3L7,4.41L8.62,6C7.87,6.5 7.26,7.21 6.81,8H4V10H6.09C6.03,10.33 6,10.66 6,11V12H4V14H6V15C6,15.34 6.03,15.67 6.09,16H4V18H6.81C8.47,20.87 12.14,21.84 15,20.18C15.91,19.66 16.67,18.9 17.19,18H20V16H17.91C17.97,15.67 18,15.34 18,15V14H20V12H18V11C18,10.66 17.97,10.33 17.91,10H20V8M16,15A4,4 0 0,1 12,19A4,4 0 0,1 8,15V11A4,4 0 0,1 12,7A4,4 0 0,1 16,11V15M14,10V12H10V10H14M10,14H14V16H10V14Z" /></svg>

After

Width:  |  Height:  |  Size: 603 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" id="icon" viewBox="0 0 24 24"><path d="M8,3A2,2 0 0,0 6,5V9A2,2 0 0,1 4,11H3V13H4A2,2 0 0,1 6,15V19A2,2 0 0,0 8,21H10V19H8V14A2,2 0 0,0 6,12A2,2 0 0,0 8,10V5H10V3M16,3A2,2 0 0,1 18,5V9A2,2 0 0,0 20,11H21V13H20A2,2 0 0,0 18,15V19A2,2 0 0,1 16,21H14V19H16V14A2,2 0 0,1 18,12A2,2 0 0,1 16,10V5H14V3H16Z" /></svg>

After

Width:  |  Height:  |  Size: 350 B

View File

@ -175,7 +175,6 @@ input[type=text]:read-only {
display: flex;
gap: 0.8em;
grid-area: header;
justify-content: flex-end;
}
@ -458,6 +457,9 @@ table.items select:focus-visible {
.centered {
margin: 0 auto;
}
.extendedright {
margin-right: auto;
}
[disabled] {
border-color: var(--color-border-gray) !important;
color: var(--color-border-gray) !important;

View File

@ -25,6 +25,9 @@
<body>
<header class="header">
<%= image_link_to t(".source_code"), "code-braces", source_code_url %>
<%= image_link_to t(".issue_tracker"), "bug-outline", issue_tracker_url,
class: "extendedright" %>
<% if user_signed_in? %>
<%= image_link_to_unless_current(current_user.email, "account-wrench-outline",
edit_user_registration_path) {} %>

View File

@ -42,8 +42,10 @@ en:
update: Update
layouts:
application:
issue_tracker: Report issue
revert: Revert
sign_out: Sign out
source_code: Get code
units: Units
users: Users
units:

View File

@ -24,4 +24,7 @@ Rails.application.routes.draw do
devise_scope :user do
root to: "devise/sessions#new"
end
direct(:source_code) { "https://gitea.michalczyk.pro/fixin.me/fixin.me" }
direct(:issue_tracker) { "https://gitea.michalczyk.pro/fixin.me/fixin.me/issues" }
end