Improving User Index CSS #179

Merged
merged 2 commits into from Nov 17, 2013
View
17 app/assets/stylesheets/users.css.scss
@@ -20,4 +20,19 @@
}
}
}
-}
+}
+
+.title {
+ display: inline;
+ margin-right: 10px;
+ margin: 0px;
+}
+
+#user-list {
+ li {
+ list-style-type: none;
+ padding-bottom: 3px;
+ padding-top: 3px;
+ }
+}
+
View
8 app/views/users/index.html.haml
@@ -1,10 +1,8 @@
=link_to "Create a diffusion", mailer_path(:user => User.all)
-%ul
+%ul#user-list
- @users.each do |user|
%li
- .info
- .title= user.username
- .categories
- .btn.success= link_to "Email him", mailer_path(:user => user)
+ .title= user.username
+ = link_to "Email him", mailer_path(:user => user), :class => "btn small info"
= will_paginate @users