'...' added, Reply Removed

This commit is contained in:
Cody 2020-06-04 21:11:24 -07:00 committed by GitHub
parent 41348b285d
commit 6f6f2b77d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -126,7 +126,14 @@ else
</Row> </Row>
<Detail> <Detail>
<td colspan="2"></td> <td colspan="2"></td>
<td colspan="3">@(context.Body.Length > 100 ? context.Body.Substring(0, 100) : context.Body)</td> <td colspan="3">
@{
string input = "---";
if (context.Body.Contains(input)){
context.Body = context.Body.Split(input)[0];
} }
@(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
</td>
</Detail> </Detail>
</Pager> </Pager>
} }
@ -149,7 +156,14 @@ else
</Row> </Row>
<Detail> <Detail>
<td colspan="2"></td> <td colspan="2"></td>
<td colspan="3">@(context.Body.Length > 100 ? context.Body.Substring(0, 100) : context.Body)</td> <td colspan="3">
@{
string input = "---";
if (context.Body.Contains(input)){
context.Body = context.Body.Split(input)[0];
} }
@(context.Body.Length > 100 ? (context.Body.Substring(0, 97) + "...") : context.Body)
</td>
</Detail> </Detail>
</Pager> </Pager>
} }