A couple of minor tweaks to the site culter management UI

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-06-10 13:21:28 -07:00
parent 39c62e142f
commit e250b036fd
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
<% using (Html.BeginFormAntiForgeryPost("AddCulture")) { %>
<%:Html.ValidationSummary() %>
<fieldset>
<legend><%:T("Add a culture...") %></legend>
<label for="CultureName"><%:T("Add a culture...") %></label>
<%:Html.DropDownList("CultureName", new SelectList(Model.AvailableSystemCultures.OrderBy(s => s), Model.CurrentCulture)) %>
<button class="primaryAction" type="submit"><%:T("Add") %></button>
</fieldset>

View File

@@ -2,5 +2,5 @@
<div><%:Model %></div>
<% using (Html.BeginFormAntiForgeryPost(Url.Action("DeleteCulture", "Admin", new { area = "Settings" }), FormMethod.Post, new {@class = "inline link"})) { %>
<%=Html.Hidden("cultureName", Model, new { id = "" }) %>
<button type="submit" title="<%:T("Delete") %>">x</button>
<button type="submit" class="remove" title="<%:T("Delete") %>">x</button>
<% } %>

View File

@@ -196,7 +196,7 @@ namespace Orchard.Mvc.Html {
if (time.TotalSeconds > 60)
return T.Plural("1 minute ago", "{0} minutes ago", time.Minutes);
if (time.TotalSeconds > 10)
return T.Plural("1 second ago", "{0} seconds ago", time.Seconds);
return T.Plural("1 second ago", "{0} seconds ago", time.Seconds); //aware that the singular won't be used
return T("a moment ago");
}