new message helper

This commit is contained in:
2026-05-12 20:36:28 +02:00
parent da752535b6
commit 3588245624

View File

@@ -106,14 +106,6 @@ module BBS
x: CONT_X, y: CONT_Y + cont_h, style: THEME[:label] x: CONT_X, y: CONT_Y + cont_h, style: THEME[:label]
end end
def render_new_message_form
text 'Type your message and press Enter. Esc cancels.',
x: CONT_X, y: CONT_Y, style: THEME[:normal]
text "#{tc(:bright, @username)}: #{tc(:input, @input)}_",
x: CONT_X, y: CONT_Y + 2
text @status, x: CONT_X, y: CONT_Y + 4, style: THEME[:error] unless @status.empty?
end
def render_wiki_list def render_wiki_list
list_h = cont_h - 3 list_h = cont_h - 3
visible = @items[@scroll, list_h] || [] visible = @items[@scroll, list_h] || []