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