-
-
Notifications
You must be signed in to change notification settings - Fork 51
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
19 additions
and
12 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
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,15 +1,15 @@ | ||
<ul class="ml-5 text-xl font-semibold text-orange list-image-dash"> | ||
<li><%= link_to "Your alerts", profile_alerts_path, class: class_names("block", "pl-4", "underline" => current_page?(profile_alerts_path)) %></li> | ||
<li><%= link_to "Create new alert", new_profile_alert_path, class: class_names("block", "pl-4", "underline" => current_page?(new_profile_alert_path)) %></li> | ||
<li><%= link_to "Your comments", comments_profile_path, class: class_names("block", "pl-4", "underline" => current_page?(comments_profile_path)) %></li> | ||
<li><%= link_to "Edit account", edit_user_registration_path, class: class_names("block", "pl-4", "underline" => current_page?(edit_user_registration_path)) %></li> | ||
<ul class="ml-5 text-xl font-bold text-navy list-image-dash"> | ||
<li><div class="pl-4"><%= pa_link_to_unless_current "Your alerts", profile_alerts_path %></div></li> | ||
<li><div class="pl-4"><%= pa_link_to_unless_current "Create new alert", new_profile_alert_path %></div></li> | ||
<li><div class="pl-4"><%= pa_link_to_unless_current "Your comments", comments_profile_path %></div></li> | ||
<li><div class="pl-4"><%= pa_link_to_unless_current "Edit account", edit_user_registration_path %></div></li> | ||
<%# Setting "Sign out" to a block breaks on ios/safari %> | ||
<li><%= button_to "Sign out", destroy_user_session_path, method: :delete, class: "cursor-pointer pl-4" %></li> | ||
<li><div class="pl-4"><%= button_to "Sign out", destroy_user_session_path, method: :delete, class: "text-fuchsia hover:underline font-bold cursor-pointer" %></div></li> | ||
</ul> | ||
|
||
<% if current_user.admin? %> | ||
<ul class="mt-10 ml-5 text-xl font-semibold text-orange list-image-dash"> | ||
<li><%= link_to "Administration panel", admin_root_path, class: "block pl-4" %></li> | ||
<li><%= link_to "Feature flags", admin_flipper_path, class: "block pl-4" %></li> | ||
<ul class="mt-10 ml-5 text-xl list-image-dash"> | ||
<li><div class="pl-4"><%= pa_link_to_unless_current "Administration panel", admin_root_path %></div></li> | ||
<li><div class="pl-4"><%= pa_link_to_unless_current "Feature flags", admin_flipper_path %></div></li> | ||
</ul> | ||
<% end %> |