Sha256: e7a043486f9cfe9fbddcb0f663b3dc68a6288e0fe73b92915cc5a0f678481172

Contents?: true

Size: 1.24 KB

Versions: 7

Compression:

Stored size: 1.24 KB

Contents

<% 
sidebar_panels_config = @config.preview_inspector.sidebar_panels.map(&:to_sym)
%>

<%= render "lookbook/partials/blank_slate" do %>
  <% if @blank_slate %>
    <%= lookbook_render :message,
      id: "welcome-message",
      title: "Welcome to your Lookbook!",
      icon: :logo do %>
      <p>
        There isn't much to see yet<% if sidebar_panels_config.any? %>, but<% end %>
        <% if sidebar_panels_config.include?(:previews) %>
          <%= link_to "component previews",
            "#{@config.links.docs}/guide/previews",
            target: "_blank"
          %>  
        <% end %>
        <% if sidebar_panels_config.many? %>and<% end %>
        <% if sidebar_panels_config.include?(:pages) %>
          <%= link_to "content pages",
            "#{@config.links.docs}/guide/pages",
            target: "_blank"
          %>
        <% end %>
        <% if sidebar_panels_config.any? %>
          will show up here as soon as they are added.
        <% end %>
      </p>
    <% end %>
  <% else %>
    <%= lookbook_render :message,
      id: "get-started-message",
      title: @config.project_name,
      icon: :inspect,
      icon_position: :right do %>
      <p>Select a preview from the nav to get started.</p>
    <% end %>
  <% end %>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lookbook-2.3.4 app/views/lookbook/index.html.erb
lookbook-2.3.3 app/views/lookbook/index.html.erb
lookbook-2.3.2 app/views/lookbook/index.html.erb
lookbook-2.3.0 app/views/lookbook/index.html.erb
lookbook-2.2.2 app/views/lookbook/index.html.erb
lookbook-2.2.1 app/views/lookbook/index.html.erb
lookbook-2.2.0 app/views/lookbook/index.html.erb