2013-06-25 14:56:39 +01:00
|
|
|
-set_meta_tags :title => [title_object(@platform), t('layout.tokens.header')]
|
2013-06-25 08:01:03 +01:00
|
|
|
= render 'submenu'
|
|
|
|
= render 'sidebar'
|
|
|
|
|
|
|
|
%h3.fix= "#{t('layout.tokens.about')} #{@platform.name}"
|
|
|
|
|
|
|
|
%p= @token.description
|
|
|
|
|
|
|
|
%table.tablesorter.unbordered
|
|
|
|
%tr
|
|
|
|
%td
|
2013-06-25 14:56:39 +01:00
|
|
|
%b= "#{t('activerecord.attributes.token.creator')}:"
|
|
|
|
%td= link_to @token.creator.try(:name), @token.creator
|
2013-06-25 08:01:03 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b= "#{t('activerecord.attributes.token.created_at')}:"
|
2013-06-25 14:56:39 +01:00
|
|
|
%td= @token.created_at
|
2013-06-25 08:01:03 +01:00
|
|
|
- if @token.updater
|
|
|
|
%tr
|
|
|
|
%td
|
2013-06-25 14:56:39 +01:00
|
|
|
%b= "#{t('activerecord.attributes.token.updater')}:"
|
|
|
|
%td= link_to @token.updater.try(:name), @token.updater if @token.updater
|
2013-06-25 08:01:03 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b= "#{t('activerecord.attributes.token.updated_at')}:"
|
2013-06-25 14:56:39 +01:00
|
|
|
%td= @token.updated_at
|
2013-06-25 08:01:03 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b= "#{t('activerecord.attributes.token.status')}:"
|
2013-06-25 14:56:39 +01:00
|
|
|
%td= t("layout.tokens.statuses.#{@token.status}")
|
2013-06-25 09:10:45 +01:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
%b= "#{t('activerecord.attributes.token.authentication_token')}:"
|
|
|
|
%td= @token.authentication_token
|
2013-06-25 08:01:03 +01:00
|
|
|
|
2013-06-25 14:56:39 +01:00
|
|
|
- if @token.active?
|
|
|
|
.buttons_block
|
|
|
|
= link_to t('layout.tokens.withdraw'),
|
|
|
|
withdraw_platform_token_path(@platform, @token),
|
|
|
|
:method => :post, :class => 'button',
|
|
|
|
:confirm => t('layout.tokens.withdraw_confirm')
|