noesya/osuny

View on GitHub
app/views/admin/communication/websites/show/_projects.html.erb

Summary

Maintainability
Test Coverage
<%
title = t('communication.website.last_projects')
action = ''
action += link_to t('create'),
                  new_admin_communication_website_portfolio_project_path(website_id: @website),
                  class: button_classes if can?(:create, Communication::Website::Portfolio::Project)
%>
<%= osuny_panel title, action: action do %>
  <%= render 'admin/communication/websites/portfolio/projects/list',
              projects: @projects, 
              small: true %>
  <%= link_to t('communication.website.see_all', number: @all_projects.size), 
              admin_communication_website_portfolio_projects_path(website_id: @website) if @all_projects.any? %>
<% end %>