-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add titles-only RSS feed #47
base: master
Are you sure you want to change the base?
Add titles-only RSS feed #47
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx! Please find comments attached.
web/controllers/feed_controller.ex
Outdated
@@ -11,8 +11,13 @@ defmodule ElixirStatus.FeedController do | |||
|> send_file(200, "priv/static/images/github/#{user_name}.jpg") | |||
end | |||
|
|||
def rss(conn, _params) do | |||
def full_feed(conn, _params) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert all changes to this function.
@@ -23,7 +23,8 @@ | |||
<span class="sidebar-nav-item sidebar-nav-item--text"><%= gettext "You can follow via" %></span> | |||
<a class="sidebar-nav-item no-hover-decoration" href="http://elixirweekly.net/" target="_blank"><span class="badge badge--new">NEW!</span> <span class="hover-decoration">ElixirWeekly</span></a> | |||
<a class="sidebar-nav-item" href="https://twitter.com/elixirstatus" target="_blank">Twitter</a> | |||
<a class="sidebar-nav-item" href="/rss">RSS</a> | |||
<a class="sidebar-nav-item" href="/rss">RSS (full)</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert all changes to this file.
web/controllers/feed_controller.ex
Outdated
postings = Posting.published | ||
render(conn, "rss.xml", postings: postings.entries) | ||
render(conn, "full.xml", postings: postings.entries) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please name all templates like their functions.
web/controllers/feed_controller.ex
Outdated
render(conn, "full.xml", postings: postings.entries) | ||
end | ||
|
||
def titles_feed(conn, _params) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename titles_feed
to rss_titles_only
.
web/router.ex
Outdated
@@ -39,7 +39,9 @@ defmodule ElixirStatus.Router do | |||
get "/", PostingController, :index | |||
get "/u/:user_name", PostingController, :user | |||
|
|||
get "/rss", FeedController, :rss | |||
get "/rss", FeedController, :full_feed | |||
get "/rss-titles", FeedController, :titles_feed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename rss-titles
to rss-titles-only
web/controllers/feed_controller.ex
Outdated
|
||
def titles_feed(conn, _params) do | ||
postings = Posting.published | ||
render(conn, "titles.xml", postings: postings.entries) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename rss_titles_only.xml
.
@rrrene Thanks for the review, and apologies for the delay. Have addressed all feedback. Since the titles-only RSS feed is no longer linked anywhere, it's not discoverable by browsing the site. Should it be linked somewhere or no? |
Adds a titles-only RSS feed accessible at
/rss-titles
to complement the full RSS feed available at/rss
.Sidebar now looks like this:
Addresses #45.