Skip to content
This repository has been archived by the owner on May 6, 2020. It is now read-only.

Commit

Permalink
Rate limited view example updated
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprodan committed Feb 2, 2014
1 parent 23f4817 commit 41e2b0c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 41 deletions.
28 changes: 3 additions & 25 deletions MvcThrottle.Demo/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,7 @@
}

<div class="jumbotron">
<h1>ASP.NET</h1>
<p class="lead">ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS and JavaScript.</p>
<p><a href="http://asp.net" class="btn btn-primary btn-large">Learn more &raquo;</a></p>
</div>

<div class="row">
<div class="col-md-4">
<h2>Getting started</h2>
<p>
ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that
enables a clean separation of concerns and gives you full control over markup
for enjoyable, agile development.
</p>
<p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301865">Learn more &raquo;</a></p>
</div>
<div class="col-md-4">
<h2>Get more libraries</h2>
<p>NuGet is a free Visual Studio extension that makes it easy to add, remove, and update libraries and tools in Visual Studio projects.</p>
<p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301866">Learn more &raquo;</a></p>
</div>
<div class="col-md-4">
<h2>Web Hosting</h2>
<p>You can easily find a web hosting company that offers the right mix of features and price for your applications.</p>
<p><a class="btn btn-default" href="http://go.microsoft.com/fwlink/?LinkId=301867">Learn more &raquo;</a></p>
</div>
<h1>ASP.NET MVC Throttling Filter</h1>
<p class="lead">Reload this page several times to see MvcThrottle in action.</p>
<p><a href="@Url.Action("Index","Home")" class="btn btn-primary btn-large">Reload &raquo;</a></p>
</div>
23 changes: 7 additions & 16 deletions MvcThrottle.Demo/Views/Shared/RateLimited.cshtml
Original file line number Diff line number Diff line change
@@ -1,17 +1,8 @@
@{
Layout = null;
}

<div class="jumbotron">
<div class="alert alert-warning">
<strong>You've been rate limited.</strong>
@ViewBag.Message
</div>
</div>

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Error</title>
</head>
<body>
<hgroup>
<h1>You've been rate limited!</h1>
<h3>@ViewBag.Message</h3>
</hgroup>
</body>
</html>

0 comments on commit 41e2b0c

Please sign in to comment.