mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
A couple of minor tweaks to the site culter management UI
--HG-- branch : dev
This commit is contained in:
@@ -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>
|
||||
|
@@ -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>
|
||||
<% } %>
|
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user