git ssb

30+

cel / git-ssb-web



Commit dc7ec84172d5818fd3e4a31a04781ecb4edc7f27

Add renaming issues

Charles Lehner committed on 3/26/2016, 8:19:38 PM
Parent: 4d165189ac4cfd3c396afe97358fbdae916391f7

Files changed

index.jschanged
static/styles.csschanged
index.jsView
@@ -1123,12 +1123,12 @@
11231123
11241124 function serveRepoIssue(req, repo, issue, path) {
11251125 return renderRepoPage(repo, null, cat([
11261126 pull.once(
1127- '<h3>' +
1128- issue.title +
1129- '<code class="user-id">' + issue.id + '</code>' +
1130- '</h3>' +
1127+ nameForm(isPublic, issue.id, issue.title, 'issue-title',
1128+ 'Rename the issue',
1129+ '<h3>' + issue.title + '</h3>') +
1130+ '<code>' + issue.id + '</code>' +
11311131 '<section>' +
11321132 (issue.open
11331133 ? '<strong class="issue-status open">Open</strong>'
11341134 : '<strong class="issue-status closed">Closed</strong>')),
static/styles.cssView
@@ -76,9 +76,10 @@
7676 .repo-title h2 {
7777 color: #888;
7878 }
7979
80-.petname h2 {
80+.petname h2,
81+.petname h3 {
8182 float: left;
8283 }
8384
8485 .right-bar {
@@ -116,8 +117,9 @@
116117 opacity: 1;
117118 }
118119
119120 .name:focus ~ h2 :last-child,
121+.name:focus ~ h3,
120122 .name:not(:focus) ~ .name-btn:not(:active) {
121123 display: none;
122124 }
123125

Built with git-ssb-web