This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# view only reports-page (view all foreign timeBookings) | |
map.permission :tt_view_bookings, {:time_bookings => [:get_list_entry], | |
:tt_reporting => [:index]}, | |
:require => :loggedin | |
map.permission :check_nested_perm, {:tt_view_bookings => :true} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= link_to l(:button_cancel), {:controller => 'time_bookings', :action => 'get_list_entry', :time_booking_id => time_booking.id}, :remote => true %> | |
<%= button_tag l(:button_cancel), :controller => 'time_bookings', :action => 'get_list_entry', :time_booking_id => time_booking.id, :remote => true, :method => :get %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show_booking | |
@time_logs = TimeLog.where(:id => params[:time_log_ids]).all | |
respond_to do |format| | |
format.js | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def show_edit | |
time_logs = TimeLog.where(:id => params[:time_log_ids]).all | |
render :update do |page| | |
time_logs.each do |item| | |
@time_log = item | |
page.replace_html 'entry-'+item.id.to_s, :partial => 'time_logs/edit_form' | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<%= stylesheet_link_tag 'tt_report', :plugin => 'redmine_time_tracker', :media => "all" %> | |
<%= javascript_include_tag 'mootools/mootools-core-1.4.5-full-compat-yc.js', :plugin => 'redmine_time_tracker' %> | |
<%= javascript_include_tag 'mootools/mootools-more-1.4.0.1.js', :plugin => 'redmine_time_tracker' %> | |
<%= javascript_include_tag 'MilkChart.yc.js', :plugin => 'redmine_time_tracker' %> | |
</head> | |
<body> | |
<table style="width: 100%;"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
runnerw.exe C:\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:/Ruby193/lib/ruby/gems/1.9.1/gems/ruby-debug-ide-0.4.17.beta14/bin/rdebug-ide --dispatcher-port 2083 --port 2084 -- Z:/swap/redmine2.0.3/script/rails server -b 127.0.0.1 -p 3000 -e production | |
Fast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:2084 | |
=> Booting WEBrick | |
=> Rails 3.2.6 application starting in production on http://127.0.0.1:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require': iconv will be deprecated in the future, use String#encode instead. | |
[2012-09-03 11:28:06] INFO WEBrick 1.3.1 | |
[2012-09-03 11:28:06] INFO ruby 1.9.3 (2012-04-20) [i386-mingw32] | |
[2012-09-03 11:28:06] INFO WEBrick::HTTPServer#start: pid=1876 port=3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TimeBooking < ActiveRecord::Base | |
unloadable | |
attr_accessible :started_on, :stopped_at, :time_entry_id, :time_log_id, :virtual, :project | |
belongs_to :project | |
belongs_to :time_log | |
belongs_to :time_entry, :dependent => :delete | |
has_one :virtual_comment, :dependent => :delete | |
validates_presence_of :time_log_id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NameError (uninitialized constant SortHelperPatch::InstanceMethods::SortCriteria): | |
plugins/redmine_time_tracker/lib/sort_helper_patch.rb:15:in `sort_update_with_time_tracker' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for @time_tracker, :url => {:action => :stop}, | |
:html => {:class => "time-tracker-form", | |
:onchange => "<my-suoer-prototype-request>", | |
#:update => {:success => :nothing, :failure => "time-tracker-control"}, | |
:url => {:controller => :time_trackers, :action => "update", :format => :json}, | |
:method => :put, | |
:with => " Form.serializeElements( $(this).getInputs() ) ")} do |f| %> | |
<!-- TODO localize placeholders / add labels --> | |
<%= f.label l(:time_tracker_label_current_task) %> |
NewerOlder