This repository has been archived by the owner on Feb 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
---start of header--- | ||
<ul> | ||
<div class="header"> | ||
<% if signed_in? %> | ||
サインイン中のユーザ:<%= current_user.name %>,<%= current_user.email %>,管理者[<%= current_user.admin %>] | ||
<% if current_user.admin %> | ||
<li><%= link_to "ユーザ一覧", users_path %></li> | ||
<li><%= link_to "管理者の情報", user_path(current_user) %> | ||
<ul class="nav"> | ||
<li class="list-item"><%= link_to "ユーザ一覧", users_path %></li> | ||
<li class="list-item"><%= link_to "管理者の情報", user_path(current_user) %> | ||
<% else %> | ||
<li><%= link_to "楽譜一覧", home_path(current_user) %></li> | ||
<li><%= link_to "ユーザ情報", user_path(current_user) %></li> | ||
<li class="list-item"><%= link_to "楽譜一覧", home_path(current_user) %></li> | ||
<li class="list-item"><%= link_to "ユーザ情報", user_path(current_user) %></li> | ||
<% end %> | ||
<li><%= link_to "ログアウト", signout_path , data:{ "turbo-method": :delete } %> | ||
<li class="list-item"><%= link_to "ログアウト", signout_path , data:{ "turbo-method": :delete } %> | ||
<% else %> | ||
<li><%= link_to "サインイン", signin_path %></li> | ||
<li class="list-item"><%= link_to "サインイン", signin_path %></li> | ||
<% end %> | ||
</ul> | ||
---end of header--- | ||
</div> | ||
---end of header--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters