mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +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")) { %>
|
<% using (Html.BeginFormAntiForgeryPost("AddCulture")) { %>
|
||||||
<%:Html.ValidationSummary() %>
|
<%:Html.ValidationSummary() %>
|
||||||
<fieldset>
|
<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)) %>
|
<%:Html.DropDownList("CultureName", new SelectList(Model.AvailableSystemCultures.OrderBy(s => s), Model.CurrentCulture)) %>
|
||||||
<button class="primaryAction" type="submit"><%:T("Add") %></button>
|
<button class="primaryAction" type="submit"><%:T("Add") %></button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@@ -2,5 +2,5 @@
|
|||||||
<div><%:Model %></div>
|
<div><%:Model %></div>
|
||||||
<% using (Html.BeginFormAntiForgeryPost(Url.Action("DeleteCulture", "Admin", new { area = "Settings" }), FormMethod.Post, new {@class = "inline link"})) { %>
|
<% using (Html.BeginFormAntiForgeryPost(Url.Action("DeleteCulture", "Admin", new { area = "Settings" }), FormMethod.Post, new {@class = "inline link"})) { %>
|
||||||
<%=Html.Hidden("cultureName", Model, new { id = "" }) %>
|
<%=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)
|
if (time.TotalSeconds > 60)
|
||||||
return T.Plural("1 minute ago", "{0} minutes ago", time.Minutes);
|
return T.Plural("1 minute ago", "{0} minutes ago", time.Minutes);
|
||||||
if (time.TotalSeconds > 10)
|
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");
|
return T("a moment ago");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user