Commit Graph

20 Commits

Author SHA1 Message Date
Eric Davis
073dfe1177 [#4604] Add an admin panel for the rate caches 2010-10-13 11:32:32 -07:00
Eric Davis
16a7a3146f [#4604] Timestamp the last caching run 2010-10-06 17:27:31 -07:00
Eric Davis
43a8fe27dc [#4604] Add a simple rake task to update missing cost caches 2010-10-06 15:48:55 -07:00
Eric Davis
cec35ad3af [#3827] Don't hardcode the core tabs with alias_method_chain. 2010-07-27 06:15:14 -07:00
Eric Davis
e541270461 [#4289] Ported the billing plugin's timesheet hooks. 2010-07-23 10:16:41 -07:00
Eric Davis
7192adb231 [#4289] Added empty hooks needed for the Timesheet. 2010-07-23 09:35:44 -07:00
Eric Davis
8058e938ae Fixed loading in the dispatcher. 2010-03-17 14:53:49 -07:00
Eric Davis
8a70287e99 Move the init code. 2010-03-17 14:51:19 -07:00
Eric Davis
23820188b4 Setup init.rb to work as a Rails GemPlugin 2009-10-13 20:47:28 -07:00
Eric Davis
724dd470ba Removed the Redmine core template and Redmine core hooks instead. 2009-08-01 11:05:55 -07:00
Eric Davis
43c20ae820 [#2558] Fixed a SystemStackError caused by alias_method_chain 2009-08-01 11:04:39 -07:00
Eric Davis
452edfeeaa Refactored core Redmine patches so the plugin can be run in development. 2009-04-21 21:44:58 -07:00
Eric Davis
7c92da0720 Removed edit_rate permission, only Administrators can edti rates. #2031 2009-01-26 15:04:33 -08:00
Eric Davis
ba0ee9b6f8 Added permissions to view a rate. #2031 2009-01-26 14:40:03 -08:00
Eric Davis
6aa00eeeb9 Added a helper method to TimeEntry that will encapsulate the rate API for a TimeEntry.
* TimeEntry#cost will return the amount the TimeEntry costs based on:
** logged hours times the assigned rate amount
** logged hours times the effective project rate for the user
** logged hours times the effective default rate for the user
** 0 if the user has no rates at all

  #1924
2009-01-21 15:11:35 -08:00
Eric Davis
256627d2a3 Ported the table header from the Budget plugin hook. #1923 2009-01-21 11:23:15 -08:00
Eric Davis
f870a6019e Hacked some column sorting onto RatesController
* Added SortHelper to RatesController
* Init and updating the sorting (pre 0.8 sort_update)
* RatesController#index will only render the layout on non-xhr requests
* Changed Rate.history_for_user to take an order clause
* Added rate_sort_header_tag and rate_sort_link to the SortHelper in order
  to get the correct parameters for sorting Rates
* Added rate_sort_header_tags to the Rate lists

  #1915
2009-01-19 14:43:54 -08:00
Eric Davis
e1278bcb69 Patched UsersHelper#user_settings_tabs to add a new Rates tab
* Wrapped UsersHelper#user_settings_tabs with an alias_method_chain
* Added the new Rate element to the return of user_settings_tabs
* Added RSpecs to confirm the change works without breaking
* Added a partial view for users/rates which will be used by Redmine
  when it renders the user edit panel

  #1913
2009-01-16 14:42:33 -08:00
Eric Davis
3cd6610c7f Added the metadata for registering the plugin to Redmine 2009-01-16 13:47:54 -08:00
Eric Davis
aa9377d288 Initial generation 2009-01-16 13:29:33 -08:00