Add token links in footer
This commit is contained in:
parent
39d1a5d6f9
commit
eb0a131403
@ -54,6 +54,7 @@ header
|
||||
align-items: center
|
||||
background: #00ff0060
|
||||
border-radius: 0 18em 0 0
|
||||
font-size: 2em
|
||||
|
||||
|
||||
#home-headline, .home-headline
|
||||
@ -157,6 +158,13 @@ footer
|
||||
img
|
||||
width: 4em
|
||||
height: 4em
|
||||
.footer-tokens
|
||||
text-align: left
|
||||
a
|
||||
padding: 2em
|
||||
background: #e1b02733
|
||||
box-shadow: 0px 0px 8px #00000042
|
||||
border-radius: 12em
|
||||
|
||||
#skyspaces
|
||||
width: 100%
|
||||
|
||||
@ -5,6 +5,7 @@ class ApplicationController < ActionController::Base
|
||||
protect_from_forgery unless: -> { request.format.json? }
|
||||
# skip_before_action :verify_authenticity_token
|
||||
after_action :flash_to_http_header
|
||||
before_action :get_footer_tokens
|
||||
|
||||
if (Rails.env.development? || Rails.env.test?)
|
||||
include Pundit
|
||||
@ -14,6 +15,10 @@ class ApplicationController < ActionController::Base
|
||||
|
||||
private
|
||||
|
||||
def get_footer_tokens
|
||||
@footer_tokens = authorize Token.all
|
||||
end
|
||||
|
||||
def add_body_css_class(css_class)
|
||||
@body_css_classes ||= []
|
||||
@body_css_classes << css_class
|
||||
|
||||
@ -1 +1,5 @@
|
||||
-# = link_to (image_tag "telegram-logo.png", height: 32, width: 32), "https://t.me/+IEp-tAetjYozYWM5"
|
||||
-# - @tokens = Token.all
|
||||
.footer-tokens
|
||||
- @footer_tokens.each do |token|
|
||||
= link_to token.name, token
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user