bookyt_stock 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,5 +4,6 @@
4
4
 
5
5
  #assets_list
6
6
  - unless resource.stocks.empty?
7
- %table.list
8
- = render :partial => 'stock', :collection => resource.stocks
7
+ %table.zebra-striped.collection
8
+ %thead
9
+ = render :partial => 'stock', :collection => resource.stocks
@@ -1,11 +1,12 @@
1
- %table.list#stocks_list
2
- %tr
3
- %th= t_attr :title, Stock
4
- %th= t_attr :purchase_invoice, Stock
5
- %th= t_attr :direct_account, Stock
6
- %th= t_attr :state, Stock
7
- %th.currency= t_attr :amount, Stock
8
- %th.currency= t_attr :balance, Stock
9
- %th.action-links
10
-
11
- = render @stocks
1
+ %table.zebra-striped.stocks.collection
2
+ %thead
3
+ %tr
4
+ %th= t_attr :title, Stock
5
+ %th= t_attr :purchase_invoice, Stock
6
+ %th= t_attr :direct_account, Stock
7
+ %th= t_attr :state, Stock
8
+ %th.currency= t_attr :amount, Stock
9
+ %th.currency= t_attr :balance, Stock
10
+ %th.action-links
11
+ %tbody
12
+ = render @stocks
@@ -1,7 +1,7 @@
1
1
  - content_for :sidebar do
2
2
  .sub-tabs
3
3
  %h3 Filter
4
- %ul
4
+ %ul.pager
5
5
  %li= link_to t('bookyt.all'), url_for(params.merge(:by_state => 'all'))
6
6
  - for state in Stock::STATES
7
7
  %li= link_to t(state, :scope => 'stock.state'), url_for(params.merge(:by_state => state))
@@ -2,19 +2,21 @@
2
2
 
3
3
  %h1= t_title
4
4
 
5
- %table.list#stocks_write_downs_list
6
- %tr
7
- %th= t_attr :title, Stock
8
- %th.currency= t_attr :balance_begin, Stock
9
- %th.currency= t_attr :change, Stock
10
- %th.currency= t_attr :write_downs, Stock
11
- %th.currency= t_attr :balance_end, Stock
12
- - for stock in @stocks
13
- %tr[stock]
14
- %td= link_to stock.title, stock, {'data-href-container' => 'tr'}
15
- %td.currency= currency_fmt(stock.balance(@start_date))
16
- %td.currency= currency_fmt(stock.amount_changes(@date))
17
- %td.currency= currency_fmt(stock.write_downs(@date))
18
- %td.currency= currency_fmt(stock.balance(@end_date))
5
+ %table.zebra-striped.stocks_write_downs.collection
6
+ %thead
7
+ %tr
8
+ %th= t_attr :title, Stock
9
+ %th.currency= t_attr :balance_begin, Stock
10
+ %th.currency= t_attr :change, Stock
11
+ %th.currency= t_attr :write_downs, Stock
12
+ %th.currency= t_attr :balance_end, Stock
13
+ %tbody
14
+ - for stock in @stocks
15
+ %tr[stock]
16
+ %td= link_to stock.title, stock, {'data-href-container' => 'tr'}
17
+ %td.currency= currency_fmt(stock.balance(@start_date))
18
+ %td.currency= currency_fmt(stock.amount_changes(@date))
19
+ %td.currency= currency_fmt(stock.write_downs(@date))
20
+ %td.currency= currency_fmt(stock.balance(@end_date))
19
21
 
20
22
  = render 'bookings/sidebar'
@@ -1,3 +1,3 @@
1
1
  module BookytStock
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookyt_stock
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 1
10
- version: 0.5.1
9
+ - 2
10
+ version: 0.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Simon H\xC3\xBCrlimann (CyT)"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-16 00:00:00 Z
18
+ date: 2012-03-20 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: This plugin extends bookyt with asset/stock functionality.
@@ -77,10 +77,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements: []
78
78
 
79
79
  rubyforge_project:
80
- rubygems_version: 1.8.15
80
+ rubygems_version: 1.8.16
81
81
  signing_key:
82
82
  specification_version: 3
83
83
  summary: Stock plugin for bookyt
84
84
  test_files: []
85
85
 
86
- has_rdoc: