Skip to content

Commit

Permalink
add locales for audit and link on admin portal
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail Akbudak committed Jun 22, 2016
1 parent 1872c56 commit a82b49b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions templates/app/views/layouts/hq/partials/_navbar.html.haml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<%= app_name %>
= t('navbar.admin_portal')
%ul.nav.navbar-nav.pull-right
%li
= link_to hq_audits_path do
%i.icon-cog
= t('activerecord.models.audits')
%li.dropdown.user
%a.dropdown-toggle{'data-toggle' => 'dropdown', href: '#'}
%i.icon-user
Expand Down
16 changes: 15 additions & 1 deletion templates/config/locales/models.tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ tr:
countries: Ülkeler
city: Şehir
cities: Şehirler
audit: İşlem Geçmişi
audits: İşlem Geçmişleri
attributes:
user:
id: ID
Expand Down Expand Up @@ -70,4 +72,16 @@ tr:
country: Ülke
country_id: Ülke
created_at: Oluşturulma tarihi
updated_at: Güncellenme tarihi
updated_at: Güncellenme tarihi
audits:
id: ID
user_type: İşlemi yapan kullanıcı tipi
user: İşlemi yapan kullanıcı
type: Tip
type_id: Tip ID
action: İşlem
user_id: İşlemi yapan
auditable_type: İşlem yapılan
auditable_id: İşlem yapılan ID
action: İşlem Türü
created_at: Oluşturulma tarihi
1 change: 1 addition & 0 deletions templates/config/routes.erb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Rails.application.routes.draw do
resources :users, concerns: [:activeable]
resources :countries
resources :cities
resources :audits, only: [:index, :show]
end
# Users
devise_for :users, controllers: { sessions: 'user/sessions', registrations: 'user/registrations', passwords: 'user/passwords' }, path: 'user',
Expand Down

0 comments on commit a82b49b

Please sign in to comment.