_software_tab.html.erb
4.4 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<%= javascript_include_tag "mpog-validations" %>
<table>
<tr>
<th colspan='2'><%= _('Software Information')%></th>
</tr>
<%= display_mpog_field(_('Name:'), profile, :name, true) %>
<%= content_tag('tr', content_tag('td', _("Adherent to e_mag:")) + content_tag('td', profile.software_info.e_mag ? _("Yes") : _("No"))) %>
<%= content_tag('tr', content_tag('td', _("Adherent to icp_brasil:")) + content_tag('td', profile.software_info.icp_brasil ? _("Yes") : _("No"))) %>
<%= content_tag('tr', content_tag('td', _("Adherent to e_ping:")) + content_tag('td', profile.software_info.e_ping ? _("Yes") : _("No"))) %>
<%= content_tag('tr', content_tag('td', _("Adherent to e_arq:")) + content_tag('td', profile.software_info.e_arq ? _("Yes") : _("No"))) %>
<%= content_tag('tr', content_tag('td', _("Internacionalizable:")) + content_tag('td', profile.software_info.intern ? _("Yes") : _("No"))) %>
<%= display_mpog_field(_('Operating Platform:'), profile.software_info, :operating_platform, true) %>
<%= display_mpog_field(_('Demonstration URL:'), profile.software_info, :demonstration_url, true) %>
<%= display_mpog_field(_('Acronym:'), profile.software_info, :acronym, true) %>
<%= display_mpog_field(_('Objectives:'), profile.software_info, :objectives, true) %>
<%= display_mpog_field(_('Features:'), profile.software_info, :features, true) %>
<%= content_tag('tr', content_tag('td', _("License"))) %>
<%= display_mpog_field(_('Version:'), profile.software_info.license_info, :version, true) %>
<%= display_mpog_field(_('Link:'), profile.software_info.license_info, :link, true) %>
</table>
<table>
<tr>
<td><a href="#" class="libraries-button-show button with-text icon-add"><%= _('Show Libraries') %></a>
<a href="#" class="libraries-button-hide button with-text icon-remove"><%= _('Hide Libraries') %></a>
</td>
</tr>
<tr>
<td>
<table class = "libraries-info dynamic-table">
<%= content_tag('tr', content_tag('td', _("Libraries")) + content_tag('td', '')) %>
<% profile.software_info.libraries.each do |library| %>
<%= display_mpog_field(_('Name:'), library, :name, true) %>
<%= display_mpog_field(_('Version:'), library, :version, true) %>
<%= display_mpog_field(_('License:'), library, :license, true) %>
<% end %>
</table>
</td>
</tr>
<tr>
<td><a href="#" class="database-button-show button with-text icon-add"><%= _('Show Database') %></a>
<a href="#" class="database-button-hide button with-text icon-remove"><%= _('Hide Database') %></a>
</td>
</tr>
<tr>
<td>
<table class = "database-info dynamic-table">
<%= content_tag('tr', content_tag('td', _("Software Databases")) + content_tag('td', '')) %>
<tr> <td>
<% databases = profile.software_info.software_databases %>
<% DatabaseHelper.database_as_tables(databases, true).each do |tab| %>
<%= tab.call %>
<%end%>
</td> </tr>
</table>
</td>
</tr>
<tr>
<td><a href="#" class="language-button-show button with-text icon-add"><%= _('Show Languages') %></a>
<a href="#" class="language-button-hide button with-text icon-remove"><%= _('Hide Languages') %></a>
</td>
</tr>
<tr>
<td>
<table class = "language-info dynamic-table">
<%= content_tag('tr', content_tag('td', _("Software Languages")) + content_tag('td', '')) %>
<tr> <td>
<% languages = profile.software_info.software_languages %>
<% SoftwareLanguageHelper.language_as_tables(languages, true).each do |tab| %>
<%= tab.call %>
<%end%>
</td> </tr>
</table>
</td>
</tr>
<tr>
<td><a href="#" class="operating-system-button-show button with-text icon-add"><%= _('Show Operating Systems') %></a>
<a href="#" class="operating-system-button-hide button with-text icon-remove"><%= _('Hide Operating Systems') %></a>
</td>
</tr>
<tr>
<td>
<table class = "operating-system-info dynamic-table">
<%= content_tag('tr', content_tag('td', _("Operating System")) + content_tag('td', '')) %>
<% profile.software_info.operating_systems.each do |operating_system| %>
<%= display_mpog_field(_('Name:'), operating_system.operating_system_name , :name, true) %>
<%= display_mpog_field(_('Version:'), operating_system, :version, true) %>
<% end %>
</table>
</td>
</tr>
</tr>
</table>