mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-26 02:33:03 -04:00
Cache the footer
This commit is contained in:
committed by
Brenda Wallace
parent
b443435627
commit
b3ecfa36cd
@@ -1,12 +1,13 @@
|
||||
.container-fluid.text-center.text-md-left
|
||||
.row
|
||||
.col-md-4#footer1
|
||||
!= cms_snippet_content(:footer1)
|
||||
.col-md-4#footer2
|
||||
!= cms_snippet_content(:footer2)
|
||||
.col-md-4#footer3
|
||||
.badge.badge-success= link_to 'API', '/api-docs'
|
||||
!= cms_snippet_content(:footer3)
|
||||
%div{ style: "float: right;" }
|
||||
= link_to "https://opendefinition.org/ossd/" do
|
||||
= image_tag 'open_service.png', alt: "Open Service"
|
||||
- cache 'footer', expires: 1.week do
|
||||
.container-fluid.text-center.text-md-left
|
||||
.row
|
||||
.col-md-4#footer1
|
||||
!= cms_snippet_content(:footer1)
|
||||
.col-md-4#footer2
|
||||
!= cms_snippet_content(:footer2)
|
||||
.col-md-4#footer3
|
||||
.badge.badge-success= link_to 'API', '/api-docs'
|
||||
!= cms_snippet_content(:footer3)
|
||||
%div{ style: "float: right;" }
|
||||
= link_to "https://opendefinition.org/ossd/" do
|
||||
= image_tag 'open_service.png', alt: "Open Service"
|
||||
|
||||
Reference in New Issue
Block a user