aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2011-05-03 21:09:59 +0200
committerAlex Legler <alex@a3li.li>2011-05-03 21:09:59 +0200
commita1631f3a69094ddece84e7af69a7d2f56736ee2f (patch)
treef391d76b645328402ea897a896b7f98a93ec2501 /app/views/glsa/_comments.html.erb
parentglsa_controller/glsa model: Allow for re-releases (updated revisions) of sent... (diff)
downloadglsamaker-a1631f3a69094ddece84e7af69a7d2f56736ee2f.tar.gz
glsamaker-a1631f3a69094ddece84e7af69a7d2f56736ee2f.tar.bz2
glsamaker-a1631f3a69094ddece84e7af69a7d2f56736ee2f.zip
Extract comment box into an own partial. Add dock ability.
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