From 086e4bbef2ee30e1ba1ec9608999963d48135e50 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sat, 4 Feb 2012 12:29:23 -0500 Subject: [PATCH] Float the edit link --- app/assets/stylesheets/habits.css.scss | 4 +++- app/views/habits/_habit.html.erb | 2 +- app/views/layouts/application.html.erb | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/habits.css.scss b/app/assets/stylesheets/habits.css.scss index ea594b060e..360043d712 100644 --- a/app/assets/stylesheets/habits.css.scss +++ b/app/assets/stylesheets/habits.css.scss @@ -40,4 +40,6 @@ text-decoration:none; } -.up, .down { font-weight: bold; } \ No newline at end of file +.up, .down { font-weight: bold; } + +.edit { float:right; } diff --git a/app/views/habits/_habit.html.erb b/app/views/habits/_habit.html.erb index d456bd9dbb..d8213ed172 100644 --- a/app/views/habits/_habit.html.erb +++ b/app/views/habits/_habit.html.erb @@ -12,5 +12,5 @@ <%= habit.name %> <% end %> <% end %> - <%= link_to 'Edit', edit_habit_path(habit) %> + <%= link_to 'Edit', edit_habit_path(habit), :class=>'edit' %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 618e999b3b..907b2f2405 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -11,7 +11,7 @@