Sha256: 9783fc2bfa410b15cc55ae4920fb33fa9737b71065e2f0e99c51b4a80c384b39

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

<!-- Text to trigger modal -->
<span class="badge"><%= following.count %></span>
<span class="glyphicon glyphicon-hand-right"></span> <a data-toggle="modal" href="#following">Following</a>

<div class="modal-div">
  <!-- Modal -->
  <div class="modal fade" id="following" tabindex="-1" role="dialog"  aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-body">
          <% if following.count > 0 %>
            <h3>Following</h3>
            <ul>
              <% following.each do |f| %>
                <li><%= link_to f.name, sufia.profile_path(f), title: "View user's profile" %></li>
              <% end %>
            </ul>
          <% else %>
            <% if current_user && user.id == current_user.id %>
                <h3> <%= t("sufia.user_profile.no_following") %></h3>
            <% else %>
                <h3> <%= t("sufia.user_profile.no_following_other") %></h3>
            <% end %>
          <% end %>
        </div>
        <div class="modal-footer">
          <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Close</button>
        </div>
      </div>
    </div>
  </div>
</div>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sufia-7.1.0 app/views/users/_following_modal.html.erb
sufia-7.0.0 app/views/users/_following_modal.html.erb
sufia-7.0.0.rc2 app/views/users/_following_modal.html.erb
sufia-7.0.0.rc1 app/views/users/_following_modal.html.erb
sufia-7.0.0.beta4 app/views/users/_following_modal.html.erb
sufia-7.0.0.beta3 app/views/users/_following_modal.html.erb
sufia-7.0.0.beta2 app/views/users/_following_modal.html.erb
sufia-7.0.0.beta1 app/views/users/_following_modal.html.erb