From 024830a6eab2789eca893ccb8a5b60448f4145ea Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 11 Jul 2020 02:45:42 -0700 Subject: [PATCH] add view/edit links to timelines#index --- app/views/timelines/index.html.erb | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/app/views/timelines/index.html.erb b/app/views/timelines/index.html.erb index 78c2c27b..a3779972 100644 --- a/app/views/timelines/index.html.erb +++ b/app/views/timelines/index.html.erb @@ -20,8 +20,8 @@ <%= link_to edit_timeline_path(timeline) do %>
-
- <%= image_tag timeline.random_public_image(format: :medium), style: 'height: 140px' %> +
+ <%= image_tag timeline.random_public_image(format: :medium) %> <%= timeline.name.presence || 'Untitled Timeline' %> @@ -52,6 +52,17 @@
+
+ <%= link_to timeline_path(timeline), class: 'blue-text left' do %> + <%= Timeline.icon %> + View + <% end %> + <%= link_to edit_timeline_path(timeline), class: 'green-text right' do %> + edit + Edit + <% end %> +
+
<% end %> @@ -71,6 +82,11 @@

<% end %> +
+
+
+
+ <% elsif @timelines.empty? %>