Skip to content

Commit 4dbb985

Browse files
Add additional user links.
Issues ------ - Closes #41
1 parent 75df9e7 commit 4dbb985

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ end
223223
<%= form.label :password_confirmation %>
224224
<%= form.password_field :password_confirmation, required: true %>
225225
</div>
226-
<%= form.submit %>
226+
<%= form.submit "Sign Up" %>
227227
<% end %>
228228
```
229229

@@ -1041,7 +1041,7 @@ end
10411041
<%= form.label :current_password, "Current password (we need your current password to confirm your changes)" %>
10421042
<%= form.password_field :current_password, required: true %>
10431043
</div>
1044-
<%= form.submit %>
1044+
<%= form.submit "Update Account" %>
10451045
<% end %>
10461046
```
10471047

@@ -1208,7 +1208,7 @@ end
12081208
<%= form.label :remember_me %>
12091209
<%= form.check_box :remember_me %>
12101210
</div>
1211-
<%= form.submit %>
1211+
<%= form.submit "Sign In" %>
12121212
<% end %>
12131213
```
12141214

app/views/layouts/application.html.erb

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,18 @@
1515
<% flash.each do |message_type, message| %>
1616
<div class="<%= message_type %>"><%= message %></div>
1717
<% end %>
18-
<% if user_signed_in? %>
19-
<%= button_to "Logout", logout_path, method: :delete %>
20-
<% else %>
21-
<%= link_to "Login", login_path %>
22-
<% end %>
18+
<ul>
19+
<% if user_signed_in? %>
20+
<li><%= link_to "My Acount", account_path %></li>
21+
<li><%= button_to "Logout", logout_path, method: :delete %></li>
22+
<% else %>
23+
<li><%= link_to "Login", login_path %></li>
24+
<li><%= link_to "Sign Up", sign_up_path %></li>
25+
<li><%= link_to "Forgot my password", new_password_path %></li>
26+
<li><%= link_to "Didn't receive confirmation instructions", new_confirmation_path %></li>
27+
<% end %>
28+
</ul>
29+
<hr/>
2330
<header>
2431
<main style="width: 1200px; margin: 0 auto;">
2532
<%= yield %>

app/views/sessions/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
<%= form.label :remember_me %>
1212
<%= form.check_box :remember_me %>
1313
</div>
14-
<%= form.submit %>
14+
<%= form.submit "Sign In" %>
1515
<% end %>

app/views/users/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
<%= form.label :current_password, "Current password (we need your current password to confirm your changes)" %>
2222
<%= form.password_field :current_password, required: true %>
2323
</div>
24-
<%= form.submit %>
24+
<%= form.submit "Update Account" %>
2525
<% end %>

app/views/users/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
<%= form.label :password_confirmation %>
1313
<%= form.password_field :password_confirmation, required: true %>
1414
</div>
15-
<%= form.submit %>
15+
<%= form.submit "Sign Up" %>
1616
<% end %>

0 commit comments

Comments
 (0)