Sha256: 98770ff7e0078209933c0a40969b4ace2ee7b5680f982e324887f88243e5a948

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

<!-- Text to trigger modal -->
<span class="badge"><%= followers.count %></span>
<span class="glyphicon glyphicon-hand-left"></span> <a data-toggle="modal" href="#followers">Follower(s)</a>

<div class="modal-div">
  <!-- Modal -->
  <div class="modal fade" id="followers" tabindex="-1" role="dialog" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-body">
          <% if followers.count > 0 %>
            <h3>Follower(s)</h3>
            <ul>
              <% followers.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_followers") %></h3>
            <% else %>
                <h3> <%= t("sufia.user_profile.no_followers_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/_follower_modal.html.erb
sufia-7.0.0 app/views/users/_follower_modal.html.erb
sufia-7.0.0.rc2 app/views/users/_follower_modal.html.erb
sufia-7.0.0.rc1 app/views/users/_follower_modal.html.erb
sufia-7.0.0.beta4 app/views/users/_follower_modal.html.erb
sufia-7.0.0.beta3 app/views/users/_follower_modal.html.erb
sufia-7.0.0.beta2 app/views/users/_follower_modal.html.erb
sufia-7.0.0.beta1 app/views/users/_follower_modal.html.erb