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 | <table id="project_info"> | 4 | <table id="project_info"> |
| 4 | <tr> | 5 | <tr> |
| @@ -48,7 +49,7 @@ | @@ -48,7 +49,7 @@ | ||
| 48 | </p> | 49 | </p> |
| 49 | <% elsif @project.state == 'READY' %> | 50 | <% elsif @project.state == 'READY' %> |
| 50 | <h3><%= _('LAST RESULT') %></h3> | 51 | <h3><%= _('LAST RESULT') %></h3> |
| 51 | - <% @project_result = @page.project_result %> | 52 | + <% @project_result = @project_content.project_result %> |
| 52 | 53 | ||
| 53 | <table id="project_result_info"> | 54 | <table id="project_result_info"> |
| 54 | <tr> | 55 | <tr> |
| @@ -69,11 +70,12 @@ | @@ -69,11 +70,12 @@ | ||
| 69 | 70 | ||
| 70 | <%= render :partial => 'source_tree', :locals => { :source_tree => @project_result.source_tree } %> | 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 | </div> | 75 | </div> |
| 75 | 76 | ||
| 76 | <script type="text/javascript"> | 77 | <script type="text/javascript"> |
| 77 | jQuery(results); | 78 | jQuery(results); |
| 78 | </script> | 79 | </script> |
| 80 | + | ||
| 79 | <% end %> | 81 | <% end %> |
| 80 | \ No newline at end of file | 82 | \ No newline at end of file |