Skip to content

Commit af15394

Browse files
committed
fix error pages
1 parent 7ae4798 commit af15394

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

app/views/errors/_helpful_links.html.slim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
h3="Top 5 Most Popular Protips"
44
ol
55
- protips_list(:trending, 5).each do |protip|
6-
li = link_to "#{protip.title} by #{protip.user.name}", protip_path(protip.public_id)
6+
li = link_to "#{protip.title} by #{protip.user_name}", protip_path(protip.public_id)
77
.column.signup-list
88
=render 'sessions/join_buttons', :message => 'Join to start earning badges for your open source contributions, discover protips and connect with other developers'

app/views/errors/not_found.html.slim

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
p.error-desc
66
| Unfortunately, you are looking for something that isn't here. Maybe we can help you find something?
77
| Use the links below to check out a few of the most popular protips or
8-
= "#{link_to 'sign up and start submitting your own protips', signin_path}."
8+
= link_to 'sign up and start submitting your own protips', signin_path
9+
| .
910
| If you don't believe you should be seeing this error,
10-
= "#{link_to 'please contact us', contact_us_path}#!"
11+
= link_to 'please contact us', contact_us_path
12+
| !
1113

1214
= render 'errors/helpful_links'

app/views/errors/not_found.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{}
1+
{"error": "not_found"}

0 commit comments

Comments
 (0)