added json feed link

This commit is contained in:
Harry Bomrah 2017-01-05 14:56:05 +08:00
parent e56b6f8971
commit 1569acc4ca
4 changed files with 9 additions and 4 deletions

View File

@ -32,7 +32,7 @@ class Admin::AnnouncementsController < OrbitAdminController
end
def feed
@table_feed_fields = ["announcement.feed_name", :tags, "announcement.rssfeed"]
@table_feed_fields = ["announcement.feed_name", :tags, "announcement.rssfeed", "announcement.jsonfeed"]
@feeds = BulletinFeed.all.asc(:created_at)
end

View File

@ -43,6 +43,9 @@
</div>
</td>
<td>
<a href="/xhr/announcements/rssfeed/<%= feed.uid %>.rss" target="_blank">Rss Feed</a>
<a href="/xhr/announcements/rssfeed/<%= feed.uid %>.rss" target="_blank">RSS Feed</a>
</td>
<td>
<a href="/xhr/announcements/feed/<%= feed.uid %>.json" target="_blank">JSON Feed</a>
</td>
</tr>

View File

@ -13,7 +13,8 @@ en:
view_count: View Count
add_new: Add New
feed_name: Feed Name
rssfeed: Rss Feed Link
rssfeed: RSS Feed Link
jsonfeed: JSON Feed Link
feed_list: Feed List
approve: Approve
all_articles: All Articles

View File

@ -16,7 +16,8 @@ zh_tw:
feed_name: Feed 標題
settings: Settings
import: Import
rssfeed: Rss Feed Link
rssfeed: RSS Feed Link
jsonfeed: JSON Feed Link
feed_list: 訂閱清單
all_articles: 文章列表
announcement: 公告