|
|
@@ -1,2 +1,21 @@
|
|
|
module ApplicationHelper
|
|
|
+ def left_nav_bar_items
|
|
|
+ [
|
|
|
+ {path: pokemon_index_path, text: "Pokemon"}
|
|
|
+ ]
|
|
|
+ end
|
|
|
+
|
|
|
+ def right_nav_bar_items
|
|
|
+ if user_signed_in?
|
|
|
+ [
|
|
|
+ {path: edit_registration_path(current_user), text: "Edit"},
|
|
|
+ {path: destroy_user_session_path(current_user), text: "Sign Out"}
|
|
|
+ ]
|
|
|
+ else
|
|
|
+ [
|
|
|
+ {path: new_user_session_path, text: "Sign In"},
|
|
|
+ {path: new_user_registration_path, text: "Sign Up"},
|
|
|
+ ]
|
|
|
+ end
|
|
|
+ end
|
|
|
end
|