質問編集履歴
1
コード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -23,3 +23,121 @@
|
|
23
23
|
<% end %>
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
```
|
30
|
+
|
31
|
+
users/show
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
<% provide(:title, @user.name) %>
|
36
|
+
|
37
|
+
<div class="container show-container">
|
38
|
+
|
39
|
+
<div class="row user-info-container">
|
40
|
+
|
41
|
+
<section class="user-info">
|
42
|
+
|
43
|
+
<div class="user-name user-info-top">
|
44
|
+
|
45
|
+
<% if current_user?(@user) %>
|
46
|
+
|
47
|
+
<div class=""><%= link_to "プロフィール編集", edit_user_path(current_user), class: "btn btn-lg" %></div>
|
48
|
+
|
49
|
+
<% end %>
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
<%= if current_user == nil %>
|
54
|
+
|
55
|
+
<% exit %>
|
56
|
+
|
57
|
+
<% elsif current_user.admin? && !current_user?(@user) %>
|
58
|
+
|
59
|
+
| <%= link_to "delete", @user, method: :delete,
|
60
|
+
|
61
|
+
data: { confirm: "本当に削除しますか?" } %>
|
62
|
+
|
63
|
+
<%= else %>
|
64
|
+
|
65
|
+
<% end %>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
![イメージ説明](bbdad693b50d7a5e7f5a1a334b6cb393.png)iv class="user-name">
|
70
|
+
|
71
|
+
<h1>
|
72
|
+
|
73
|
+
<%= @user.name %>
|
74
|
+
|
75
|
+
</h1>
|
76
|
+
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div class="userinfo-picture-follow">
|
80
|
+
|
81
|
+
<% if @user.picture.attached? %>
|
82
|
+
|
83
|
+
<p class="trim-image-to-circle">
|
84
|
+
|
85
|
+
<%= image_tag @user.resize_picture %>
|
86
|
+
|
87
|
+
</p>
|
88
|
+
|
89
|
+
<% end %>
|
90
|
+
|
91
|
+
<div class="follow_button">
|
92
|
+
|
93
|
+
<%= render 'relationships/follow_button', user: @user %>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<% if @user.profile? %>
|
102
|
+
|
103
|
+
<p class="profile-info"><i class="fas fa-user-alt"></i>プロフィール<br></p>
|
104
|
+
|
105
|
+
<div class="user-profile">
|
106
|
+
|
107
|
+
<%= simple_format@user.profile %>
|
108
|
+
|
109
|
+
<% else %>
|
110
|
+
|
111
|
+
<p>まだ自己紹介を書いていません</p>
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
<% end %>
|
116
|
+
|
117
|
+
</section>
|
118
|
+
|
119
|
+
<section class="stats">
|
120
|
+
|
121
|
+
<%= render 'shared/stats' %>
|
122
|
+
|
123
|
+
</section>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
|
129
|
+
<div class="row-micropost">
|
130
|
+
|
131
|
+
<div class="col-logs">
|
132
|
+
|
133
|
+
<%= render 'layouts/log' %>
|
134
|
+
|
135
|
+
</div>
|
136
|
+
|
137
|
+
</div>
|
138
|
+
|
139
|
+
```
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
![![イメージ説明](0b32a2f31220a2b59417b7a40ef598f7.png)](9ef66bf2f2ebea56d4580ff97fe6e8e1.png)
|