Added creator_link and updator_link helpers

This commit is contained in:
Priit Tark 2015-03-23 11:17:27 +02:00
parent 15272bad76
commit d8d951974e
3 changed files with 24 additions and 7 deletions

View file

@ -32,18 +32,15 @@
%dd
= l(@contact.created_at, format: :short)
by
= link_to(@contact.creator, [:admin, @contact.creator])
= creator_link(@contact)
%dt= t(:updated)
%dd
= l(@contact.updated_at, format: :short)
by
= link_to(@contact.updator, [:admin, @contact.updator])
= updator_link(@contact)
%dt= t(:registrar)
%dd
- if @contact.registrar.present?
= link_to(@contact.registrar, admin_registrar_path(@contact.registrar))