mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Updating Redirect activity view.
This change will show the provided redirect URL using a tooltip rather than on the activity node itself.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<div>
|
||||
@if (Model.State.Url != null && !String.IsNullOrWhiteSpace(Model.State.Url.Value)) {
|
||||
<div>@T("Redirect to {0}", Model.State.Url.Value)</div>
|
||||
}
|
||||
else {
|
||||
<div>@T("Redirect")</div>
|
||||
}
|
||||
@{
|
||||
var name = (string)Model.Name;
|
||||
var url = (string) Model.State.Url;
|
||||
var description = String.IsNullOrEmpty(url) ? T("Redirect") : T("Redirect to {0}", url);
|
||||
}
|
||||
<div class="activity-redirect" title="@description">
|
||||
<div>@name</div>
|
||||
</div>
|
Reference in New Issue
Block a user