bookyt_projects 0.19.9 → 0.19.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,5 +10,9 @@ module BookytProjects
10
10
  def latest_project
11
11
  activities.order(:date).last.try(:project)
12
12
  end
13
+
14
+ def uses_timetracker?
15
+ work_days.present?
16
+ end
13
17
  end
14
18
  end
@@ -2,8 +2,8 @@
2
2
 
3
3
  .row
4
4
  .span8
5
- - range = Date.parse('2012-01-01')..Date.parse('2012-01-31')
6
- = render 'timesheets/show', :work_days => @employee.work_days.where(:date => range)
7
- .span8
8
- - range = Date.today.beginning_of_month..Date.today.end_of_month
5
+
9
6
  = render 'timesheets/show', :work_days => @employee.work_days.where(:date => range)
7
+
8
+ .span4
9
+ = render 'timesheets/pager'
@@ -0,0 +1,4 @@
1
+ %h3= t('title.period')
2
+
3
+ %ul.pager
4
+ = month_pages(:time_sheet_period)
@@ -1,5 +1,3 @@
1
- %h3= "%s - %s" % [work_days.first.date, work_days.last.date]
2
-
3
1
  %table.condensed-table.span8
4
2
  %tr
5
3
  %th= t_attr :date, Activity
@@ -55,3 +55,11 @@ de:
55
55
  title: Aktivitäten
56
56
  timesheet:
57
57
  title: Stundenrapport
58
+
59
+ project_states:
60
+ index:
61
+ title: Projektstatus
62
+
63
+ projects:
64
+ index:
65
+ title: Projekte
@@ -6,8 +6,6 @@ module BookytProjects
6
6
  projects.item :new_project, t_title(:new, Project), new_project_path
7
7
  projects.item :divider, "", :class => 'divider'
8
8
  projects.item :capture_hours, t('activities.new.title'), new_batch_activity_path
9
- projects.item :divider, "", :class => 'divider'
10
- projects.item :project_states, t_model(ProjectState), project_states_path, :highlights_on => /\/project_states($|\/([0-9]*|new)($|\/.*))/
11
9
  end
12
10
  end
13
11
  end
@@ -1,3 +1,3 @@
1
1
  module BookytPos
2
- VERSION = '0.19.9'
2
+ VERSION = '0.19.10'
3
3
  end
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: 65
4
+ hash: 71
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 19
9
- - 9
10
- version: 0.19.9
9
+ - 10
10
+ version: 0.19.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Roman Simecek (CyT)
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-02-01 00:00:00 Z
19
+ date: 2012-03-05 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rails
@@ -127,6 +127,7 @@ files:
127
127
  - app/views/projects/_show.html.haml
128
128
  - app/views/projects/_show_activities.html.haml
129
129
  - app/views/timesheets/_activities_popover.html.haml
130
+ - app/views/timesheets/_pager.html.haml
130
131
  - app/views/timesheets/_show.html.haml
131
132
  - app/views/timesheets/index.html.haml
132
133
  - config/application.rb
@@ -181,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
182
  requirements: []
182
183
 
183
184
  rubyforge_project:
184
- rubygems_version: 1.8.15
185
+ rubygems_version: 1.8.10
185
186
  signing_key:
186
187
  specification_version: 3
187
188
  summary: Project management plugin for bookyt