added watchlist and position transfer feature
commit9773975f75f7ea43d4060a8cb7171f653ee2a362
authorpqauvsum <pqauvsum@posteo.cz>
Sun, 19 Apr 2015 11:40:42 +0000 (19 13:40 +0200)
committerpqauvsum <pqauvsum@posteo.cz>
Sun, 19 Apr 2015 11:40:42 +0000 (19 13:40 +0200)
tree14264e61e115eae3a83d7b6691328d448fb683e6
parentfa7f0e8b1d3c2f7b763b4aa48e07f2e3e31059c1
added watchlist and position transfer feature
- the watchlist has basic functionality so far:
  - all securities not held in a position are listed
  - the + link shows intraday quote data
  - the most recent quote is shown, but only from same day
  - the color indicator is sensitive the intraday time
  - securities are sorted by name only
- position transfers can be done via editing a portfolio (objects/portfolios)
- the AssetsController has been renamed to AssetController because the
  :assets_index_path does collide with the /assets URL that serves .css files and
  images, etc...
- added behaviour modifier options to various classes
- layout improvements & code cleanup
- BUGFIX: NoMethodError (undefined method `is_sale?' for nil:NilClass) when issuing new order
38 files changed:
gui/app/assets/stylesheets/application.css
gui/app/assets/stylesheets/asset.css [moved from gui/app/assets/stylesheets/assets.css with 87% similarity]
gui/app/assets/stylesheets/figures.css
gui/app/assets/stylesheets/quoterecords.css
gui/app/assets/stylesheets/sessions.css
gui/app/assets/stylesheets/watchlist.css [new file with mode: 0644]
gui/app/controllers/application_controller.rb
gui/app/controllers/asset_controller.rb [copied from gui/app/controllers/assets_controller.rb with 79% similarity]
gui/app/controllers/blog_controller.rb
gui/app/controllers/objects/portfolio_controller.rb
gui/app/controllers/position_controller.rb
gui/app/controllers/watchlist_controller.rb [moved from gui/app/controllers/assets_controller.rb with 50% similarity]
gui/app/helpers/application_helper.rb
gui/app/models/position_revision.rb
gui/app/models/quote.rb
gui/app/views/asset/_position_details.html.erb [moved from gui/app/views/assets/_position_details.html.erb with 100% similarity]
gui/app/views/asset/_quote_form.html.erb [new file with mode: 0644]
gui/app/views/asset/index.html.erb [moved from gui/app/views/assets/index.html.erb with 84% similarity]
gui/app/views/figures/index.html.erb
gui/app/views/objects/portfolio/index.html.erb
gui/app/views/position/new.html.erb [deleted file]
gui/app/views/position/show.html.erb
gui/app/views/quoterecords/index.html.erb
gui/app/views/watchlist/index.html.erb [new file with mode: 0644]
gui/config/routes.rb
gui/lib/smr/asset.rb
gui/lib/smr/asset_position.rb
gui/lib/smr/transaction.rb
gui/lib/smr/watchlist.rb [new file with mode: 0644]
gui/test/integration/demo1_user_session_test.rb
gui/test/unit/helpers/assets_helper_test.rb [deleted file]
gui/test/unit/helpers/portfolio_helper_test.rb [deleted file]
gui/test/unit/helpers/position_helper_test.rb [deleted file]
gui/test/unit/helpers/positions_helper_test.rb [deleted file]
gui/test/unit/helpers/users_helper_test.rb [deleted file]
gui/test/unit/smr_dividend_test.rb [deleted file]
gui/test/unit/smr_transaction_test.rb
gui/test/unit/smr_watchlist_test.rb [new file with mode: 0644]