Skip to content

Commit

Permalink
Merge e6bb157 into ba3f7e8
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Jan 9, 2023
2 parents ba3f7e8 + e6bb157 commit 4d1260c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions src/RepoGovernance.Web/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ public async Task<IActionResult> Index()
}
}
}
//foreach (RepoLanguage repoLanguage in summaryItem.RepoLanguages)
//{
// Debug.WriteLine(summaryItem.Repo + ":" + repoLanguage.Name + ":" + repoLanguage.Total);
//}
}
//Update the percent
foreach (KeyValuePair<string, int> sortedLanguage in repoLanguagesDictonary.OrderByDescending(x => x.Value))
Expand All @@ -73,11 +69,10 @@ public async Task<IActionResult> Index()
return View(summaryItemsIndex);
}

//[HttpPost]
public async Task<IActionResult> UpdateRow(string user, string owner, string repo)
{
await _ServiceApiClient.UpdateSummaryItem(user, owner, repo);
return RedirectToAction("Index");
return Redirect(Url.RouteUrl(new { controller = "Home", action = "Index" }) + "#" + repo);
}

public async Task<IActionResult> UpdateAll()
Expand Down
1 change: 1 addition & 0 deletions src/RepoGovernance.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<div class="row rowStyle">
<div class="col-md-5">
<div>
<a id="@item.Repo"></a>
<a href="https://github.com/samsmithnz/@item.Repo" target="_blank" class="projectHeader">@item.Repo</a> <span class="publicPrivateLabel">&nbsp;&nbsp;@visibility&nbsp;&nbsp;</span><br>
<span class="descriptionText">@item.RepoSettings.description</span><br>
</div>
Expand Down

0 comments on commit 4d1260c

Please sign in to comment.