_software_tab.html.erb
4.58 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<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(_('Short Name:'), 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">
<thead>
<tr>
<th colspan="2"><%= _("Libraries") %></th>
<th></th>
</tr>
</thead>
<tbody>
<tr> <td>
<% libraries = profile.software_info.libraries %>
<% LibraryHelper.libraries_as_tables(libraries, true).each do |tab| %>
<%= tab.call %>
<%end%>
</td> </tr>
</tbody>
</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">
<thead>
<tr>
<th colspan="2"><%= _("Software Databases") %></th>
<th></th>
</tr>
</thead>
<tbody>
<tr> <td>
<% databases = profile.software_info.software_databases %>
<% DatabaseHelper.database_as_tables(databases, true).each do |tab| %>
<%= tab.call %>
<%end%>
</td> </tr>
</tbody>
</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">
<thead>
<tr>
<th colspan="2"><%= _("Software Languages") %></th>
<th></th>
</tr>
</thead>
<tbody>
<tr> <td>
<% languages = profile.software_info.software_languages %>
<% SoftwareLanguageHelper.language_as_tables(languages, true).each do |tab| %>
<%= tab.call %>
<%end%>
</td> </tr>
</tbody>
</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">
<thead>
<tr>
<th colspan="2"><%= _("Operating System") %></th>
<th></th>
</tr>
</thead>
<tbody>
<tr> <td>
<% operating_systems = profile.software_info.operating_systems %>
<% OperatingSystemHelper.operating_system_as_tables(operating_systems, true).each do |tab| %>
<%= tab.call %>
<%end%>
</td> </tr>
</tbody>
</table>
</td>
</tr>
</tr>
</table>