Former-commit-id: f6780ebac6fe1a2d8fe603a4e1987e94b82f9c59 Former-commit-id: e0d226d927500463e5846d624ed170523471287f1.0
parent
941c90beb3
commit
ce8b9a49de
@ -1,19 +1,2 @@
|
|||||||
@model string
|
@model string
|
||||||
@if (Model != null)
|
@Model
|
||||||
{
|
|
||||||
if (this.ViewContext.RouteData.Values["action"].ToString().ToLower() == "details")
|
|
||||||
{
|
|
||||||
@Model
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (Model.Length > 20)
|
|
||||||
{
|
|
||||||
<div title="@Model @this.ViewContext.RouteData.Values["action"] ">@Model.Substring(0, 17)<span>...</span></div>
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
@Model
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue