index.jsView |
---|
157 | 157 | |
158 | 158 | function renderPostForm(repo, placeholder, rows) { |
159 | 159 | return '<input type="radio" class="tab-radio" id="tab1" name="tab" checked="checked"/>' + |
160 | 160 | '<input type="radio" class="tab-radio" id="tab2" name="tab"/>' + |
161 | | - '<div class="tab-links">' + |
| 161 | + '<div id="tab-links" class="tab-links" style="display:none">' + |
162 | 162 | '<label for="tab1" id="write-tab-link" class="tab1-link">Write</label>' + |
163 | 163 | '<label for="tab2" id="preview-tab-link" class="tab2-link">Preview</label>' + |
164 | 164 | '</div>' + |
165 | 165 | '<input type="hidden" id="repo-id" value="' + repo.id + '"/>' + |
268 | 268 | } |
269 | 269 | |
270 | 270 | var issueCommentScript = '(' + function () { |
271 | 271 | var $ = document.getElementById.bind(document) |
| 272 | + $('tab-links').style.display = 'block' |
272 | 273 | $('preview-tab-link').onclick = function (e) { |
273 | 274 | with (new XMLHttpRequest()) { |
274 | 275 | open('POST', '', true) |
275 | 276 | onload = function() { |
787 | 788 | |
788 | 789 | function renderRepoPage(repo, branch, body) { |
789 | 790 | var gitUrl = 'ssb://' + repo.id |
790 | 791 | var gitLink = '<input class="clone-url" readonly="readonly" ' + |
791 | | - 'value="' + gitUrl + '" size="' + (2 + gitUrl.length) + '" ' + |
| 792 | + 'value="' + gitUrl + '" size="61" ' + |
792 | 793 | 'onclick="this.select()"/>' |
793 | 794 | var digsPath = [repo.id, 'digs'] |
794 | 795 | |
795 | 796 | var done = multicb({ pluck: 1, spread: true }) |
1245 | 1246 | numIssues++ |
1246 | 1247 | return '<section class="collapse">' + |
1247 | 1248 | '<a href="' + encodeLink(issue.id) + '">' + |
1248 | 1249 | escapeHTML(issue.title) + |
1249 | | - '<span class="issue-info">' + |
| 1250 | + '<span class="right-bar">' + |
1250 | 1251 | new Date(issue.created_at).toLocaleString() + |
1251 | 1252 | '</span>' + |
1252 | 1253 | '</a>' + |
1253 | 1254 | '</section>' |