6diagrams / 6diagrams.org (http://6diagrams.com/6diagrams.org/)

Re-innovates forum software. Existing forum software feels dated and lag behind the times, while social sites such as Reddit, Hacker News, Digg, and Delicious are pushing the boundaries. 6diagrams takes inspiration from those social sites and tries to bring some of the innovations back to forum community.

commit 47: 1935fe51c5e7
parent 46: 2aba4d7beb1d
branch: default
tags: tip
fixed width of textarea
Didip Kerabat / didip
3 months ago

Changed (Δ36 bytes):

Up to file-list six_diagrams/templates/postings/detail.mako:

101
101
  function build_comment_form(form_action, body) {
102
102
    if((body == null) || (body == undefined)) { body = '' }
103
103
    result = '<form style="margin-top: 14px" method="post" action="'+ form_action +'">';
104
    result += '<textarea class="entry" name="body" style="margin-top: 14px">'+ body +'</textarea>';
104
    result += '<textarea class="input_textarea" name="body" style="margin-top: 14px">'+ body +'</textarea>';
105
105
    result += '<div class="button_right_align" style="margin-top: 14px">';
106
106
    result += '<input type="submit" name="comment_save" value="Submit" />';
107
107
    result += '</div></form>';

Up to file-list six_diagrams/templates/view_components/comment.mako:

5
5
<%def name="comment_form_box()">
6
6
<div class="top_comment_form center">
7
7
  <form method="post" action="${c.url_handler.url_for_posting(c.posting, 'top_response')}" style="margin-top: 14px">
8
    <textarea class="entry" name="body"></textarea>
8
    <textarea class="input_textarea" name="body"></textarea>
9
9
    <div class="button_right_align" style="margin-top: 14px">
10
10
      <input class="top_reply_submit" type="submit" name="comment_save" value="Submit" />
11
11
    </div>
16
16
<%def name="ajax_comment_form_box()">
17
17
<div class="box posting_form light_beige_bg">
18
18
  <form name="new_comment" method="POST" action="${c.form_action}">
19
    <textarea class="entry" name="body">${h.sanitize(c.comment.body)}</textarea>
19
    <textarea class="input_textarea" name="body">${h.sanitize(c.comment.body)}</textarea>
20
20
21
21
    <div style="margin-top: 14px">
22
22
      <div class="button_right_align">

Up to file-list six_diagrams/templates/view_components/forum.mako:

93
93
      </select>
94
94
    </div>
95
95
96
    <textarea style="width: 100%" class="entry" name="body"></textarea>
96
    <textarea style="width: 100%" class="input_textarea" name="body"></textarea>
97
97
  </form>
98
98
</div>
99
99
</%def>