git ssb

30+

cel / git-ssb-web



Commit 55d2dbe265ce7a96e070134aa13efe6addfe7b2f

tidy and fixup of breaking changes

mix irving committed on 11/3/2016, 9:20:53 AM
Parent: 887a7d85d244bec1a2a3868e8203868fdfe0519f

Files changed

lib/forms.jschanged
lib/repos/index.jschanged
lib/repos/issues.jschanged
lib/repos/pulls.jschanged
lib/users.jschanged
lib/forms.jsView
@@ -27,28 +27,27 @@
2727
2828 if (!enabled) {
2929 return h('form', {class: 'petname', action: '', method: 'post'}, [
3030 header,
31- h('br', {clear: 'all'}, [])
31 + h('br', {clear: 'all'})
3232 ])
3333 }
3434
3535 return h('form', {class: 'petname', action: '', method: 'post'}, [
3636 h('input', {
3737 type: 'checkbox', class: 'name-checkbox', id: inputId,
3838 onfocus: 'this.form.name.focus()'
39- }, []),
39 + }),
4040 h('input', {
4141 class: 'name', name: 'name', value: u.escape(name),
4242 onkeyup: 'if (event.keyCode == 27) this.form.reset()'
43- }, []),
44- h('input', {type: 'hidden', name: 'action', value: action}, []),
45- h('input', {type: 'hidden', name: 'id', value: u.escape(id)}, []),
43 + }),
44 + h('input', {type: 'hidden', name: 'action', value: action}),
45 + h('input', {type: 'hidden', name: 'id', value: u.escape(id)}),
4646 h('label', {class: 'name-toggle', for: inputId, title: title}, [
4747 h('i', '✍')
4848 ]),
49- h('input', {class: 'btn name-btn', type: 'submit', value: req._t('Rename')}, []),
50- // NB this needs an empty 3rd arg to render for some reason?
49 + h('input', {class: 'btn name-btn', type: 'submit', value: req._t('Rename')}),
5150 header
5251 ])
5352 }
5453
lib/repos/index.jsView
@@ -233,8 +233,12 @@
233233 ? once('')
234234 : h('small', {class: 'bgslash'}, req._t('ForkedFrom', {
235235 repo: `${u.link([repo.upstream.feed], upstreamAuthorName)} / ${u.link([repo.upstream.id], upstreamName)}`
236236 }))
237 + //u.when(!!repo.upstream,
238 + //h('small', {class: 'bgslash'}, req._t('ForkedFrom', {
239 + //repo: `${u.link([repo.upstream.feed], upstreamAuthorName)} / ${u.link([repo.upstream.id], upstreamName)}`
240 + //}))
237241 ),
238242 u.nav([
239243 [[repo.id], req._t('Code'), 'code'],
240244 [[repo.id, 'activity'], req._t('Activity'), 'activity'],
lib/repos/issues.jsView
@@ -43,14 +43,15 @@
4343 '<button class="btn btn-primary">&plus; ' +
4444 req._t(isPRs ? 'pullRequest.New' : 'issue.New') +
4545 '</button>' +
4646 '</form>') +
47- '<h3>' + req._t(isPRs ? 'PullRequests' : 'Issues') + '</h3>' +
48- u.nav([
49- ['?', req._t('issues.Open'), 'open'],
50- ['?state=closed', req._t('issues.Closed'), 'closed'],
51- ['?state=all', req._t('issues.All'), 'all']
52- ], state)),
47 + '<h3>' + req._t(isPRs ? 'PullRequests' : 'Issues') + '</h3>'
48 + ),
49 + u.nav([
50 + ['?', req._t('issues.Open'), 'open'],
51 + ['?state=closed', req._t('issues.Closed'), 'closed'],
52 + ['?state=all', req._t('issues.All'), 'all']
53 + ], state),
5354 pull(
5455 (isPRs ? self.web.pullReqs : self.web.issues).list({
5556 repo: repo.id,
5657 project: repo.id,
lib/repos/pulls.jsView
@@ -69,14 +69,13 @@
6969 headBranchLink + '</code>')
7070 }) + '</section>')
7171 })
7272 }),
73- pull.once(
74- u.nav([
75- [[pr.id], req._t('Discussion'), 'activity'],
76- [[pr.id, 'commits'], req._t('Commits'), 'commits'],
77- [[pr.id, 'files'], req._t('Files'), 'files']
78- ], page)),
73 + u.nav([
74 + [[pr.id], req._t('Discussion'), 'activity'],
75 + [[pr.id, 'commits'], req._t('Commits'), 'commits'],
76 + [[pr.id, 'files'], req._t('Files'), 'files']
77 + ], page),
7978 u.readNext(function (cb) {
8079 if (page == 'commits')
8180 self.renderPullReqCommits(req, pr, repo, headRepo, cb)
8281 else if (page == 'files')
lib/users.jsView
@@ -40,14 +40,14 @@
4040 '<img class="profile-icon"' +
4141 ' src="/' + encodeURIComponent(about.image) + '"' +
4242 ' alt="' + u.escape(about.name) + '"> ' : '') +
4343 u.escape(about.name), true) +
44- '<code class="user-id">' + feedId + '</code></h2>' +
44 + '<code class="user-id">' + feedId + '</code></h2>'),
4545 u.nav([
4646 [[feedId], req._t('Activity'), 'activity'],
4747 [[feedId, 'repos'], req._t('Repos'), 'repos'],
4848 [[feedId, 'digs'], req._t('ReposDug'), 'digs'],
49- ], page)),
49 + ], page),
5050 body
5151 ])))
5252 })
5353 })

Built with git-ssb-web