File tree 2 files changed +11
-1
lines changed
kaffy_web/templates/layout
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ defmodule Kaffy.Utils do
9
9
env ( :admin_title , "Kaffy" )
10
10
end
11
11
12
+ @ doc """
13
+ Returns the :admin_footer config if present, otherwise returns default copyright.
14
+ """
15
+ @ spec footer ( ) :: String . t ( ) | { :safe , String . t ( ) }
16
+ def footer ( ) do
17
+ env ( :admin_footer , "Copyright © 2022 Kaffy. All rights reserved." )
18
+ end
19
+
12
20
@ doc """
13
21
Returns the static path to the asset.
14
22
"""
Original file line number Diff line number Diff line change 155
155
156
156
< footer class = "footer " >
157
157
< div class = "d-sm-flex justify-content-center justify-content-sm-between " >
158
- < span class = "text-muted text-center text-sm-left d-block d-sm-inline-block " > Copyright © 2022 Kaffy. All rights reserved.</ span >
158
+ <%= if copyright = Kaffy.Utils . footer ( ) do %>
159
+ < span class = "text-muted text-center text-sm-left d-block d-sm-inline-block " > <%= copyright %> </ span >
160
+ <% end %>
159
161
</ div >
160
162
</ footer >
161
163
You can’t perform that action at this time.
0 commit comments