Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fixed plugin so that it works on RM 1.4.1

  • Loading branch information...
commit ddb4b305e1f6e5438d77056e697b005cce4bbf0f 1 parent dad678b
smartsystems4u authored

Showing 2 changed files with 28 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  app/views/users/_preferences.html.erb
  2. +27 2 config/routes.rb
2  app/views/users/_preferences.html.erb
... ... @@ -1,4 +1,4 @@
1   -<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %>
  1 +<% labelled_fields_for :pref, @user.pref, :lang => current_language do |pref_fields| %>
2 2 <p><%= pref_fields.check_box :hide_mail %></p>
3 3 <p><%= pref_fields.select :time_zone, ActiveSupport::TimeZone.all.collect {|z| [ z.to_s, z.name ]}, :include_blank => true %></p>
4 4 <p><%= pref_fields.select :comments_sorting, [[l(:label_chronological_order), 'asc'], [l(:label_reverse_chronological_order), 'desc']] %></p>
29 config/routes.rb
@@ -31,8 +31,33 @@
31 31 # map.connect 'calendars/settings/:tab/:id/:year', :controller => 'calendar', :action => 'settings'
32 32
33 33 map.connect 'issues/calendar', :controller => 'calendars', :action => 'show'
34   -
35   -
  34 + map.connect 'calendar', :controller => 'calendar', :action => 'index'
  35 + map.connect 'calendar/new', :controller => 'calendar', :action => 'new'
  36 + map.connect 'calendar/create', :controller => 'calendar', :action => 'create'
  37 + map.connect 'calendar/show', :controller => 'calendar', :action => 'show'
  38 + map.connect 'calendar/assign', :controller => 'assign_calendar', :action => 'add_calendar'
  39 + map.connect 'calendar/assign/create', :controller => 'assign_calendar', :action => 'create'
  40 + map.connect 'calendar/assign/autocomplete', :controller => 'assign_calendar', :action => 'autocomplete_for_assign_calendar'
  41 + map.connect 'calendar/assign/destroy', :controller => 'assign_calendar', :action => 'destroy'
  42 + map.connect 'calendar/assign/add', :controller => 'assign_calendar', :action => 'add_calendar'
  43 + map.connect 'calendar/assign/destroy_cal', :controller => 'assign_calendar', :action => 'destroy_calendar'
  44 + map.connect 'calendar/destroy', :controller => 'calendar', :action => 'destroy'
  45 + map.connect 'calendar/update', :controller => 'calendar', :action => 'update'
  46 + map.connect 'calendar/settings', :controller => 'calendar', :action => 'settings'
  47 + map.connect 'calendar/edit', :controller => 'calendar', :action => 'edit'
  48 + map.connect 'calendar/duplicate', :controller => 'calendar', :action => 'edit'
  49 + map.connect 'calendar/vacation', :controller => 'calendar_vacation', :action => 'show'
  50 + map.connect 'calendar/vacation/list', :controller => 'calendar_vacation', :action => 'list_holidays'
  51 + map.connect 'calendar/vacation/create', :controller => 'calendar_vacation', :action => 'create'
  52 + map.connect 'calendar/vacation/update', :controller => 'calendar_vacation', :action => 'update'
  53 + map.connect 'calendar/vacation/destroy', :controller => 'calendar_vacation', :action => 'destroy'
  54 + map.connect 'calendar/vacation/duplicate', :controller => 'calendar_vacation', :action => 'duplicate'
  55 + map.connect 'calendar/weekly', :controller => 'pattern_weeklies', :action => 'index'
  56 + map.connect 'calendar/weekly/create', :controller => 'pattern_weeklies', :action => 'create'
  57 + map.connect 'calendar/weekly/edit', :controller => 'pattern_weeklies', :action => 'edit'
  58 + map.connect 'calendar/weekly/destroy', :controller => 'pattern_weeklies', :action => 'destroy'
  59 + map.connect 'calendar/week_days/edit', :controller => 'week_days', :action => 'edit'
  60 + map.connect 'calendar/week_days/update', :controller => 'week_days', :action => 'update'
36 61 end
37 62
38 63

0 comments on commit ddb4b30

Please sign in to comment.
Something went wrong with that request. Please try again.