type_en archives page fix
This commit is contained in:
parent
d79d6f87a0
commit
677507d62f
|
@ -28,7 +28,7 @@ class ArchivesController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.json do
|
||||
render :json => {
|
||||
render :json => {
|
||||
posts: @posts.collect { |post| build_summary(post) },
|
||||
start_with: start_with
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ class ArchivesController < ApplicationController
|
|||
def build_summary(post)
|
||||
{
|
||||
title: post.title,
|
||||
type: post.type,
|
||||
type: post.type_en,
|
||||
created_at: format_date(post.created_at),
|
||||
id: post.id.to_s,
|
||||
liked_count: post.liked_count,
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
|{{ post.created_at }}
|
||||
i.fi-list-thumbnails
|
||||
span
|
||||
|{{ post.type_en }}
|
||||
|{{ post.type }}
|
||||
i.fi-pricetag-multiple
|
||||
span
|
||||
|{{ post.labels }}
|
||||
|
|
Loading…
Reference in New Issue