aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/glsa/_comments.html.erb')
-rw-r--r--app/views/glsa/_comments.html.erb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/views/glsa/_comments.html.erb b/app/views/glsa/_comments.html.erb
new file mode 100644
index 0000000..e36c015
--- /dev/null
+++ b/app/views/glsa/_comments.html.erb
@@ -0,0 +1,16 @@
+ <div class="box" id="comments">
+ <h2>
+ <span class="toolbar">
+ <a href="javascript://" onclick="addCommentDialog(<%= @glsa.id %>);" title="Add comment">
+ <img src="/images/icons/plus.png" alt="Add comment" />
+ </a>
+ <a href="javascript://" onclick="GLSAMaker.misc.ui.dock($('comments'));" title="Dock right">
+ <img src="/images/icons/dock-right.png" alt="Dock right" />
+ </a>
+ </span>
+ <img src="/images/icons/comment.png" alt="comment" /> Comments
+ </h2>
+ <ul id="commentslist">
+ <%= render :partial => "comment", :collection => @glsa.comments %>
+ </ul>
+ </div> \ No newline at end of file