From 1d144019a4b28f876ae68e0d1860a076bf491597 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Tue, 2 Sep 2014 11:28:15 +0300 Subject: [PATCH] Move the track list elements to a partial --- app/views/home/_track.html.slim | 1 + app/views/home/index.html.slim | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 app/views/home/_track.html.slim diff --git a/app/views/home/_track.html.slim b/app/views/home/_track.html.slim new file mode 100644 index 0000000..2283ac2 --- /dev/null +++ b/app/views/home/_track.html.slim @@ -0,0 +1 @@ +li = track.name diff --git a/app/views/home/index.html.slim b/app/views/home/index.html.slim index 9cbece4..470ef05 100644 --- a/app/views/home/index.html.slim +++ b/app/views/home/index.html.slim @@ -2,11 +2,10 @@ h1.entry-title = t :home_title, conference: @current_conference.title = simple_format @current_conference.description -p =t :what_we_ask +p = t :what_we_ask ul - - for track in @current_conference.tracks - li = track.name + = render partial: 'track', collection: @current_conference.tracks .centered.large => link_to t(:submit_lecture), new_lecture_path, class: 'btn-link btn-link-large'