Skip to content

Commit

Permalink
Merge f19aa23 into ba3f7e8
Browse files Browse the repository at this point in the history
  • Loading branch information
samsmithnz committed Jan 9, 2023
2 parents ba3f7e8 + f19aa23 commit 8259e19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/RepoGovernance.Web/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using RepoGovernance.Web.Models;
using RepoGovernance.Web.Services;
using System.Diagnostics;
using System.Threading;
using YamlDotNet.Core.Tokens;

namespace RepoGovernance.Web.Controllers;

Expand Down Expand Up @@ -49,10 +51,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 +71,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 8259e19

Please sign in to comment.