質問編集履歴
1
viewを追加しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -262,7 +262,73 @@
|
|
262
262
|
|
263
263
|
```
|
264
264
|
|
265
|
-
|
265
|
+
```
|
266
|
+
|
267
|
+
_side_bar/html/haml
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
.chat-side
|
272
|
+
|
273
|
+
.side-header
|
274
|
+
|
275
|
+
.side-header__box
|
276
|
+
|
277
|
+
%p.side-header__box_username
|
278
|
+
|
279
|
+
= current_user.name
|
280
|
+
|
281
|
+
%ul.side-header__box__menu
|
282
|
+
|
283
|
+
%li.side-header__box__edit-user
|
284
|
+
|
285
|
+
= link_to new_group_path do
|
286
|
+
|
287
|
+
= icon('fas', 'edit')
|
288
|
+
|
289
|
+
%li.side-header__box__new-group
|
290
|
+
|
291
|
+
= link_to edit_user_path(current_user) do
|
292
|
+
|
293
|
+
= icon('fas', 'cog', class: 'icon')
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
.groups
|
298
|
+
|
299
|
+
- current_user.groups.each do |group|
|
300
|
+
|
301
|
+
.group
|
302
|
+
|
303
|
+
= link_to '#' do
|
304
|
+
|
305
|
+
.group__name
|
306
|
+
|
307
|
+
= group.name
|
308
|
+
|
309
|
+
.group__message
|
310
|
+
|
311
|
+
メッセージはまだありません。
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
```
|
316
|
+
|
317
|
+
```
|
318
|
+
|
319
|
+
index/html/haml
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
.wrapper
|
324
|
+
|
325
|
+
= render "shared/side_bar"
|
326
|
+
|
327
|
+
= render "shared/main_chat"
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
```
|
266
332
|
|
267
333
|
### 試したこと
|
268
334
|
|