-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1822 from DMPRoadmap/issue-1570
Refactor routes for better maintainability
- Loading branch information
Showing
124 changed files
with
62 additions
and
37,602 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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class SessionLocalesController < ApplicationController | ||
def update | ||
if FastGettext.default_available_locales.include?(params[:locale]) | ||
session[:locale] = params[:locale] | ||
end | ||
redirect_to(:back) | ||
end | ||
end |
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,22 +1,26 @@ | ||
class StaticPagesController < ApplicationController | ||
|
||
def about_us | ||
dcc_news_feed_url = "http://www.dcc.ac.uk/news/dmponline-0/feed" | ||
@dcc_news_feed = Feedjira::Feed.fetch_and_parse dcc_news_feed_url | ||
respond_to do |format| | ||
format.rss { redirect_to dcc_news_feed_url } | ||
format.html | ||
end | ||
dcc_news_feed_url = "http://www.dcc.ac.uk/news/dmponline-0/feed" | ||
@dcc_news_feed = Feedjira::Feed.fetch_and_parse dcc_news_feed_url | ||
respond_to do |format| | ||
format.rss { redirect_to dcc_news_feed_url } | ||
format.html | ||
end | ||
end | ||
|
||
def contact_us | ||
end | ||
|
||
def roadmap | ||
|
||
end | ||
|
||
def privacy | ||
end | ||
|
||
def termsuse | ||
end | ||
|
||
def help | ||
end | ||
end |
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
Oops, something went wrong.