Skip to content

Commit

Permalink
Remvoing suggested inputs from revision labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Baas-hub committed Aug 21, 2022
1 parent 455f571 commit 0b96946
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/dotnet/APIView/APIViewWeb/Pages/Assemblies/Samples.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ else
<form asp-page-handler="Upload" method="post">
<div class="form-group">
<label asp-for="Upload.RevisionTitle" class="text-muted"> Enter a sample title (Optional) </label>
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" /> <br />
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" autocomplete="off" /> <br />
<textarea asp-for="Upload.sampleString" class="new-thread-comment-text form-control" rows="25" placeholder="Enter your markdown formatted usage sample here"></textarea>
<input asp-for="Upload.ReviewId" hidden value="@Model.Review.ReviewId" />
<input asp-for="Upload.RevisionNumber" hidden value="@Model.latestRevision" />
Expand All @@ -194,7 +194,7 @@ else
<div class="tab-pane" id="md-file">
<form asp-page-handler="Upload" method="post" enctype="multipart/form-data">
<label asp-for="Upload.RevisionTitle" class="text-muted"> Enter a sample title (Optional) </label>
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" /> <br />
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" autocomplete="off" > <br />
<input asp-for="Upload.ReviewId" hidden value="@Model.Review.ReviewId" />
<input asp-for="Upload.RevisionNumber" hidden value="@Model.latestRevision" />
<div class="form-group">
Expand Down Expand Up @@ -254,7 +254,7 @@ else
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Update Usage Sample</h5>
<h5 class="modal-title">Edit Usage Sample</h5>
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
</button>
Expand All @@ -266,7 +266,7 @@ else
<div class="new-comment-content">
<form asp-page-handler="Upload" method="post">
<label asp-for="Upload.RevisionTitle" class="text-muted"> Enter a sample title (Optional) </label>
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" /> <br />
<input asp-for="Upload.RevisionTitle" class="form-control" type="text" autocomplete="off" /> <br />
<div class="form-group">
<div class="new-sample-content">
<textarea asp-for="Upload.updateString" class="new-thread-comment-text form-control" rows="25"></textarea>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private async Task<CodeLineModel[]> ParseLines(string fileId, ReviewCommentsMode
string lineContent = content[i];

// remove the newlines before codeblocks
if (lineContent.StartsWith("<div class=\"code"))
if (lineContent.StartsWith("<div class=\"code") || lineContent.StartsWith("<div style=") || lineContent.StartsWith("<div class=\"lang"))
{
lineContent = "";
}
Expand Down

0 comments on commit 0b96946

Please sign in to comment.