Sha256: f6e9c4b84187999e7debf4bd94d8d495ddeaf4824256cbf9e7f6167d9bcc6a34

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

<%= title 'Projects' %>

<h1 class="page-header">Projects</h1>

<% @projects.each do |project, project_icons| %>

  <h3 class="font-bold text-dark"><%= link_to project.name, project_path(project) %></h3>
  <div class="card mb-4">
    <div class="card-block">
      <% project_icons.each do |project_icon| %>
        <div class="btn btn-svg float-left" title="<%= project_icon.icon.name %>">
          <%= project_icon.icon.contents.html_safe %>
        </div>
      <% end %>

      <% if project_icons.blank? %>
        <div class="text-pale">No icons added yet.</div>
      <% end %>
    </div>
  </div>

<% end %>

<% if @projects.blank? %>
<div class="jumbotron text-center">
  <i class="iconly-baby2 mr-05 font-lg"></i>
  <% if params[:q].present? %>
    <h3 class="mb-4">Can't find that icon ...</h3>
    <%= link_to 'Clear search', projects_path, class: 'btn btn-lg btn-primary' %>
  <% else %>
    <h3>No projects created yet</h3>
    <hr/>
    <p>No worries, there's still time.</p>
    <%= link_to 'Start now', new_project_path, class: 'btn btn-lg btn-primary' %>
  <% end %>
</div>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iconly-1.0.0 app/views/iconly/projects/index.html.erb