publication/app/views/journals/show.html.erb

9 lines
230 B
Plaintext

<% data = action_data %>
<% if data['extras']['mode'] == 'many' %>
<%= render_view %>
<% elsif data['extras']['mode'] == 'chapter' %>
<%= render_view('show_detail') %>
<% else %>
<%= render_view('show_journal') %>
<% end %>