質問編集履歴
2
文章を編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -201,3 +201,117 @@
|
|
201
201
|
</html>
|
202
202
|
|
203
203
|
```
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
```
|
208
|
+
|
209
|
+
shared/_header.html.erb
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<header class="navbar navbar-inverse navbar-fixed-top">
|
214
|
+
|
215
|
+
<div class="container header-container">
|
216
|
+
|
217
|
+
<div class="navbar-left">
|
218
|
+
|
219
|
+
<h1>Bookers</h1>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
<ul class="nav navbar-nav navbar-right">
|
224
|
+
|
225
|
+
<% if user_signed_in? %>
|
226
|
+
|
227
|
+
<li class="header-contents">
|
228
|
+
|
229
|
+
<%= link_to user_path(current_user) do %>
|
230
|
+
|
231
|
+
<i class="fa fa-home">Home</i>
|
232
|
+
|
233
|
+
<% end %>
|
234
|
+
|
235
|
+
</li>
|
236
|
+
|
237
|
+
<li class="header-contents">
|
238
|
+
|
239
|
+
<%= link_to users_path do %>
|
240
|
+
|
241
|
+
<i class="fa fa-user">Users</i>
|
242
|
+
|
243
|
+
<% end %>
|
244
|
+
|
245
|
+
</li>
|
246
|
+
|
247
|
+
<li class="header-contents">
|
248
|
+
|
249
|
+
<%= link_to books_path do %>
|
250
|
+
|
251
|
+
<i class="fa fa-book">Books</i>
|
252
|
+
|
253
|
+
<% end %>
|
254
|
+
|
255
|
+
</li>
|
256
|
+
|
257
|
+
<li class="header-contents">
|
258
|
+
|
259
|
+
<%= link_to destroy_user_session_path, method: :delete do %>
|
260
|
+
|
261
|
+
<i class="fas fa-sign-out-alt">logout</i>
|
262
|
+
|
263
|
+
<% end %>
|
264
|
+
|
265
|
+
</li>
|
266
|
+
|
267
|
+
<% else %>
|
268
|
+
|
269
|
+
<li class="header-contents">
|
270
|
+
|
271
|
+
<%= link_to root_path do %>
|
272
|
+
|
273
|
+
<i class="fa fa-home">Home</i>
|
274
|
+
|
275
|
+
<% end %>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
<li class="header-contents">
|
280
|
+
|
281
|
+
<%= link_to home_about_path do %>
|
282
|
+
|
283
|
+
<i class="fa fa-link">About</i>
|
284
|
+
|
285
|
+
<% end %>
|
286
|
+
|
287
|
+
</li>
|
288
|
+
|
289
|
+
<li class="header-contents">
|
290
|
+
|
291
|
+
<%= link_to new_user_registration_path do %>
|
292
|
+
|
293
|
+
<i class="fa fa-edit">sign_up</i>
|
294
|
+
|
295
|
+
<% end %>
|
296
|
+
|
297
|
+
</li>
|
298
|
+
|
299
|
+
<li class="header-contents">
|
300
|
+
|
301
|
+
<%= link_to new_user_session_path do %>
|
302
|
+
|
303
|
+
<i class="fas fa-sign-in-alt">login</i>
|
304
|
+
|
305
|
+
<% end %>
|
306
|
+
|
307
|
+
</li>
|
308
|
+
|
309
|
+
<% end %>
|
310
|
+
|
311
|
+
</ul>
|
312
|
+
|
313
|
+
</div>
|
314
|
+
|
315
|
+
</header>
|
316
|
+
|
317
|
+
```
|
1
文章を編集しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -163,3 +163,41 @@
|
|
163
163
|
<%= render 'shared/footer' %>
|
164
164
|
|
165
165
|
```
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
```
|
170
|
+
|
171
|
+
layouts/application.html.erb
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<!DOCTYPE html>
|
176
|
+
|
177
|
+
<html>
|
178
|
+
|
179
|
+
<head>
|
180
|
+
|
181
|
+
<title>BookersLevel2Herokuapp</title>
|
182
|
+
|
183
|
+
<%= csrf_meta_tags %>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
188
|
+
|
189
|
+
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
190
|
+
|
191
|
+
</head>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<body>
|
196
|
+
|
197
|
+
<%= yield %>
|
198
|
+
|
199
|
+
</body>
|
200
|
+
|
201
|
+
</html>
|
202
|
+
|
203
|
+
```
|