show_project.rhtml
1.76 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
<script src="/plugins/mezuro/javascripts/project_content.js" type="text/javascript"></script>
<% @project = @page.project %>
<% unless @page.errors[:base].nil? %>
<% if @page.errors[:base] =~ /There is no project named/ %>
<h3>Warning:</h3>
<p>This project doesn't exist on the Web Service. Do you want to <a href="/myprofile/<%= @page.profile.name %>/cms/destroy/<%= @page.id%>">delete</a> or <a href="/myprofile/<%= @page.profile.name %>/cms/edit/<%= @page.id%>">save it again</a>?</p>
<% else %>
<%= @page.errors[:base] %>
<% end %>
<% else %>
<table>
<tr>
<td><%= _('Name') %></td>
<td><%= @project.name %></td>
</tr>
<tr>
<td><%= _('License') %></td>
<td><%= @project.license %></td>
</tr>
<tr>
<td><%= _('Description') %></td>
<td><%= @project.description %></td>
</tr>
<tr>
<td><%= _('Repository type') %></td>
<td><%= @project.repository.type %></td>
</tr>
<tr>
<td><%= _('Repository address') %></td>
<td><%= @project.repository.address %></td>
</tr>
<tr>
<td><%= _('Configuration') %></td>
<td><%= @project.configuration_name %></td>
</tr>
<tr>
<td><%= _('Periodicity') %></td>
<td><%= MezuroPlugin::Helpers::ContentViewerHelper.get_periodicity_option(@page.periodicity_in_days) %></td>
</tr>
<tr>
<td><%= _('Status')%></td>
<td>
<div id="project-state"><%= @project.state %></div>
<div id="msg-time"></div>
</td>
</tr>
</table>
<br />
<div id="project-result" data-profile="<%= @page.profile.identifier %>" data-content="<%= @page.id %>"
data-project-name="<%= @project.name %>">
</div>
<div id="project-tree"></div>
<div id="module-result">
</div>
<% end %>