2011-02-22 04:05:23 +00:00
|
|
|
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Portoa.Web.Models.PagingMenuModel>" %>
|
|
|
|
|
2011-02-27 01:14:56 +00:00
|
|
|
<% if (!Model.ShouldShowMenu) { return; } %>
|
2011-02-22 04:05:23 +00:00
|
|
|
|
|
|
|
<div class="paging-menu">
|
|
|
|
<ul class="menu clearfix">
|
|
|
|
<% if (Model.HasNext) { %><li><%= Html.ActionLink("\u25B6", Model.Action, Model.Controller, new { page = (Model.CurrentPage + 1) }, new { title = "next page" })%></li><% } %>
|
|
|
|
<li><strong><%= Model.CurrentPage %></strong></li>
|
|
|
|
<% if (Model.HasPrevious) { %><li><%= Html.ActionLink("\u25C0", Model.Action, Model.Controller, new { page = (Model.CurrentPage - 1) }, new { title = "previous page" })%></li><% } %>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p>
|
2011-02-27 01:14:56 +00:00
|
|
|
<% if (Model.CurrentPageIsValid) { %>
|
|
|
|
Showing <strong><%= Model.Start%>—<%= Model.ActualEnd%></strong> of <strong><%= Model.TotalCount%></strong>.
|
|
|
|
<% } else { %>
|
|
|
|
Nothing to show of <strong><%= Model.TotalCount%></strong>.
|
|
|
|
<% } %>
|
2011-02-22 04:05:23 +00:00
|
|
|
</p>
|
|
|
|
</div>
|