|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | + <title>StyleCopAnalyzers Status</title> |
| 7 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css" /> |
| 8 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap.min.css" /> |
| 9 | + <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4/css/bootstrap-theme.min.css" /> |
| 10 | + |
| 11 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
| 12 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/jsrender/0.9.90/jsrender.min.js"></script> |
| 13 | + <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script> |
| 14 | + |
| 15 | + <style type="text/css"> |
| 16 | + body { |
| 17 | + padding-top: 50px; |
| 18 | + padding-bottom: 20px; |
| 19 | + } |
| 20 | + |
| 21 | + /* Set padding to keep content from hitting the edges */ |
| 22 | + .body-content { |
| 23 | + padding-left: 15px; |
| 24 | + padding-right: 15px; |
| 25 | + } |
| 26 | + |
| 27 | + /* Override the default bootstrap behavior where horizontal description lists |
| 28 | + * will truncate terms that are too long to fit in the left column |
| 29 | + */ |
| 30 | + .dl-horizontal dt { |
| 31 | + white-space: normal; |
| 32 | + } |
| 33 | + |
| 34 | + /* Set width on the form input elements since they're 100% wide by default */ |
| 35 | + input, |
| 36 | + select, |
| 37 | + textarea { |
| 38 | + max-width: 280px; |
| 39 | + } |
| 40 | + </style> |
| 41 | +</head> |
| 42 | +<body> |
| 43 | + <div class="navbar navbar-inverse navbar-fixed-top"> |
| 44 | + <div class="container"> |
| 45 | + <div class="navbar-header"> |
| 46 | + <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
| 47 | + <span class="icon-bar"></span> |
| 48 | + </button> |
| 49 | + <a class="navbar-brand" href="#">StyleCopAnalyzers Status</a> |
| 50 | + @Html.ActionLink("StyleCopAnalyzers Status", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" }) |
| 51 | + </div> |
| 52 | + <div class="navbar-collapse collapse"> |
| 53 | + <ul class="nav navbar-nav"></ul> |
| 54 | + </div> |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + <div class="container body-content"> |
| 58 | + <h2>This page is reporting the current status of <a href="https://github.com/DotNetAnalyzers/StyleCopAnalyzers">StyleCopAnalyzers</a></h2> |
| 59 | + |
| 60 | + <div class="table-responsive"> |
| 61 | + <table id="no-more-tables" class="table table-hover table-condensed"> |
| 62 | + <thead> |
| 63 | + <tr> |
| 64 | + <td> |
| 65 | + Category |
| 66 | + </td> |
| 67 | + <td> |
| 68 | + ID |
| 69 | + </td> |
| 70 | + <td> |
| 71 | + Title |
| 72 | + </td> |
| 73 | + <td> |
| 74 | + Has Implementation |
| 75 | + </td> |
| 76 | + <td> |
| 77 | + Status |
| 78 | + </td> |
| 79 | + <td style="overflow: visible; width: 0;"> |
| 80 | + Code Fix |
| 81 | + </td> |
| 82 | + <td></td> |
| 83 | + </tr> |
| 84 | + </thead> |
| 85 | + <tbody id="renderedDiagnostics"></tbody> |
| 86 | + </table> |
| 87 | + |
| 88 | + <div id="renderedCommitInfo"></div> |
| 89 | + </div> |
| 90 | + |
| 91 | + <script id="diagnostic-color" type="text/x-jsrender"> |
| 92 | + {{if HasImplementation}} |
| 93 | + {{if Status !== "DisabledNoTests"}} |
| 94 | + success |
| 95 | + {{else}} |
| 96 | + warning |
| 97 | + {{/if}} |
| 98 | + {{else }} |
| 99 | + danger |
| 100 | + {{/if}} |
| 101 | + </script> |
| 102 | + |
| 103 | + <script id="diagnostic" type="text/x-jsrender"> |
| 104 | + <tr class="{{include tmpl="#diagnostic-color"/}}"> |
| 105 | + <td> |
| 106 | + {{>Category.replace("StyleCop.CSharp.", "")}} |
| 107 | + </td> |
| 108 | + <td> |
| 109 | + <a href="{{>HelpLink}}">{{>Id}}</a> |
| 110 | + </td> |
| 111 | + <td> |
| 112 | + {{>Title}} |
| 113 | + </td> |
| 114 | + <td> |
| 115 | + {{>HasImplementation}} |
| 116 | + </td> |
| 117 | + <td> |
| 118 | + {{>Status}} |
| 119 | + </td> |
| 120 | + <td style="overflow: visible; width: 0;"> |
| 121 | + {{if CodeFixStatus === "Implemented"}} |
| 122 | + <i class="fa fa-check" style="color: green;"></i> |
| 123 | + {{else CodeFixStatus === NotImplemented}} |
| 124 | + <i class="fa fa-times" style="color: red;"></i> |
| 125 | + {{else}} |
| 126 | + <i class="fa fa-times" style="color: red;"></i> |
| 127 | + {{/if}} |
| 128 | + </td> |
| 129 | + <td></td> |
| 130 | + </tr> |
| 131 | + |
| 132 | + </script> |
| 133 | + |
| 134 | + <script id="diagnostics" type="text/x-jsrender"> |
| 135 | + {{for diagnostics tmpl="#diagnostic"/}} |
| 136 | + </script> |
| 137 | + |
| 138 | + <script id="commitInfo" type="text/x-jsrender"> |
| 139 | + <h3>Commit information</h3> |
| 140 | + <table> |
| 141 | + <tr> |
| 142 | + <td>Sha1</td> |
| 143 | + <td><a href="https://github.com/DotNetAnalyzers/StyleCopAnalyzers/tree/{{>Sha}}">{{>Sha}}</a></td> |
| 144 | + </tr> |
| 145 | + <tr> |
| 146 | + <td>Message</td> |
| 147 | + <td>{{>Message}}</td> |
| 148 | + </tr> |
| 149 | + <tr> |
| 150 | + <td>Author</td> |
| 151 | + <td>{{>Author}} ({{>Author.When}}</td> |
| 152 | + </tr> |
| 153 | + <tr> |
| 154 | + <td>Committer</td> |
| 155 | + <td>{{>Committer}} ({{>Committer.When}}</td> |
| 156 | + </tr> |
| 157 | + <tr> |
| 158 | + <td>Parents</td> |
| 159 | + <td>{{>Parents}}</td> |
| 160 | + </tr> |
| 161 | + </table> |
| 162 | + </script> |
| 163 | + |
| 164 | + <script type="text/javascript"> |
| 165 | + $.getJSON("https://ci.appveyor.com/api/projects/sharwell/stylecopanalyzers/artifacts/StyleCop.Analyzers.Status.json?branch=master&pr=false", function (data) { |
| 166 | + $("#renderedDiagnostics").html($.templates($("#diagnostics").html()).render(data)); |
| 167 | + $("#renderedCommitInfo").html($.templates($("#commitInfo").html()).render(data.git)); |
| 168 | + }); |
| 169 | + </script> |
| 170 | + <hr /> |
| 171 | + <footer></footer> |
| 172 | + </div> |
| 173 | + |
| 174 | +</body> |
| 175 | +</html> |
0 commit comments