mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Making the WidgetPart title optional and using the widget type's display name in the widget admin...
--HG-- branch : dev
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
@{
|
||||
i++;
|
||||
}
|
||||
@Html.ActionLink(@widget.Title, "EditWidget", new { @widget.Id })
|
||||
@Html.ActionLink(@widget.TypeDefinition.DisplayName, "EditWidget", new { @widget.Id })
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
|
@@ -5,10 +5,14 @@
|
||||
var tag = Tag(Model, "article");
|
||||
}
|
||||
@tag.StartElement
|
||||
@if (HasText(title) || Model.Header != null) {
|
||||
<header>
|
||||
@if (HasText(title)) {
|
||||
<h1>@title</h1>
|
||||
}
|
||||
@Display(Model.Header)
|
||||
</header>
|
||||
}
|
||||
@Display(Model.Child)
|
||||
@if(Model.Footer != null) {
|
||||
<footer>
|
||||
|
Reference in New Issue
Block a user