From 1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 12 May 2025 14:01:39 -0400 Subject: Markdownify streams & updates Also added an edit link to updates. --- app/views/updates/_update.html.haml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/views/updates/_update.html.haml') diff --git a/app/views/updates/_update.html.haml b/app/views/updates/_update.html.haml index 57f4158..3647ca2 100644 --- a/app/views/updates/_update.html.haml +++ b/app/views/updates/_update.html.haml @@ -1,3 +1,6 @@ %section.stream-update.entry-content{ id: "update-#{update.id}" } - %time.update-posted= update.created_at.strftime("%B #{update.created_at.day.ordinalize}, %Y at %-I:%M:%S%P") - = update.body.html_safe + %header.update-posted + %time= update.created_at.strftime("%B #{update.created_at.day.ordinalize}, %Y at %-I:%M:%S%P") + - if user_signed_in? and !update.new_record? + = link_to "Edit", edit_admin_stream_update_path(update.stream, update), :class => "update-edit-link" + = markdown(update.body) -- cgit 1.4.1