software_information.html.erb
1.67 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
<div class="vcard">
<% if block.owner.software_info.nil? %>
<%= _("This community needs a software to use this block") %>
<% else %>
<table id="software-information-block-table">
<tr>
<td width="30%" id="col-profile-big-image">
<div class="profile-big-image">
<div class="profile-big-image-inner1">
<span class="profile-big-image-inner2">
<%= link_to profile_image(block.owner, :big) +"\n", profile.url %>
</span>
<div class='admin-link'>
<%= link_to _('Control panel'), block.owner.admin_url %>
</div>
</div>
</div>
</td>
<td width="70%" id="col-software-name">
<h1>
<%= _("#{block.owner.software_info.acronym} - ") unless block.owner.software_info.acronym.blank? %>
<%= _("#{block.owner.name}") %>
</h1>
<b>
<%= block.owner.software_info.finality %>
</b>
</td>
</tr>
<tr>
<td colspan="2">
<% identifier_name = block.owner.software_info.acronym.blank? ? block.owner.name : block.owner.software_info.acronym %>
<%= _("For more detailed information see ") %>
<%= link_to(_("#{block.owner.name} profile"), {:controller => 'profile', :action => "index", :profile => block.owner.identifier}) %>
</td>
</tr>
<tr>
<td>
<i>
<%= _("Licensed by ") %>
<%= link_to block.owner.software_info.license_info.version, block.owner.software_info.license_info.link %>
</i>
</td>
<td align="right">
<%= render "blocks/profile_info_actions/join_leave_community" %>
</td>
</tr>
</table>
<% end %>