diff --git a/GPL.txt b/GPL.txt index fd94e16..02f1a57 100644 --- a/GPL.txt +++ b/GPL.txt @@ -1,12 +1,12 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - Preamble + Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public @@ -56,7 +56,7 @@ patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. - GNU GENERAL PUBLIC LICENSE + GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains @@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - NO WARRANTY + NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN @@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - END OF TERMS AND CONDITIONS + END OF TERMS AND CONDITIONS - How to Apply These Terms to Your New Programs + How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it diff --git a/README.rdoc b/README.rdoc index 8c91b34..c7885e7 100644 --- a/README.rdoc +++ b/README.rdoc @@ -19,7 +19,7 @@ The newest version is always at {GitHub}[http://github.com/speedy32129/time_logg == Install 1. Follow the Redmine plugin installation steps at: http://www.redmine.org/wiki/redmine/Plugins Make sure the plugin is installed to plugins/time_logger -2. Setup the database using the migrations. rake redmine:plugins:migrate RAILS_ENV=production +2. Setup the database using the migrations. rake redmine:plugins RAILS_ENV=production 3. Login to your Redmine install as an Administrator 4. Setup the 'log time' permissions for your roles 5. Add "Time tracking" to the enabled modules for your project @@ -79,20 +79,13 @@ the 'New' status will automatically change it to 'In progress'. 1. Open a shell to your Redmine's /plugins/time_logger folder 2. Update your git copy with git pull -3. Update the database using the migrations. rake db:migrate_plugins RAILS_ENV=production +3. Update the database using the migrations. rake redmine:plugins RAILS_ENV=production 4. Restart your Redmine === Change History -0.5.4.0 - Updates - re-orginized the settings panels to make room for new transitions. - The plan is to add two transitons types. - 1. for current activity to change the status to. - A. For example if original status is Open then change it to In Progress. - B. So when the logger is not longer active change it to Open. - -0.5.3 - updates - fixed javascript variable declaration - added icon sets so user can have more choice with their theme - for now this is to be done manually. Just delte the icons in /time_logger/assets/images (not the sub-folders) then copy from one of the sub-folders (colorized or original) into /time_logger/assets/image. +0.5.3 - updates + fixed javascript variable declaration + added icon sets so user can have more choice with their theme - for now this is to be done manually. Just delte the icons in /time_logger/assets/images (not the sub-folders) then copy from one of the sub-folders (colorized or original) into /time_logger/assets/image. add TLHelper function back due to problem with time_logger fix for missing icons on status transitions fixes for status transitions - removal - Special thanks to kotashiratsuka indirectly!! diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 120d36f..bb22276 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -16,7 +16,7 @@ def status_from_id(status_id) IssueStatus.find_by_id(status_id) end - def statuses_list() + def statuses_list IssueStatus.all end @@ -26,7 +26,7 @@ def to_status_options(statuses) def new_transition_from_options(transitions) statuses = [] - for status in statuses_list() + for status in statuses_list statuses << status unless transitions.has_key?(status.id.to_s) #if !transitions.has_key?(status.id.to_s) # statuses << status @@ -35,8 +35,8 @@ def new_transition_from_options(transitions) to_status_options(statuses) end - def new_transition_to_options() - to_status_options(statuses_list()) + def new_transition_to_options + to_status_options(statuses_list) end def global_allowed_to?(user, action) diff --git a/app/views/settings/_time_logger.html.erb b/app/views/settings/_time_logger.html.erb index 4889329..b289df8 100644 --- a/app/views/settings/_time_logger.html.erb +++ b/app/views/settings/_time_logger.html.erb @@ -1,20 +1,21 @@ -
- <%= label_tag 'settings[refresh_rate]', l(:time_logger_refresh_rate) %> - <%= text_field_tag 'settings[refresh_rate]', @settings['refresh_rate'], { :size => 4 } %> - (<%= l(:time_logger_seconds) %>) -
-+ <%= label_tag 'settings[refresh_rate]', l(:time_logger_refresh_rate) %> + <%= text_field_tag 'settings[refresh_rate]', @settings['refresh_rate'], { :size => 4 } %> + (<%= l(:time_logger_seconds) %>) +
<%= l(:time_logger_settings_transition_msg) %>
+<%= l(:time_logger_settings_transition_note) %>
+ + <%= render :partial => 'time_loggers/status_transition_list', :locals => { :transitions => @settings['status_transitions'] } %> + +<%# The div is not close as redmine will close the one opened before rendering this view. As we close this div at the begining of the view, we need an open one before returning. %> diff --git a/app/views/settings/_time_logger.html.erb.org b/app/views/settings/_time_logger.html.erb.org deleted file mode 100644 index d4fdb4c..0000000 --- a/app/views/settings/_time_logger.html.erb.org +++ /dev/null @@ -1,19 +0,0 @@ -- <%= label_tag 'settings[refresh_rate]', l(:time_logger_refresh_rate) %> - <%= text_field_tag 'settings[refresh_rate]', @settings['refresh_rate'], { :size => 4 } %> - (<%= l(:time_logger_seconds) %>) -
-<%= l(:time_logger_settings_transition_msg) %>
-<%= l(:time_logger_settings_transition_note) %>
- <%= render :partial => 'time_loggers/status_transition_list', :locals => { :transitions => @settings['status_transitions'] } %> -- | <%= l(:time_logger_settings_from_status) %> | -<%= l(:time_logger_settings_to_status) %> | - <% if edit_allowed %> -- <% else %> - | - <% end %> - |
---|---|---|---|---|
- | - <%= select_tag 'new-transition-from', new_transition_from_options(transitions) %> - | -- <%= select_tag 'new-transition-to', new_transition_to_options %> - | - <% if edit_allowed %> -- <%= link_to l(:time_logger_settings_new_transition_add), - '#', - :remote => true, - :onclick => "addTransitionField();$('form').submit();", - :class => 'icon icon-add', - :id => 'link-add-transition' - %> - | - <% else %>- <% end %> - |
- | <%= l(:time_logger_settings_from_status) %> | -<%= l(:time_logger_settings_to_status) %> | ++ | <%= l(:time_logger_settings_from_status) %> | +<%= l(:time_logger_settings_to_status) %> | <% if edit_allowed %> -- <% else %> | + | <% end %> |
---|---|---|---|---|---|---|---|---|
<% end %> |