summaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_tabs.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/common/_tabs.html.erb b/app/views/common/_tabs.html.erb
index df7513e42..def21ff45 100644
--- a/app/views/common/_tabs.html.erb
+++ b/app/views/common/_tabs.html.erb
@@ -18,10 +18,10 @@
</div>
<% tabs.each do |tab| -%>
- <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
+ <%= content_tag('div', (render(:partial => tab[:partial], :locals => {:tab => tab}) if tab[:partial]) ,
:id => "tab-content-#{tab[:name]}",
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
- :class => 'tab-content') if tab[:partial] %>
+ :class => 'tab-content') if tab[:partial] || tab[:remote] %>
<% end -%>
<%= javascript_tag default_action if default_action %>