search function

This commit is contained in:
Andreas Stephanides
2014-02-08 16:39:56 +01:00
parent 05dbffd4f6
commit d3ac7504dc
11 changed files with 122 additions and 38 deletions

View 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>

View File

@@ -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 %>