Codeminer42/cm42-central

View on GitHub
app/views/projects/_settings_sidebar.html.erb

Summary

Maintainability
Test Coverage
<ul class="sidebar-nav settings-sidebar">
  <li class="sidebar-item sidebar-brand">
    <%= Project.model_name %> <%= t('settings') %>
  </li>

  <% if policy(project).manage? %>
    <li role="presentation" class="sidebar-item settings-sidebar-item">
      <%= link_to edit_project_path(project), class: "sidebar-link #{active_class(edit_project_path(project))}" do %>
        <%= material_icon.edit.md_18.css_class('sidebar-icon') %> <%= t('edit') %>
      <% end %>
    </li>
    <li role="presentation" class="settings-sidebar-item">
      <%= link_to project_integrations_path(project), class: "sidebar-link #{active_class(project_integrations_path(project))}" do %>
        <%= material_icon.device_hub.md_18.css_class('sidebar-icon') %> <%= t('projects.integrations') %>
      <% end %>
    </li>

    <li class="divider"></li>

    <li role="presentation" class="settings-sidebar-item">
      <%= link_to import_project_path(project), class: "sidebar-link #{active_class(import_project_path(project))}" do %>
        <%= material_icon.file_upload.md_18.css_class('sidebar-icon') %> <%= t('import')%>
      <% end %>
    </li>
  <% end %>
</ul>