質問編集履歴
2
質問の変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
コメント表示の横
|
1
|
+
コメント表示の横の、ユーザー名の見栄えをよくしたい
|
test
CHANGED
@@ -2,13 +2,19 @@
|
|
2
2
|
|
3
3
|
現在このような状態です
|
4
4
|
|
5
|
+
https://gyazo.com/40b18117d86412779d380dcdeb01a219
|
6
|
+
|
7
|
+
###(aaaなどがテキストで、testの書いてあるのでユーザ名です)
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
これを
|
12
|
+
|
5
|
-
https://gyazo.com/
|
13
|
+
https://gyazo.com/c97437c654fefa24c3bf6f206fb47378
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
14
|
+
|
11
|
-
|
15
|
+
このような形にしたいです
|
16
|
+
|
17
|
+
|
12
18
|
|
13
19
|
|
14
20
|
|
@@ -138,7 +144,7 @@
|
|
138
144
|
|
139
145
|
<li class="comments_list">
|
140
146
|
|
141
|
-
<%= link_to comment.text
|
147
|
+
<%= link_to comment.text + @prototype.user.name root_path, class: :comment_user %>
|
142
148
|
|
143
149
|
<% end %>
|
144
150
|
|
1
箇条書きに修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
コメント表示
|
1
|
+
コメント表示の横に、ユーザー名を追加したい
|
test
CHANGED
@@ -6,9 +6,9 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
9
|
+
|
10
|
-
|
10
|
+
|
11
|
-
それ
|
11
|
+
それぞれのコメントの横に投稿者の名前が表示されるようにしたいです
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -132,12 +132,12 @@
|
|
132
132
|
|
133
133
|
<%# 投稿に紐づくコメントを一覧する処理を記述する %>
|
134
134
|
|
135
|
-
<li class="comments_list">
|
136
|
-
|
137
135
|
<% if @comments %>
|
138
136
|
|
139
137
|
<% @comments.each do |comment| %>
|
140
138
|
|
139
|
+
<li class="comments_list">
|
140
|
+
|
141
141
|
<%= link_to comment.text, root_path, class: :comment_user %>
|
142
142
|
|
143
143
|
<% end %>
|