minor route adjustments
This commit is contained in:
parent
6dc4c4d945
commit
7d51b80dcf
@ -39,7 +39,7 @@ namespace VideoGameQuotes.Web {
|
|||||||
|
|
||||||
routes.MapRoute("home", "{action}", new { controller = "Home", action = "Index" }, new { action = "about|contact" });
|
routes.MapRoute("home", "{action}", new { controller = "Home", action = "Index" }, new { action = "about|contact" });
|
||||||
routes.MapRoute("best", "best/{start}-{end}/", new { controller = "Quote", action = "Best" }, new { start = @"\d+", end = @"\d+" });
|
routes.MapRoute("best", "best/{start}-{end}/", new { controller = "Quote", action = "Best" }, new { start = @"\d+", end = @"\d+" });
|
||||||
routes.MapRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|search|recent|random|best" });
|
routes.MapRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|search|recent|random|best|browse" });
|
||||||
routes.MapRoute("individual-quote", "quote/{id}/{*text}", new { controller = "Quote", action = "Quote" }, new { id = @"\d+" });
|
routes.MapRoute("individual-quote", "quote/{id}/{*text}", new { controller = "Quote", action = "Quote" }, new { id = @"\d+" });
|
||||||
routes.MapRoute("create-category", "category/create", new { controller = "Quote", action = "CreateCategory" });
|
routes.MapRoute("create-category", "category/create", new { controller = "Quote", action = "CreateCategory" });
|
||||||
|
|
||||||
|
@ -22,11 +22,12 @@
|
|||||||
|
|
||||||
<div id="main-menu">
|
<div id="main-menu">
|
||||||
<ul class="clearfix menu">
|
<ul class="clearfix menu">
|
||||||
<li><%= Html.ActionLink("Recent", "recent", "Quote") %></li>
|
<li><%= Html.ActionLink("Recent", "recent", "Quote", null, new { title = "View most recently submitted quotes" })%></li>
|
||||||
<li><%= Html.ActionLink("Random", "random", "Quote") %></li>
|
<li><%= Html.RouteLink("Best", "quote", new { action = "best" }, new { title = "View the top rated quotes" })%></li>
|
||||||
<li><%= Html.ActionLink("Best", "best", "Quote") %></li>
|
<li><%= Html.ActionLink("Browse", "browse", "Quote", null, new { title = "Browse the quote database" })%></li>
|
||||||
<li><%= Html.ActionLink("Submit", "submit", "Quote") %></li>
|
<li><%= Html.ActionLink("Random", "random", "Quote", null, new { title = "View a random quote" })%></li>
|
||||||
<li><%= Html.ActionLink("About", "about", "Home") %></li>
|
<li><%= Html.ActionLink("Submit", "submit", "Quote", null, new { title = "Submit a new quote" }) %></li>
|
||||||
|
<li><%= Html.ActionLink("About", "about", "Home", null, new { title = "About the site" })%></li>
|
||||||
<li class="searchbox">
|
<li class="searchbox">
|
||||||
<% using (Html.BeginForm("search", "quote", FormMethod.Get)) { %>
|
<% using (Html.BeginForm("search", "quote", FormMethod.Get)) { %>
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
Reference in New Issue
Block a user