From c764265af2d551b0ba903b14f9949bb2bab1b2a8 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Fri, 30 Dec 2011 10:40:19 +0000 Subject: [PATCH] Improve readability in some views by adding empty lines --- app/views/home/index.html.haml | 2 ++ app/views/playlists/index.html.haml | 1 + app/views/tracks/show.html.haml | 1 + app/views/users/new.html.haml | 1 + 4 files changed, 5 insertions(+) diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml index 1ba2424..bd56b72 100644 --- a/app/views/home/index.html.haml +++ b/app/views/home/index.html.haml @@ -1,7 +1,9 @@ = link_to 'Add a track', new_track_path + %ul - @playlists.each do |p| %li= p.name + %ul - @tracks.each do |t| %li= t.name diff --git a/app/views/playlists/index.html.haml b/app/views/playlists/index.html.haml index 86cc038..d9abd60 100644 --- a/app/views/playlists/index.html.haml +++ b/app/views/playlists/index.html.haml @@ -1,4 +1,5 @@ = link_to 'Create playlist', new_playlist_path + %ul - @playlists.each do |p| %li diff --git a/app/views/tracks/show.html.haml b/app/views/tracks/show.html.haml index a8683c8..4f5ba18 100644 --- a/app/views/tracks/show.html.haml +++ b/app/views/tracks/show.html.haml @@ -1,4 +1,5 @@ %h1= @track.name + - if @track.sound? %audio{:src => sound_path(@track.sound), :controls => true, :autoplay => true} Your browser does not support the audio element diff --git a/app/views/users/new.html.haml b/app/views/users/new.html.haml index 639f8ca..32879de 100644 --- a/app/views/users/new.html.haml +++ b/app/views/users/new.html.haml @@ -3,6 +3,7 @@ %ul - @user.errors.full_messages.each do |m| %li= m + %table %tbody %tr