type_en archives page fix

This commit is contained in:
yafeilee 2015-04-12 23:48:52 +08:00
parent d79d6f87a0
commit 677507d62f
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class ArchivesController < ApplicationController
respond_to do |format| respond_to do |format|
format.json do format.json do
render :json => { render :json => {
posts: @posts.collect { |post| build_summary(post) }, posts: @posts.collect { |post| build_summary(post) },
start_with: start_with start_with: start_with
} }
@ -49,7 +49,7 @@ class ArchivesController < ApplicationController
def build_summary(post) def build_summary(post)
{ {
title: post.title, title: post.title,
type: post.type, type: post.type_en,
created_at: format_date(post.created_at), created_at: format_date(post.created_at),
id: post.id.to_s, id: post.id.to_s,
liked_count: post.liked_count, liked_count: post.liked_count,

View File

@ -12,7 +12,7 @@
|{{ post.created_at }} |{{ post.created_at }}
i.fi-list-thumbnails i.fi-list-thumbnails
span span
|{{ post.type_en }} |{{ post.type }}
i.fi-pricetag-multiple i.fi-pricetag-multiple
span span
|{{ post.labels }} |{{ post.labels }}