remove cms, small fix
This commit is contained in:
parent
a9967a0127
commit
125117b71f
@ -2,7 +2,7 @@ module MembersHelper
|
||||
|
||||
def image_for(someone , classes = "")
|
||||
if someone.picture.blank?
|
||||
image = asset_url("no_image")
|
||||
image = asset_url("no_image.png")
|
||||
else
|
||||
image = someone.picture.url
|
||||
end
|
||||
|
@ -8,9 +8,9 @@ class Member < ApplicationRecord
|
||||
has_many :stories
|
||||
|
||||
def admin
|
||||
true
|
||||
self.email == "torsten@villataika.fi"
|
||||
end
|
||||
def admin?
|
||||
true
|
||||
self.email == "torsten@villataika.fi"
|
||||
end
|
||||
end
|
||||
|
@ -59,7 +59,7 @@
|
||||
.pt-8.mt-8.border-t.border-gray-100
|
||||
.grid.grid-cols-1.gap-8.lg:grid-cols-2
|
||||
%p.text-xs.text-left.text-gray-500
|
||||
2020-22. Osuuskunta Hub Feenix. All rights reserved.
|
||||
2020-23. Osuuskunta Hub Feenix. All rights reserved.
|
||||
%nav{"aria-label" => "Footer Navigation - Support"}
|
||||
%ul.flex.flex-wrap.justify-start.gap-4.text-xs.lg:justify-end
|
||||
%li
|
||||
|
@ -4,7 +4,7 @@
|
||||
Forum
|
||||
%a.block.rounded-lg.px-4.py-2.text-sm.text-gray-500.hover:bg-gray-50.hover:text-gray-700{:href => main_app.member_path(current_member), :role => "menuitem"}
|
||||
Profile
|
||||
- if current_member.admin?
|
||||
- unless Rails.env.production?
|
||||
%a.block.rounded-lg.px-4.py-2.text-sm.text-gray-500.hover:bg-gray-50.hover:text-gray-700{:href => merged.pages_path(), :role => "menuitem"}
|
||||
CMS
|
||||
= form_tag( main_app.destroy_member_session_path , {method: :delete } ) do
|
||||
|
Loading…
Reference in New Issue
Block a user