Skip to content

Commit

Permalink
Better formatting for IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
poppastring committed Mar 11, 2021
1 parent 0f1b23f commit 56642ae
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
9 changes: 5 additions & 4 deletions source/DasBlog.Web.UI/Views/Admin/ManageComments.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@
<tr>
<th scope="col">Blog Title</th>
<th scope="col">Name</th>
<th scope="col">IP Address</th>
<th scope="col">Status</th>
<th scope="col">Comment Text</th>
<th scope="col">Approval</th>
<th scope="col">Delete</th>
</tr>
</thead>
<tbody>
<tbody class="dbc-admin-comment-table">
@foreach (var comment in Model)
{
<tr>
<td width="30%"><a href="@dasBlogSettings.GetPermaLinkUrl(comment.BlogPostId)">@comment.Title</a></td>
<td width="10%"><a href="mailto:@[email protected]">@comment.Name</a></td>
<td width="10%">@comment.AuthorIPAddress</td>
<td width="20%"><a href="@dasBlogSettings.GetPermaLinkUrl(comment.BlogPostId)">@comment.Title</a></td>
<td width="15%"><a href="mailto:@[email protected]">@comment.Name</a></td>
<td width="5%">@comment.AuthorIPAddress</td>
<td width="10%">@comment.SpamState</td>
<td width="30%">@comment.Text</td>
<td width="10%"><comment-approval-link comment="@comment" admin="true" /></td>
Expand Down
3 changes: 3 additions & 0 deletions source/DasBlog.Web.UI/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,6 @@
height: 100%;
}

tbody.dbc-admin-comment-table td {
word-break: break-all;
}
2 changes: 1 addition & 1 deletion source/DasBlog.Web.UI/wwwroot/css/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 56642ae

Please sign in to comment.