#192: updated views
This commit is contained in:
parent
fd66f243e1
commit
9850401254
|
@ -1,4 +1,4 @@
|
|||
class Platforms::TokensController < ApplicationController
|
||||
class Platforms::TokensController < Platforms::BaseController
|
||||
before_filter :authenticate_user!
|
||||
|
||||
# load_and_authorize_resource :platform
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
-set_meta_tags :title => [title_object(@platform), t('layout.tokens.list_header')]
|
||||
= render 'platforms/base/submenu'
|
||||
= render 'platforms/base/sidebar'
|
||||
= render 'submenu'
|
||||
= render 'sidebar'
|
||||
= link_to t('layout.tokens.new'), new_platform_token_path(@platform), :class => 'button' if can? :create, @platform.tokens.build
|
||||
|
||||
%table#myTable.tablesorter.platform-repos{:cellspacing => "0", :cellpadding => "0"}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
-set_meta_tags :title => [title_object(@platform), t('layout.tokens.new')]
|
||||
= render 'platforms/base/submenu'
|
||||
= render 'platforms/base/sidebar'
|
||||
= render 'submenu'
|
||||
= render 'sidebar'
|
||||
|
||||
%h3= t('layout.tokens.new_header')
|
||||
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
-set_meta_tags :title => title_object(@platform)
|
||||
= render 'submenu'
|
||||
= render 'sidebar'
|
||||
|
||||
%h3.fix= "#{t('layout.tokens.about')} #{@platform.name}"
|
||||
|
||||
%p= @token.description
|
||||
|
||||
%table.tablesorter.unbordered
|
||||
%tr
|
||||
%td
|
||||
%b= "#{t('layout.tokens.creator')}:"
|
||||
%td= link_to @token.creator.try(:name), url_for(@token.creator)
|
||||
%tr
|
||||
%td
|
||||
%b= "#{t('activerecord.attributes.token.created_at')}:"
|
||||
%td= @token.created_at.to_date
|
||||
- if @token.updater
|
||||
%tr
|
||||
%td
|
||||
%b= "#{t('layout.tokens.updater')}:"
|
||||
%td= link_to @token.updater.try(:name), url_for(@token.updater) if @token.updater
|
||||
%tr
|
||||
%td
|
||||
%b= "#{t('activerecord.attributes.token.updated_at')}:"
|
||||
%td= @token.updated_at.to_date
|
||||
%tr
|
||||
%td
|
||||
%b= "#{t('activerecord.attributes.token.status')}:"
|
||||
%td= @token.status
|
||||
|
||||
.buttons_block
|
||||
= link_to I18n.t('layout.tokens.withdraw'), withdraw_platform_token_path(@platform, @token), :class => 'button left_floated'
|
Loading…
Reference in New Issue