Skip to content

Commit b30ec32

Browse files
author
Rahoul Baruah
committed
added version to the display, rearranged the form
1 parent d4e8f90 commit b30ec32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/views/comments/_comment.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<%= gravatar_for comment %>
33
<p class="status">
44
<%= link_to h(comment.code.slug_name), code_by_slug_path(comment.code.slug_name), :class => 'gem' %>
5+
<%= "(#{comment.version})" unless comment.version.blank? %>
56
is <%= opinion_for comment %><br />
67
for <%= name_link_for comment %> <span class="lighterblue">(<%= comment.platform %>)</span><br />
78
</p>

app/views/comments/_new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<ul>
44
<li> <%= form.label :works_for_me %> <%= form.radio_button :works_for_me, true %> Yes <%= form.radio_button :works_for_me, false %> No</li>
55
<li> <%= form.label :version %> <br/> <%= form.text_field :version, :size => 10 %> </li>
6-
<li> <%= form.label :body, "Comments " %> <br/> <%= form.text_area :body, :rows => 3 %> </li>
76
<li> <%= form.label :platform_id %> <br/> <%= form.collection_select :platform_id, Platform.all, :id, :name %> </li>
7+
<li> <%= form.label :body, "Comments " %> <br/> <%= form.text_area :body, :rows => 3 %> </li>
88
<li> <%= form.label :name %> <br/> <%= form.text_field :name %> </li>
99
<li> <%= form.label :email %> <br/> <%= form.text_field :email %> </li>
1010
<li> <%= form.label :url %> <br/> <%= form.text_field :url %> </li>

0 commit comments

Comments
 (0)