add user log link at site page

This commit is contained in:
Matt K. Fu 2013-05-27 14:33:45 +08:00 committed by chris
parent e68793afc3
commit e20df41db5
5 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,7 @@
class Admin::UserActionsController < OrbitBackendController
layout "new_admin"
before_filter :authenticate_user!
before_filter :is_admin?
def index
@user_actions = UserAction.all
end

View File

@ -8,6 +8,7 @@
<%= content_tag :li, link_to(t('mail.setting'), admin_site_mail_setting_path(@site)), :class => active_for_action('sites', 'mail_setting') %>
<%#= content_tag :li, link_to(t(:theme), admin_site_ui_theme_path(@site)), :class => active_for_action('sites', 'ui_theme') %>
<%= content_tag :li, link_to(t('sitemap'), admin_site_sitemap_path(@site)), :class => active_for_action('sites', 'sitemap') %>
<%= content_tag :li, link_to(t('user_actions'), admin_user_actions_path), :class => active_for_action('user_actions', 'index') %>
<% end -%>
<% end -%>

View File

@ -1,3 +1,7 @@
<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
<% end %>
<table class="table">
<tr>
<th><%= I18n.t 'user_action.time' %></th>

View File

@ -465,6 +465,7 @@ en:
url: URL
use_status: Use Statue
user: User
user_actions: User log
user_action:
time: Time
name: Account

View File

@ -466,6 +466,7 @@ zh_tw:
url: 網址
use_status: 使用狀態
user: 使用者
user_actions: 使用者Log
user_action:
time: 時間
name: 使用帳號