Skip to content

Commit 44071cb

Browse files
committed
Merge pull request #179 from hcarreras/master
Improving User Index CSS
2 parents f2e2de8 + bf17251 commit 44071cb

2 files changed

Lines changed: 19 additions & 6 deletions

File tree

app/assets/stylesheets/users.css.scss

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,19 @@
2020
}
2121
}
2222
}
23-
}
23+
}
24+
25+
.title {
26+
display: inline;
27+
margin-right: 10px;
28+
margin: 0px;
29+
}
30+
31+
#user-list {
32+
li {
33+
list-style-type: none;
34+
padding-bottom: 3px;
35+
padding-top: 3px;
36+
}
37+
}
38+

app/views/users/index.html.haml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
=link_to "Create a diffusion", mailer_path(:user => User.all)
2-
%ul
2+
%ul#user-list
33
- @users.each do |user|
44
%li
5-
.info
6-
.title= user.username
7-
.categories
8-
.btn.success= link_to "Email him", mailer_path(:user => user)
5+
.title= user.username
6+
= link_to "Email him", mailer_path(:user => user), :class => "btn small info"
97

108
= will_paginate @users

0 commit comments

Comments
 (0)