_full_community.html.erb
1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<% software = community.software_info %>
<li class="search-software-item">
<div class="search-software-item-column-left">
<%= profile_image_link community, :portrait, 'div', community.send(@order + '_label') + show_date(community.created_at) %>
</div>
<div class="search-software-item-column-right">
<div class="search-software-content-block">
<span>
<% link_name = software.acronym.blank? ? community.name : "#{software.acronym} - #{community.name}" %>
<h4>
<%= link_to_homepage(link_name, community.identifier) %>
</h4>
</span>
<span class="search-content-result">
<% body_stripped = strip_tags(software.finality) %>
<%= excerpt(body_stripped, body_stripped.first(3), 200) if body_stripped %>
</span>
</div>
<br />
<div class="search-software-content-block">
<span>
<b>
<%= _("Software Categories") %>:
</b>
</span>
<% if !community.categories.empty? %>
<ul id="categories-list">
<% community.categories.each do |category| %>
<li>
<%= link_to _("#{category.name}"), {
:controller => :search,
:action => :software_infos,
:selected_categories_id => [category.id],
:software_type => params[:software_type]
} %>
</li>
<% end %>
</ul>
<% else %>
<span>
<%= _("This software doesn't have categories") %>
</span>
<% end %>
</div>
</div>
<hr class="clearfix" />
</li>