<% provide :page_title, application_name %>

<% if @presenter.display_share_button? %>
  <div class="home_share_work row">
    <div class="col-sm-12 text-center">
      <% if signed_in? %>
        <% if create_work_presenter.many? %>
          <%= link_to '#',
            class: "btn btn-primary btn-lg",
            data: { behavior: 'select-work', target: '#worktypes-to-create', 'create-type' => 'single' } do %>
            <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
          <% end %>
        <% else # simple link to the first work type %>
          <%= link_to(
                t('hyrax.share_button'),
                new_polymorphic_path([main_app, create_work_presenter.first_model]),
                class: 'btn btn-primary'
              ) %>
        <% end %>
      <% else %>
        <%= link_to hyrax.dashboard_path,
          class: "btn btn-primary btn-lg" do %>
          <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
        <% end %>
      <% end %>
      <p><%= link_to t(:'hyrax.controls.terms'), hyrax.terms_path %></p>
    </div>
  </div>
<% end %>

<div class="row home-content">
  <%= render 'home_content' %>
</div>

<% provide :page_title, application_name %>

<% if @presenter.display_share_button? %>
  <div class="home_share_work row">
    <div class="col-sm-12 text-center">
      <% if signed_in? %>
        <% if create_work_presenter.many? %>
          <%= link_to '#',
            class: "btn btn-primary btn-lg",
            data: { behavior: 'select-work', target: '#worktypes-to-create', 'create-type' => 'single' } do %>
            <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
          <% end %>
        <% else # simple link to the first work type %>
          <%= link_to new_polymorphic_path([main_app, create_work_presenter.first_model]),
                class: 'btn btn-primary' do %>
            <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
          <% end %>
        <% end %>
      <% else %>
        <%= link_to hyrax.dashboard_path,
          class: "btn btn-primary btn-lg" do %>
          <i class="glyphicon glyphicon-upload"></i> <%= t('hyrax.share_button') %>
        <% end %>
      <% end %>
      <p><%= link_to t(:'hyrax.controls.terms'), hyrax.terms_path %></p>
    </div>
  </div>
<% end %>

<div class="row home-content">
  <%= render 'home_content' %>
</div>

Add the icon to the share button when there is only one worktype
Add the icon to the share button when there is only one worktype
