git ssb

30+

cel / git-ssb-web



Commit fc8a95ff43100771f202cc297beadee2bf48a96d

Fix serving empty repos

cel committed on 11/9/2016, 11:40:57 PM
Parent: 75d017d7d21a7a049a69ee0330f18c5883d55ee8

Files changed

lib/repos/index.jschanged
lib/repos/index.jsView
@@ -254,17 +254,17 @@
254254 })
255255 })
256256 }
257257
258-R.serveEmptyRepo = function (req, repo) {
258 +R.renderEmptyRepo = function (req, repo) {
259259 if (repo.feed != this.web.myId)
260- return this.renderRepoPage(req, repo, 'code', null, null, pull.once(
260 + return pull.once(
261261 '<section>' +
262262 '<h3>' + req._t('EmptyRepo') + '</h3>' +
263- '</section>'))
263 + '</section>')
264264
265265 var gitUrl = 'ssb://' + repo.id
266- return this.renderRepoPage(req, repo, 'code', null, null, pull.once(
266 + return pull.once(
267267 '<section>' +
268268 '<h3>' + req._t('initRepo.GettingStarted') + '</h3>' +
269269 '<h4>' + req._t('initRepo.CreateNew') + '</h4><pre>' +
270270 'touch ' + req._t('initRepo.README') + '.md\n' +
@@ -295,9 +295,9 @@
295295 pull.once('<section class="files">'),
296296 renderRepoTree(req, repo, rev, path),
297297 pull.once('</section>'),
298298 this.renderRepoReadme(req, repo, rev, path)
299- ]) : this.serveEmptyRepo(req, repo)
299 + ]) : this.renderEmptyRepo(req, repo)
300300 ]))
301301 }
302302
303303 /* Repo activity */

Built with git-ssb-web