fix a few places we were using /category vs /c

This commit is contained in:
Jeff Atwood 2015-01-06 15:56:03 -08:00
parent 74e8ca2a4f
commit 86c13ada44
4 changed files with 5 additions and 5 deletions

View File

@ -127,9 +127,9 @@ class ListController < ApplicationController
discourse_expires_in 1.minute
@title = @category.name
@link = "#{Discourse.base_url}/category/#{@category.slug_for_url}"
@link = "#{Discourse.base_url}/c/#{@category.slug_for_url}"
@description = "#{I18n.t('topics_in_category', category: @category.name)} #{@category.description}"
@atom_link = "#{Discourse.base_url}/category/#{@category.slug_for_url}.rss"
@atom_link = "#{Discourse.base_url}/c/#{@category.slug_for_url}.rss"
@topic_list = TopicQuery.new.list_new_in_category(@category)
render 'list', formats: [:rss]

View File

@ -1,6 +1,6 @@
<% @list.categories.each do |c| %>
<div class="category">
<h2><a href="/category/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a></h2>
<h2><a href="/c/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a></h2>
<div class="topic-list">
<%- if c.displayable_topics.present? %>
<% c.displayable_topics.each do |t| %>

View File

@ -2,7 +2,7 @@
<%= render_topic_title(@topic_view.topic) %>
</h2>
<% if c = @topic_view.topic.category %>
<a href="/category/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a>
<a href="/c/<%= c.slug.blank? ? c.id : c.slug %>"><%= c.name %></a>
<% end %>
<hr/>

View File

@ -4,7 +4,7 @@ desc 'Creates the integration fixtures. Requires a development instance running.
task 'integration:create_fixtures' => :environment do
fixtures = {
discovery: ["/latest.json", "/categories.json", "/category/bug/l/latest.json"],
discovery: ["/latest.json", "/categories.json", "/c/bug/l/latest.json"],
topic: ["/t/280.json"],
user: ["/users/eviltrout.json",
"/user_actions.json",