philomena/lib/philomena_web/templates/page/show.html.slime

16 lines
344 B
Text
Raw Normal View History

2019-11-29 07:35:15 +01:00
h1 = @static_page.title
p
' Last updated
=> pretty_time(@static_page.updated_at)
p
2024-06-06 22:28:35 +02:00
=> link to: ~p"/pages/#{@static_page}/history" do
i.fa.fa-history>
' Revision history
= if can?(@conn, :edit, Philomena.StaticPages.StaticPage) do
2024-06-06 22:28:35 +02:00
=< link to: ~p"/pages/#{@static_page}/edit" do
i.fa.fa-edit>
' Edit
2019-11-29 07:35:15 +01:00
= @rendered