Commit fc8a95ff43100771f202cc297beadee2bf48a96d
Fix serving empty repos
cel committed on 11/9/2016, 11:40:57 PMParent: 75d017d7d21a7a049a69ee0330f18c5883d55ee8
Files changed
lib/repos/index.js | changed |
lib/repos/index.js | ||
---|---|---|
@@ -254,17 +254,17 @@ | ||
254 | 254 … | }) |
255 | 255 … | }) |
256 | 256 … | } |
257 | 257 … | |
258 | -R.serveEmptyRepo = function (req, repo) { | |
258 … | +R.renderEmptyRepo = function (req, repo) { | |
259 | 259 … | if (repo.feed != this.web.myId) |
260 | - return this.renderRepoPage(req, repo, 'code', null, null, pull.once( | |
260 … | + return pull.once( | |
261 | 261 … | '<section>' + |
262 | 262 … | '<h3>' + req._t('EmptyRepo') + '</h3>' + |
263 | - '</section>')) | |
263 … | + '</section>') | |
264 | 264 … | |
265 | 265 … | var gitUrl = 'ssb://' + repo.id |
266 | - return this.renderRepoPage(req, repo, 'code', null, null, pull.once( | |
266 … | + return pull.once( | |
267 | 267 … | '<section>' + |
268 | 268 … | '<h3>' + req._t('initRepo.GettingStarted') + '</h3>' + |
269 | 269 … | '<h4>' + req._t('initRepo.CreateNew') + '</h4><pre>' + |
270 | 270 … | 'touch ' + req._t('initRepo.README') + '.md\n' + |
@@ -295,9 +295,9 @@ | ||
295 | 295 … | pull.once('<section class="files">'), |
296 | 296 … | renderRepoTree(req, repo, rev, path), |
297 | 297 … | pull.once('</section>'), |
298 | 298 … | this.renderRepoReadme(req, repo, rev, path) |
299 | - ]) : this.serveEmptyRepo(req, repo) | |
299 … | + ]) : this.renderEmptyRepo(req, repo) | |
300 | 300 … | ])) |
301 | 301 … | } |
302 | 302 … | |
303 | 303 … | /* Repo activity */ |
Built with git-ssb-web