Commit 5062dee6fe709c9c354b7c22e086a6fb3bd7aa29
1 parent
9738f603
Exists in
master
serpro_integration: fix migration issues
Showing
6 changed files
with
16 additions
and
16 deletions
Show diff stats
lib/serpro_integration_plugin.rb
lib/serpro_integration_plugin/sonar_widget_block.rb
views/profile_design/sonar_plugin/_sonar_widget_block.html.erb
0 → 100644
views/profile_design/sonar_plugin/_sonar_widget_block.rhtml
| ... | ... | @@ -0,0 +1,10 @@ |
| 1 | +<div class='widget'> | |
| 2 | + <% if block.is_widget_well_formed_url? %> | |
| 3 | + <iframe width='<%=block.widget_width%>' height='<%=block.widget_height%>' src='<%=block.widget_url%>' frameborder="0" allowfullscreen></iframe> | |
| 4 | + <% else %> | |
| 5 | + <div class='wrong'> | |
| 6 | + <iframe width='<%=block.widget_width%>' height='<%=block.widget_height%>' src='<%=block.widget_url%>' frameborder="0" allowfullscreen></iframe> | |
| 7 | + <%= _('Something wrong happened. Please see your sonar configuration.') %> | |
| 8 | + </div> | |
| 9 | + <% end %> | |
| 10 | +</div> | ... | ... |
views/sonar_widget_block.rhtml
| ... | ... | @@ -1,10 +0,0 @@ |
| 1 | -<div class='widget'> | |
| 2 | - <% if block.is_widget_well_formed_url? %> | |
| 3 | - <iframe width='<%=block.widget_width%>' height='<%=block.widget_height%>' src='<%=block.widget_url%>' frameborder="0" allowfullscreen></iframe> | |
| 4 | - <% else %> | |
| 5 | - <div class='wrong'> | |
| 6 | - <iframe width='<%=block.widget_width%>' height='<%=block.widget_height%>' src='<%=block.widget_url%>' frameborder="0" allowfullscreen></iframe> | |
| 7 | - <%= _('Something wrong happened. Please see your sonar configuration.') %> | |
| 8 | - </div> | |
| 9 | - <% end %> | |
| 10 | -</div> |