Hi,

I'm banging my head a bit here and was hoping this is an obvious
question that I just can't figure out.

On a custom "show.dryml" page I am not getting an expected 'New
Comment' Link.

I get the expected 'New Comment' link when I simply use:
-------------------------------------------------------------------------------------------------
<show-page>
 <collection: replace>
  <table-plus with="&@commentlist" fields="created_at, this">
    <empty-message:>This version currently has no comments.</empty-
message:>
  </table-plus>
  </collection:>
</show-page>
-------------------------------------------------------------------------------------------------

However the page I wish to show has a lot of other info that some is
shown some isn't and I have added download links, I have the code blow
but I don't get the 'new ...' at the bottom of my 'comments' table

-------------------------------------------------------------------------------------------------
<show-page>
<content-body:>
<p>

<field-list: fields="version, notes, file_file_name, file_file_size,
created_at, updated_at, comments" />
<% if current_user.administrator? -%>
<field-list: fields="status, tester" tag="editor" />
<table-plus:version_change_logs fields="created_at, this, status,
tester">
                        <empty-message:>No history</empty-message:>
</table-plus>

  <table-plus:comments fields="created_at,this">
    <empty-message:>This application currently has no comments.</empty-
message:>
  </table-plus>
  <a:comments action="new">
  <ht key="comments.actions.new">
    New Comment
  </ht>
  </a:comments>


<% else %>
<field-list: fields="status"/>
<% end -%>
<a href="&this.file.url">Download Application</a>

<% if this.report? -%>
&nbsp;<a href="&this.report.url">Download Certification Report</a>

<% end -%>
<% if this.signfile? -%>
&nbsp;<a href="&this.signfile.url">Download Signed Application</a>
<% end -%>

</p>

</content-body:>
</show-page>
-------------------------------------------------------------------------------------------------
Looking at auto/rapid/pages.dryml this is the relevant section, but I
can't figure out how top get this link to work in show.dryml

<a:comments action="new" if="&can_create?(@version.comments)"
param="new-link">
                <ht key="comments.actions.new">
                  New Comment
                </ht>
</a:comments>

Any help appreciated..

Mark

--

You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.


Reply via email to