Commit f3edd5ca2677539262c64d149c306e556e3ec120
Committed by
Carlos Morais
1 parent
1a0d9d7e
Exists in
master
and in
28 other branches
[Mezuro] a page is a project_content
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
plugins/mezuro/views/content_viewer/show_project.rhtml
| 1 | -<% @project = @page.project %> | |
| 1 | +<% @project_content = @page | |
| 2 | + @project = @project_content.project %> | |
| 2 | 3 | |
| 3 | 4 | <table id="project_info"> |
| 4 | 5 | <tr> |
| ... | ... | @@ -48,7 +49,7 @@ |
| 48 | 49 | </p> |
| 49 | 50 | <% elsif @project.state == 'READY' %> |
| 50 | 51 | <h3><%= _('LAST RESULT') %></h3> |
| 51 | - <% @project_result = @page.project_result %> | |
| 52 | + <% @project_result = @project_content.project_result %> | |
| 52 | 53 | |
| 53 | 54 | <table id="project_result_info"> |
| 54 | 55 | <tr> |
| ... | ... | @@ -69,11 +70,12 @@ |
| 69 | 70 | |
| 70 | 71 | <%= render :partial => 'source_tree', :locals => { :source_tree => @project_result.source_tree } %> |
| 71 | 72 | |
| 72 | - <div id='module-result' data-profile="<%= @page.profile.identifier %>" data-project-id='<%= @page.id %>'> | |
| 73 | - <%= render :partial => 'module_result', :locals => { :module_result => @page.module_result(@project.name) } %> | |
| 73 | + <div id='module-result' data-profile="<%= @project_content.profile.identifier %>" data-project-id='<%= @project_content.id %>'> | |
| 74 | + <%= render :partial => 'module_result', :locals => { :module_result => @project_content.module_result(@project.name) } %> | |
| 74 | 75 | </div> |
| 75 | 76 | |
| 76 | 77 | <script type="text/javascript"> |
| 77 | 78 | jQuery(results); |
| 78 | 79 | </script> |
| 80 | + | |
| 79 | 81 | <% end %> |
| 80 | 82 | \ No newline at end of file | ... | ... |