add user log link at site page
This commit is contained in:
parent
e68793afc3
commit
e20df41db5
|
@ -1,5 +1,7 @@
|
||||||
class Admin::UserActionsController < OrbitBackendController
|
class Admin::UserActionsController < OrbitBackendController
|
||||||
|
layout "new_admin"
|
||||||
|
before_filter :authenticate_user!
|
||||||
|
before_filter :is_admin?
|
||||||
def index
|
def index
|
||||||
@user_actions = UserAction.all
|
@user_actions = UserAction.all
|
||||||
end
|
end
|
||||||
|
|
|
@ -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('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(: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('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 -%>
|
||||||
|
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|
|
@ -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">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
<th><%= I18n.t 'user_action.time' %></th>
|
<th><%= I18n.t 'user_action.time' %></th>
|
||||||
|
|
|
@ -465,6 +465,7 @@ en:
|
||||||
url: URL
|
url: URL
|
||||||
use_status: Use Statue
|
use_status: Use Statue
|
||||||
user: User
|
user: User
|
||||||
|
user_actions: User log
|
||||||
user_action:
|
user_action:
|
||||||
time: Time
|
time: Time
|
||||||
name: Account
|
name: Account
|
||||||
|
|
|
@ -466,6 +466,7 @@ zh_tw:
|
||||||
url: 網址
|
url: 網址
|
||||||
use_status: 使用狀態
|
use_status: 使用狀態
|
||||||
user: 使用者
|
user: 使用者
|
||||||
|
user_actions: 使用者Log
|
||||||
user_action:
|
user_action:
|
||||||
time: 時間
|
time: 時間
|
||||||
name: 使用帳號
|
name: 使用帳號
|
||||||
|
|
Loading…
Reference in New Issue