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:
Sipke Schoorstra
2014-05-19 21:59:59 +02:00
parent 67634bab0f
commit 34122e6834

View File

@@ -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>