Fossil SCM

In the forum editor, remove the 'Posting as NAME' label and relabel the submit button to include the user's name. Suggested in [forum:a6256fd7f867ec42|forum post a6256fd7].

stephan 2026-07-04 11:21 UTC trunk
Commit 09ec3734a5009496a05b92b47f9d970c01af28cc01a4eb3ee0e4e48f58dba0ff
--- src/fossil.page.forumpost.js
+++ src/fossil.page.forumpost.js
@@ -171,11 +171,11 @@
171171
D.button("Preview", e=>this.#preview()),
172172
'title',
173173
'Preview your edits.'
174174
);
175175
e.button.submit = D.attr(
176
- D.button("Submit"),
176
+ D.button("Post as "+F.user.name),
177177
'title',
178178
'Save any edits to the server. Not permitted until Preview has been used.'
179179
);
180180
if( this.#draft && !opt.hideStash ){
181181
e.button.stash = D.attr(
@@ -433,11 +433,12 @@
433433
}
434434
});
435435
e.buttons.append(e.button.toggleHeader);
436436
}
437437
438
- {
438
+ if(0){
439
+ // Tentatively replaced with the user name in the Submit button
439440
const eLbl = D.label(false, "Posting as "+F.user.name)
440441
eLbl.classList.add('logged-in-as');
441442
e.buttons.append(eLbl);
442443
}
443444
444445
--- src/fossil.page.forumpost.js
+++ src/fossil.page.forumpost.js
@@ -171,11 +171,11 @@
171 D.button("Preview", e=>this.#preview()),
172 'title',
173 'Preview your edits.'
174 );
175 e.button.submit = D.attr(
176 D.button("Submit"),
177 'title',
178 'Save any edits to the server. Not permitted until Preview has been used.'
179 );
180 if( this.#draft && !opt.hideStash ){
181 e.button.stash = D.attr(
@@ -433,11 +433,12 @@
433 }
434 });
435 e.buttons.append(e.button.toggleHeader);
436 }
437
438 {
 
439 const eLbl = D.label(false, "Posting as "+F.user.name)
440 eLbl.classList.add('logged-in-as');
441 e.buttons.append(eLbl);
442 }
443
444
--- src/fossil.page.forumpost.js
+++ src/fossil.page.forumpost.js
@@ -171,11 +171,11 @@
171 D.button("Preview", e=>this.#preview()),
172 'title',
173 'Preview your edits.'
174 );
175 e.button.submit = D.attr(
176 D.button("Post as "+F.user.name),
177 'title',
178 'Save any edits to the server. Not permitted until Preview has been used.'
179 );
180 if( this.#draft && !opt.hideStash ){
181 e.button.stash = D.attr(
@@ -433,11 +433,12 @@
433 }
434 });
435 e.buttons.append(e.button.toggleHeader);
436 }
437
438 if(0){
439 // Tentatively replaced with the user name in the Submit button
440 const eLbl = D.label(false, "Posting as "+F.user.name)
441 eLbl.classList.add('logged-in-as');
442 e.buttons.append(eLbl);
443 }
444
445

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button