about summary refs log tree commit diff stats
path: root/app/views/updates/_update.html.haml
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-05-12 14:01:39 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-05-12 14:01:39 -0400
commit1d78ba374d5fa61ddba63db7a1c4c159e3e6a7af (patch)
treebda6326830ab28f393fac6b8ac5215e207e37c36 /app/views/updates/_update.html.haml
parent782df588c95e2c998081ca5bb65d2302bb5ba155 (diff)
downloadthoughts-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.haml7
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)