Sha256: e579105a7b296191c1963f1c6df8d98913ddb1bd7da72b13589cdeff9c7c984b

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

<div role="tabpanel">
  <ul class="nav nav-tabs" role="tablist">
<% Setting['home_page.general.plugins'].each_with_index do |plugin, index| %>
  <% next if (Setting["#{plugin}.general.available_apis"] || []).none? %>
    <li role="presentation"<% if index == 0 %> class="active"<% end %>>
  <% id = "home_page_settings_#{plugin == 'home_page' ? 'core' : plugin}_apis" %>
      <a href="#<%= id %>" aria-controls="<%= id %>" role="tab" data-toggle="tab">
        <%= t("settings.index.plugins.#{plugin}.index.title") %>
      </a>
    </li>
<% end %>
  </ul>
  <div class="tab-content">
<% Setting['home_page.general.plugins'].each_with_index do |plugin, index| %>   
  <% next if (Setting["#{plugin}.general.available_apis"] || []).none? %>
  <% id = "home_page_settings_#{plugin == 'home_page' ? 'core' : plugin}_apis" %>
    <div role="tabpanel" class="tab-pane<% if index == 0 %> active<% end %>" id="<%= id %>">
      <p>
        <%= render partial: 'settings/apis', locals: { f: f, plugin: plugin } %>
      </p>
    </div>
<% end %>
  </div>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
home_page-0.0.6 app/views/settings/plugins/home_page/tabs/_apis.html.erb