xaizek / uncov (License: AGPLv3+) (since 2018-12-07)
Uncov(er) is a tool that collects and processes code coverage reports.
Commit 030fd27f89d86d41c0ab40e28fe909fe11331b2c

Fix some links to builds having number separators
When build number is greater than 999.

Continuation of 7d2b21e428a5e78a14d681ada3f7573b1ef260e4.
Author: xaizek
Author date (UTC): 2020-01-07 16:56
Committer name: xaizek
Committer date (UTC): 2020-01-07 16:59
Parent(s): 5e2593b3684990104338cbecd17ab609d7c20fe9
Signing key: 99DC5E4DB05F6BE2
Tree: 6bc2b45975cb95a36dd72b87b23046c17b10ecef
File Lines added Lines deleted
web/diff.ecpp 6 6
File web/diff.ecpp changed (mode: 100644) (index 8d1e3ff..d248253)
... ... along with uncov. If not, see <http://www.gnu.org/licenses/>.
86 86 <div class="sidenav"> <div class="sidenav">
87 87 <a href="/builds">All builds</a> <a href="/builds">All builds</a>
88 88 <a class="branch" href="/branches/<$ buildInfo[5] $>">Current branch</a> <a class="branch" href="/branches/<$ buildInfo[5] $>">Current branch</a>
89 <a href="/builds/<$ build->getId() $>">Current build</a>
89 <a href="/builds/<$ buildIdStr $>">Current build</a>
90 90 <br/> <br/>
91 91 <a class="action" href="/changes/<$ buildIdStr $>">Changed files</a> <a class="action" href="/changes/<$ buildIdStr $>">Changed files</a>
92 92 </div> </div>
 
... ... along with uncov. If not, see <http://www.gnu.org/licenses/>.
128 128 </h3> </h3>
129 129
130 130 <h4> <h4>
131 Path: <a class="path" href="/builds/<$ build->getId() $>">&lt;root&gt;</a>
131 Path: <a class="path" href="/builds/<$ buildIdStr $>">&lt;root&gt;</a>
132 132 % std::string pathPrefix; % std::string pathPrefix;
133 133 % for (const std::string &entry : split(fileInfo[0], '/')) { % for (const std::string &entry : split(fileInfo[0], '/')) {
134 134 % pathPrefix += '/' + entry; % pathPrefix += '/' + entry;
135 135 % const std::string slash = pathPrefix == "/" + fileInfo[0] ? "" : "/"; % const std::string slash = pathPrefix == "/" + fileInfo[0] ? "" : "/";
136 136 / <a class="path" / <a class="path"
137 href="/builds/<$ build->getId() $><$ pathPrefix + slash $>"><$ entry $></a>
137 href="/builds/<$ buildIdStr $><$ pathPrefix + slash $>"><$ entry $></a>
138 138 % } % }
139 139 </h4> </h4>
140 140
 
... ... along with uncov. If not, see <http://www.gnu.org/licenses/>.
181 181
182 182 % } else { % } else {
183 183 % log_warn("Can't find requested file " + filePath + " in build #" % log_warn("Can't find requested file " + filePath + " in build #"
184 % + std::to_string(buildId));
184 % + buildIdStr);
185 185 <h1>No such file</h1> <h1>No such file</h1>
186 186 % } % }
187 187 % } else { % } else {
188 % log_warn("Can't build preceding build #" + std::to_string(buildId));
188 % log_warn("Can't build preceding build #" + buildIdStr);
189 189 <h1>No previous build</h1> <h1>No previous build</h1>
190 190 % } % }
191 191 % } else { % } else {
192 % log_warn("Can't find requested build #" + std::to_string(buildId));
192 % log_warn("Can't find requested build #" + buildIdStr);
193 193 <h1>No such build</h1> <h1>No such build</h1>
194 194 % } % }
195 195
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/uncov

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/uncov

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master