* fixed bad browse route

* fixed some chrome-specific layout issues
This commit is contained in:
tmont 2011-03-04 09:54:51 +00:00
parent a414d1a17f
commit 72beea805f
2 changed files with 10 additions and 2 deletions

View File

@ -56,7 +56,7 @@ namespace VideoGameQuotes.Web {
//bullshit route so that RenderAction works //bullshit route so that RenderAction works
routes.MapSmartRoute("mainmenu", "home/mainmenu", new { controller = "Home", action = "MainMenu" }); routes.MapSmartRoute("mainmenu", "home/mainmenu", new { controller = "Home", action = "MainMenu" });
routes.MapSmartRoute("quote-of-the-day", "quote/quoteoftheday", new { controller = "Quote", action = "QuoteOfTheDay" }); routes.MapSmartRoute("quote-of-the-day", "quote/quoteoftheday", new { controller = "Quote", action = "QuoteOfTheDay" });
routes.MapSmartRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|random|vote|flag|browse" });
routes.MapSmartRoute("crud-default", "{controller}/{action}", null, new { controller = "system|publisher|game|category", action = "create|edit|delete" }); routes.MapSmartRoute("crud-default", "{controller}/{action}", null, new { controller = "system|publisher|game|category", action = "create|edit|delete" });
routes.MapSmartRoute("admin-default", "admin", new { controller = "Admin", action = "Index" }); routes.MapSmartRoute("admin-default", "admin", new { controller = "Admin", action = "Index" });
routes.MapSmartRoute("admin", "admin/{action}", new { controller = "Admin", action = "Index" }, new { action = "users|create|flags|password" }); routes.MapSmartRoute("admin", "admin/{action}", new { controller = "Admin", action = "Index" }, new { action = "users|create|flags|password" });
@ -72,6 +72,7 @@ namespace VideoGameQuotes.Web {
routes.MapSmartRoute("browse", "browse/{*qualifiers}", new { controller = "Quote", action = "Browse" }); routes.MapSmartRoute("browse", "browse/{*qualifiers}", new { controller = "Quote", action = "Browse" });
routes.MapSmartRoute("search", "search/{*searchQuery}", new { controller = "Quote", action = "Search" }); routes.MapSmartRoute("search", "search/{*searchQuery}", new { controller = "Quote", action = "Search" });
routes.MapSmartRoute("quote", "{action}", new { controller = "Quote" }, new { action = "submit|random|vote|flag|browse" });
//these routes don't work with constraints in mono...? //these routes don't work with constraints in mono...?
routes.MapSmartRoute("quote-edit", "quote/edit/{id}", new { controller = "Quote", action = "Edit" }); routes.MapSmartRoute("quote-edit", "quote/edit/{id}", new { controller = "Quote", action = "Edit" });

View File

@ -176,6 +176,7 @@ a.external {
} }
.searchbox { .searchbox {
float: right !important; float: right !important;
width: 226px; /* chrome needs this or it creates a second line */
} }
.searchbox input[type="text"] { .searchbox input[type="text"] {
height: 15px; height: 15px;
@ -265,7 +266,9 @@ a.external {
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.add-icon, .edit-icon, .loading-icon, .delete-icon, .submit-icon, .cancel-icon, #search-submit, .quote-permalink, .quote-flag-icon, .error-icon { .add-icon, .edit-icon, .loading-icon, .delete-icon, .submit-icon, .cancel-icon, #search-submit, .quote-permalink, .quote-flag-icon, .error-icon {
padding-left: 16px; display: inline-block;
width: 16px;
height: 16px;
margin-left: 2px; margin-left: 2px;
} }
.error-icon { .error-icon {
@ -304,6 +307,10 @@ a.external {
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
} }
.button-link span:first-child /* laziness lol */ {
position: relative;
top: 3px;
}
#browse-default-menu li { #browse-default-menu li {
margin-bottom: 2px; margin-bottom: 2px;