anthonymidili/EasyKeep

View on GitHub
app/views/dashboard/_admin_view.html.haml

Summary

Maintainability
Test Coverage
.row
  .small-12.columns
    %br/

    - unless @accounts.any?
      .alert-box.warning.radius
        Be sure to #{link_to 'edit your company', edit_company_path} information to add your
        logo, address, phone number, set your regional sales tax, ect., that will be applied to your invoice headers.
        %br/
        After that feel free to #{link_to 'create you first account', new_account_path}.

    .outline
      - if current_user.is_owner?
        .float-right
          = link_to edit_company_path, title: 'Edit Company' do
            Edit
            %i.fas.fa-edit

      = render 'companies/header_preview'

    = render 'dashboard/recent_accounts'

    = render 'dashboard/new_service'

    = render 'dashboard/overview'