Skip to content

Commit

Permalink
add button to send message
Browse files Browse the repository at this point in the history
  • Loading branch information
brickgao committed Jul 28, 2016
1 parent 994f922 commit 16aff70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ input[type=submit] {
border-radius: 2px;
padding: .5em 1em;
border: 0 rgba(0,0,0,0);
&.margin-less {
margin: .2em 0;
}
&.primary-button {
background-color: #0078E7;
color: #FFF;
Expand Down
5 changes: 5 additions & 0 deletions app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<li><strong>Name</strong>: <%= @user.name %></li>
<li><strong>Email</strong>: <%= @user.email %></li>
<li>No. <%= @user.id %>, join at <%= @user.created_at %></li>
<li>
<a href="/messages/new?to_id=<%= @user.id %>" target="_self">
<button class="kata-button margin-less primary-button">Send message to him</button>
</a>
</li>
</ul>
</div>
</div>
Expand Down

0 comments on commit 16aff70

Please sign in to comment.