Skip to content

Commit

Permalink
Showing the members of an interest in an ordered list
Browse files Browse the repository at this point in the history
  • Loading branch information
Tassos (nakano) Natsakis committed Apr 9, 2015
1 parent e652c22 commit 592d023
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/views/interests/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<div class="row">
<div class="col-md-10">
<div class="row">
<h2><%= @interest.title %></h2>
<div class="well col-md-4">
<% @user = User.find(@interest.initiator)%>
By: <%= link_to @user.name+' '+@user.surname, user_path(@user) %>
<br>
Address: <%= @interest.title %>@aludir.net
<br>
Created on: <%= @interest.created_at.strftime("%Y-%m-%d") %>
<br>
Description: <%= @interest.description %>
Expand All @@ -22,8 +25,8 @@
<h2>Members</h2>
<ol>
<% @interest.users.each do |u| %>
<%= link_to u.name+' '+u.surname, "/users/#{u.uuid}" %>
<% end %>
<li><%= link_to u.name+' '+u.surname, "/users/#{u.uuid}" %></li>
<% end %>
</ol>
</div>
</div>
Expand Down

0 comments on commit 592d023

Please sign in to comment.