Sha256: 3f2f5fbfa0a45d36c5d9719ea33435fbee5445ac8aab91e256c0c0723729a354

Contents?: true

Size: 760 Bytes

Versions: 3

Compression:

Stored size: 760 Bytes

Contents

    <!-- profile and view buttons -->
      <% if signed_in? %>
        <% if current_user == @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

3 entries across 3 versions & 1 rubygems

Version Path
sufia-7.0.0.beta3 app/views/users/_profile_actions.html.erb
sufia-7.0.0.beta2 app/views/users/_profile_actions.html.erb
sufia-7.0.0.beta1 app/views/users/_profile_actions.html.erb