forked from bofh/fetsite
search function
This commit is contained in:
18
app/views/fetprofiles/_compact.html.erb
Normal file
18
app/views/fetprofiles/_compact.html.erb
Normal file
@@ -0,0 +1,18 @@
|
||||
<div class="media">
|
||||
|
||||
<span class="pull-left">
|
||||
<%= image_tag fetprofile.picture.portrait.url %>
|
||||
</span>
|
||||
|
||||
<div class="media-body">
|
||||
<h2><%= fetprofile.name %></h2>
|
||||
|
||||
<p><%= fetprofile.fetmail %></p>
|
||||
<% if false %>
|
||||
<p><%= fetprofile.desc %></p>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
|
||||
<div class="media">
|
||||
<div class="pull-left">
|
||||
<%= image_tag fetprofile.picture.portrait.url %>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
|
||||
<h2><%= link_to fetprofile.name, fetprofile %></h2>
|
||||
<p><%= fetprofile.fetmail %></p>
|
||||
<p><%= fetprofile.desc.split(" ")[1..20].join(" ") %></p>
|
||||
<p><%= fetprofile.active %> </p>
|
||||
</div>
|
||||
|
||||
<%= link_to fetprofile, {class: :linkbox} do %>
|
||||
<%= render :partial=>"fetprofiles/compact", :locals=>{:fetprofile=>fetprofile} %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user