Commit a351b61
Changed files (2)
app
helpers
views
needs
app/helpers/application_helper.rb
@@ -1,5 +1,5 @@
module ApplicationHelper
- def gravatar_for(user, options = { size: 80 })
+ def gravatar_for(user, options = { size: 40 })
gravatar_id = Digest::MD5::hexdigest(user.email.downcase)
image_tag("https://secure.gravatar.com/avatar/#{gravatar_id}?s=#{options[:size]}&d=mm", alt: user.name, class: 'gravatar')
end
app/views/needs/index.html.erb
@@ -37,25 +37,25 @@ $(function() {
<div class="row">
<div class="span12">
- <h1>Needs</h1>
<table class="table">
<tr>
- <th>Person</th>
- <th>Description</th>
+ <th></th>
+ <th></th>
+ <th>Need</th>
+ <th>Tags</th>
<th></th>
</tr>
<% @needs.each do |need| %>
- <tr>
- <td><%= gravatar_for(need.user) %></td>
- <td>
- I need <%= need.description %>
- <br />
- <span> <i class="icon-tags"></i> </span>
+ <tr>
+ <td><%= gravatar_for(need.user) %></td>
+ <td><%= need.user.name %></td>
+ <td> I need <%= need.description %></td>
+ <td><span> <i class="icon-tags"></i> </span>
<% need.tags.each do |tag| -%>
<a href=""><span class="label"><%= tag.name %></span></a>
<% end -%>
</td>
- <td><%= link_to "I can help...", need_path(need), :class => "btn" %></td>
+ <td><%= link_to "Help", need_path(need), :class => "btn" %></td>
</tr>
<% end %>
</table>