--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-12-07 15:24:55 -08:00
5 changed files with 17 additions and 11 deletions

View File

@@ -6,7 +6,6 @@
IEnumerable<KeyValuePair<ArchiveData, int>> archives = Model.Archives;
}
<div class="archives">
<h3>@T("Archives")</h3>
@if (archives.Count() > 20) {
<ul class="years">
@{

View File

@@ -8,7 +8,7 @@ namespace Orchard.Comments {
public string MenuName { get { return "admin"; } }
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Comments"), "10",
builder.Add(T("Comments"), "2.75",
menu => menu.Add(T("List"), "0", item => item.Action("Index", "Admin", new { area = "Orchard.Comments" })
.Permission(Permissions.ManageComments)));
}

View File

@@ -16,3 +16,12 @@ form.search input {
.search-results {
clear:both;
}
.search-form input[type="text"] { float: left; }
.search-form button[type="submit"] { float: left; margin: 0; margin-left: 6px; }
/*Search widget styles. More syles could be added here to target specific zones.*/
.widget-search-form {
float:right;
}

View File

@@ -1,5 +1,10 @@
@using Orchard.Search.ViewModels;
@{
Style.Require("Search");
}
@using(Html.BeginForm("index", "search", new { area = "Orchard.Search" }, FormMethod.Get, new { @class = "search-form" })) {
<fieldset>
@Html.TextBox("q", (SearchViewModel)Model.ViewModel.Query)

View File

@@ -71,7 +71,7 @@ header, footer, aside, nav, article { display: block; }
visibility: hidden;
}
.zone:after /* Self clears every zone container */
.zone:after, .widget-control:after /* .zone:after self clears every zone container - .widget-control:after self clears any floats used in a widget */
{
content: ".";
display: block;
@@ -424,13 +424,6 @@ nav ul
.widgets {}
.widget h1 { font-size: 1.077em; }
/* Search */
/* Search widget shuld go into the sidebar for proper styling */
/* TODO: (mibach) Generic any zone compatible search widget */
.search-form {}
.search-form input[type="text"] { float: left; }
.search-form button[type="submit"] { float: left; margin: 0; margin-left: 6px; }
/* Edit Mode Widgets */
/* These are the edit controls that appear when you're logged-in */
.widget-control { position: relative; border: 1px dotted #5f97af; }