bookyt_projects 0.19.6 → 0.19.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,11 +13,11 @@ class ActivitiesController < AuthorizedController
|
|
13
13
|
end
|
14
14
|
|
15
15
|
# Educated guessing of person
|
16
|
-
@activity.person
|
16
|
+
@activity.person ||= current_user.person if current_user
|
17
17
|
|
18
18
|
# Educated guessing of project
|
19
19
|
@activity.project_id ||= params[:project_id] if params[:project_id]
|
20
|
-
@activity.project_id ||= @activity.person.
|
20
|
+
@activity.project_id ||= @activity.person.latest_project.id
|
21
21
|
|
22
22
|
new!
|
23
23
|
end
|
@@ -11,7 +11,11 @@
|
|
11
11
|
- tr_params = {:class => work_day_classes(day)}
|
12
12
|
- tr_params.merge!(:rel => 'popover', 'data-content' => h(render 'timesheets/activities_popover', :activities => day.activities), 'data-original-title' => 'Aktivitäten', 'data-html' => 'true') unless day.activities.empty?
|
13
13
|
%tr{tr_params}
|
14
|
-
%td
|
14
|
+
%td
|
15
|
+
- if day.activities.empty?
|
16
|
+
= link_to l(day.date, :format => '%a, %d.%m.%Y'), new_activity_path(:activity => {:person_id => @employee.id, :date => day.date.to_s(:db)}), 'data-href-container' => 'tr'
|
17
|
+
- else
|
18
|
+
= link_to l(day.date, :format => '%a, %d.%m.%Y'), person_activities_path(@employee, :by_date => day.date.to_s(:db)), 'data-href-container' => 'tr'
|
15
19
|
%td.right
|
16
20
|
%span.strong= "%0.2f" % day.hours_worked
|
17
21
|
= "(%0.2f)" % day.hours_due
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bookyt_projects
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 93
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 19
|
9
|
-
-
|
10
|
-
version: 0.19.
|
9
|
+
- 7
|
10
|
+
version: 0.19.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Roman Simecek (CyT)
|