Commit dc7ec84172d5818fd3e4a31a04781ecb4edc7f27
Add renaming issues
Charles Lehner committed on 3/26/2016, 8:19:38 PMParent: 4d165189ac4cfd3c396afe97358fbdae916391f7
Files changed
index.js | changed |
static/styles.css | changed |
index.js | ||
---|---|---|
@@ -1123,12 +1123,12 @@ | ||
1123 | 1123 | |
1124 | 1124 | function serveRepoIssue(req, repo, issue, path) { |
1125 | 1125 | return renderRepoPage(repo, null, cat([ |
1126 | 1126 | 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>' + | |
1131 | 1131 | '<section>' + |
1132 | 1132 | (issue.open |
1133 | 1133 | ? '<strong class="issue-status open">Open</strong>' |
1134 | 1134 | : '<strong class="issue-status closed">Closed</strong>')), |
static/styles.css | ||
---|---|---|
@@ -76,9 +76,10 @@ | ||
76 | 76 | .repo-title h2 { |
77 | 77 | color: #888; |
78 | 78 | } |
79 | 79 | |
80 | -.petname h2 { | |
80 | +.petname h2, | |
81 | +.petname h3 { | |
81 | 82 | float: left; |
82 | 83 | } |
83 | 84 | |
84 | 85 | .right-bar { |
@@ -116,8 +117,9 @@ | ||
116 | 117 | opacity: 1; |
117 | 118 | } |
118 | 119 | |
119 | 120 | .name:focus ~ h2 :last-child, |
121 | +.name:focus ~ h3, | |
120 | 122 | .name:not(:focus) ~ .name-btn:not(:active) { |
121 | 123 | display: none; |
122 | 124 | } |
123 | 125 |
Built with git-ssb-web