tweaks.naml

<override_subroutine name="view_standard" requires="basic,nabble,servlet">
  <n.apply_app_namespace.view_standard_page />
</override_subroutine>

<override_macro name="app_body_header" requires="node_page,servlet">
    <n.page_node.>
        <div id="forum-header">
            <h1 id="forum-title" class="app-title-[n.id/]"><n.subject/></h1>
            <div id="description-box">
                <n.mailing_list_information/>
                <n.regex_replace_all. pattern="\{/?long-desc\}" replacement=" ">
                    <n.regex_replace_all. pattern="\{short-desc\}.*?\{/short-desc\}" replacement=" ">
                        <n.node_message_as_html/>
                    </n.regex_replace_all.>
                </n.regex_replace_all.>
            </div>
            <div id="search-box" class="search-box">
                <n.search_box/>
            </div>
        </div>
    </n.page_node.>    
</override_macro>

<override_macro name="subcategories_column" parameters="title,width">
  <n.table_column>
    <head>
      <td class="[n.column_default_border/] subcategories-column nowrap" style="[n.width_style.width/]" colspan="2">
        <n.default. to="[t]Subcategories[/t]"><n.title/></n.default.>
      </td>
    </head>
    <body>
      <td class="[n.column_default_border/]" style="width:1em">
        <n.if.current_node.is_app>
          <then><img src="/images/forum.png" width="25" height="23"/></then>
          <else><img src="/images/thread.png" width="25" height="23"/></else>
        </n.if.current_node.is_app>
      </td>
      <td class="weak-color [n.column_default_border/]" style="width:60%">
        <div style="font-weight:bold;margin-bottom:.3em">
          <n.current_node.node_link/>
        </div>
        <span class="weak-color node-snippet" style="font-size:90%;display:block;padding-bottom:.5em">
          <n.if.current_node.is_app>
            
            <then>
              <n.regex_replace_all. pattern="\{/?short-desc\}" replacement=" ">       
                <n.regex_replace_all. pattern="\{long-desc\}.*?\{/long-desc\}" replacement=" ">       
                  <n.current_node.node_message_as_html/>
                </n.regex_replace_all.>       
              </n.regex_replace_all.>
            </then>
            
            <else>
              <n.truncate. size="300">
                <n.remove_html_tags.current_node.message.as_text/>
              </n.truncate.>
            </else>
          </n.if.current_node.is_app>
          <n.if.current_node.has_subapps>
            <then>
              <div class="sub-forums weak-color">
                <b><t>Sub-Forums</t>:</b>
                <n.current_node.subapps_list.loop.>
                  <n.current_node.node_link/>&nbsp;
                </n.current_node.subapps_list.loop.>
              </div>
            </then>
          </n.if.current_node.has_subapps>
        </span>
      </td>
    </body>
  </n.table_column>
</override_macro>