Sha256: 6f9dcab099a080665f16450d6e513ba97721161f04fb1d5f16ebf76245d53e81

Contents?: true

Size: 762 Bytes

Versions: 5

Compression:

Stored size: 762 Bytes

Contents

    <!-- profile and view buttons -->
      <% if signed_in? %>
        <% if presenter.current_user? %>
          <%= link_to sufia.edit_profile_path(@user), class: "btn btn-default" do %>
            <i class="glyphicon glyphicon-edit"></i> Edit Your Profile
          <% end %>
        <% elsif current_user.following?(@user) %>
          <%= link_to sufia.unfollow_profile_path(@user), method: :post, class: "btn btn-default" do %>
            <i class="glyphicon glyphicon-eye-close"></i> Unfollow
          <% end %>
        <% else %>
          <%= link_to sufia.follow_profile_path(@user), method: :post, class: "btn btn-default" do %>
            <i class="glyphicon glyphicon-eye-open"></i> Follow
          <% end %>
        <% end %>
      <% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sufia-7.1.0 app/views/users/_profile_actions.html.erb
sufia-7.0.0 app/views/users/_profile_actions.html.erb
sufia-7.0.0.rc2 app/views/users/_profile_actions.html.erb
sufia-7.0.0.rc1 app/views/users/_profile_actions.html.erb
sufia-7.0.0.beta4 app/views/users/_profile_actions.html.erb