• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / RepoGovernance / 16896588119

12 Aug 2025 01:36AM UTC coverage: 45.093% (+0.9%) from 44.176%
16896588119

push

github

web-flow
Fix isContributor parameter passing throughout application navigation (#1003)

* Initial plan

* Implement isContributor parameter passing throughout navigation

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

* Complete isContributor parameter implementation with testing guide

Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: samsmithnz <8389039+samsmithnz@users.noreply.github.com>

423 of 1186 branches covered (35.67%)

Branch coverage included in aggregate %.

14 of 90 new or added lines in 5 files covered. (15.56%)

3 existing lines in 3 files now uncovered.

1098 of 2187 relevant lines covered (50.21%)

25.76 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/RepoGovernance.Web/Views/Shared/_Layout.cshtml
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
    <meta charset="utf-8" />
5
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
    <title>@ViewData["Title"] - RepoGovernance.Web</title>
7
    <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
8
    <link rel="stylesheet" href="~/lib/bootstrap-icons/font/bootstrap-icons.css">
9
    <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
10
    <link rel="stylesheet" href="~/RepoGovernance.Web.styles.css" asp-append-version="true" />
11
</head>
12
<body>
13
    <header>
14
        <nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
15
            <div class="container-fluid">
NEW
16
                @if (ViewBag.IsContributor == true)
×
NEW
17
                {
×
18
                    <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index" asp-route-isContributor="true">RepoGovernance.Web</a>
NEW
19
                }
×
20
                else
NEW
21
                {
×
22
                    <a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">RepoGovernance.Web</a>
NEW
23
                }
×
24
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
25
                        aria-expanded="false" aria-label="Toggle navigation">
26
                    <span class="navbar-toggler-icon"></span>
27
                </button>
28
                <div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
29
                    <ul class="navbar-nav flex-grow-1">
30
                        <li class="nav-item">
NEW
31
                            @if (ViewBag.IsContributor == true)
×
NEW
32
                            {
×
33
                                <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index" asp-route-isContributor="true">Home</a>
NEW
34
                            }
×
35
                            else
NEW
36
                            {
×
37
                                <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
NEW
38
                            }
×
39
                        </li>
40
                        <li class="nav-item">
NEW
41
                            @if (ViewBag.IsContributor == true)
×
NEW
42
                            {
×
43
                                <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="TaskList" asp-route-isContributor="true">Task List</a>
NEW
44
                            }
×
45
                            else
NEW
46
                            {
×
47
                                <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="TaskList">Task List</a>
NEW
48
                            }
×
49
                        </li>
50
                        <li class="nav-item">
NEW
51
                            @if (ViewBag.IsContributor == true)
×
NEW
52
                            {
×
53
                                <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy" asp-route-isContributor="true">Privacy</a>
NEW
54
                            }
×
55
                            else
NEW
56
                            {
×
57
                                <a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
NEW
58
                            }
×
59
                        </li>
60
                    </ul>
61
                </div>
62
            </div>
63
        </nav>
64
    </header>
65
    <div class="container">
66
        <main role="main" class="pb-3">
67
            @RenderBody()
68
        </main>
69
    </div>
70

71
    <footer class="border-top footer text-muted">
72
        <div class="container">
NEW
73
            @if (ViewBag.IsContributor == true)
×
NEW
74
            {
×
75
                <text>&copy; @DateTime.Now.Year.ToString() - RepoGovernance.Web - <a asp-area="" asp-controller="Home" asp-action="Privacy" asp-route-isContributor="true">Privacy</a></text>
NEW
76
            }
×
77
            else
NEW
78
            {
×
79
                <text>&copy; @DateTime.Now.Year.ToString() - RepoGovernance.Web - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a></text>
NEW
80
            }
×
81
        </div>
82
    </footer>
83
    <script src="~/lib/jquery/dist/jquery.min.js"></script>
84
    <script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
85
    <script src="https://code.iconify.design/2/2.2.1/iconify.min.js"></script>
86
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
87
    <script src="~/js/site.js" asp-append-version="true"></script>
88
    @await RenderSectionAsync("Scripts", required: false)
89
    <script>
90
        $(document).ready(function(){
91
            $('[data-toggle="tooltip"]').tooltip();   
92
        });
93
    </script>
94
</body>
95
</html>
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc