diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-05-12 14:01:39 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-05-12 14:01:39 -0400 |
commit | 1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af (patch) | |
tree | bda6326830ab28f393fac6b8ac5215e207e37c36 /app/views/updates/_update.html.haml | |
parent | 782df588c95e2c998081ca5bb65d2302bb5ba155 (diff) | |
download | thoughts-1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af.tar.gz thoughts-1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af.tar.bz2 thoughts-1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af.zip |
Markdownify streams & updates
Also added an edit link to updates.
Diffstat (limited to 'app/views/updates/_update.html.haml')
-rw-r--r-- | app/views/updates/_update.html.haml | 7 |
1 files changed, 5 insertions, 2 deletions
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 @@ | |||
1 | %section.stream-update.entry-content{ id: "update-#{update.id}" } | 1 | %section.stream-update.entry-content{ id: "update-#{update.id}" } |
2 | %time.update-posted= update.created_at.strftime("%B #{update.created_at.day.ordinalize}, %Y at %-I:%M:%S%P") | 2 | %header.update-posted |
3 | = update.body.html_safe | 3 | %time= update.created_at.strftime("%B #{update.created_at.day.ordinalize}, %Y at %-I:%M:%S%P") |
4 | - if user_signed_in? and !update.new_record? | ||
5 | = link_to "Edit", edit_admin_stream_update_path(update.stream, update), :class => "update-edit-link" | ||
6 | = markdown(update.body) | ||