Skip to content

Commit bee950d

Browse files
author
Jacques Crocker
committed
change around urls
1 parent 6a2b413 commit bee950d

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

app/views/help/faqs.haml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
%h3
1313
Who are you?
1414
%p
15-
Learn about us <a href="/help/team">here</a>.
15+
Learn about us <a href="/team">here</a>.
1616
%hr
1717
%h3
1818
So, you just ripped off Product Hunt then?
@@ -71,7 +71,7 @@
7171
%p
7272
We’re setting up a system where the key site decisions are made by the community (via elected representatives).
7373
In addition, some questions will be brought to a vote by the community members.
74-
<a href="/help/guidelines">Learn more.</a>
74+
<a href="/guidelines">Learn more.</a>
7575
%hr
7676
%h3
7777
How do I view feedback that people have posted for me?
@@ -86,4 +86,4 @@
8686
%h3
8787
Will Open Hunt survive?
8888
%p
89-
Possibly. If the community response is poor, and we see very little usage then it’s possible Open Hunt will be shut down. With your support however, we can build a community that lasts.
89+
Possibly. If the community response is poor, and we see very little usage then it’s possible Open Hunt will be shut down. With your support however, we can build a community that lasts.

app/views/layouts/_help.html.haml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.col-md-2
22
.list-group
3-
%a.list-group-item{:href => '/help/about', :class => ('active' if current_page?(action: 'about', controller: 'help'))} About
4-
%a.list-group-item{:href => '/help/team', :class => ('active' if current_page?(action: 'team', controller: 'help'))} Team
5-
%a.list-group-item{:href => '/help/guidelines', :class => ('active' if current_page?(action: 'guidelines', controller: 'help'))} Guidelines
6-
%a.list-group-item{:href => '/help/faqs', :class => ('active' if current_page?(action: 'faqs', controller: 'help'))} FAQ's
7-
%a.list-group-item{:href => '/help/contact', :class => ('active' if current_page?(action: 'contact', controller: 'help'))} Contact
3+
%a.list-group-item{:href => '/about', :class => ('active' if current_page?(action: 'about', controller: 'help'))} About
4+
%a.list-group-item{:href => '/team', :class => ('active' if current_page?(action: 'team', controller: 'help'))} Team
5+
%a.list-group-item{:href => '/guidelines', :class => ('active' if current_page?(action: 'guidelines', controller: 'help'))} Guidelines
6+
%a.list-group-item{:href => '/faqs', :class => ('active' if current_page?(action: 'faqs', controller: 'help'))} FAQ's
7+
%a.list-group-item{:href => '/contact', :class => ('active' if current_page?(action: 'contact', controller: 'help'))} Contact

app/views/layouts/_navbar.html.haml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
%span{:class => 'caret'}
1212
%ul{:class => 'dropdown-menu'}
1313
%li{:class => ('active' if current_page?(action: 'about', controller: 'help'))}
14-
%a{:href => '/help/about'} About
14+
%a{:href => '/about'} About
1515
%li{:class => ('active' if current_page?(action: 'team', controller: 'help'))}
16-
%a{:href => '/help/team'} Team
16+
%a{:href => '/team'} Team
1717
%li{:class => ('active' if current_page?(action: 'guidelines', controller: 'help'))}
18-
%a{:href => '/help/guidelines'} Guidelines
18+
%a{:href => '/guidelines'} Guidelines
1919
%li{:class => ('active' if current_page?(action: 'faqs', controller: 'help'))}
20-
%a{:href => '/help/faqs'} FAQ's
20+
%a{:href => '/faqs'} FAQ's
2121
%li{:class => ('active' if current_page?(action: 'contact', controller: 'help'))}
22-
%a{:href => '/help/contact'} Contact
22+
%a{:href => '/contact'} Contact
2323

2424
- if current_user.present?
2525
%li.profile-nav

config/routes.rb

+6-6
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
patch '/audit/:id' => 'audit_logs#update'
2828

2929
# Help
30-
get '/help/about' => 'help#about'
31-
get '/help/team' => 'help#team'
32-
get '/help/guidelines' => 'help#guidelines'
33-
get '/help/faqs' => 'help#faqs'
34-
get '/help/contact' => 'help#contact'
30+
get '/about' => 'help#about'
31+
get '/team' => 'help#team'
32+
get '/guidelines' => 'help#guidelines'
33+
get '/faqs' => 'help#faqs'
34+
get '/contact' => 'help#contact'
3535

3636
# User
3737
get '/@:screen_name' => 'users#show'
@@ -64,4 +64,4 @@
6464

6565
root 'projects#index'
6666

67-
end
67+
end

0 commit comments

Comments
 (0)