Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-timesheet2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-timesheet2
Commits
57a909e6
Commit
57a909e6
authored
Nov 30, 2005
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- integrated "Export Timesheet Cube" in Timesheet Home Component
parent
bfc44290
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
intranet-timesheet2-procs.tcl
tcl/intranet-timesheet2-procs.tcl
+23
-10
No files found.
tcl/intranet-timesheet2-procs.tcl
View file @
57a909e6
...
...
@@ -56,18 +56,31 @@ ad_proc -public im_timesheet_home_component {user_id} {
if
{[
im_permission
$user
_id view_hours_all
]}
{
append hours_html
"
<ul>
<li><a href=/intranet-timesheet2/hours/projects?
[
export_url_vars user_id
]
>
[
_ intranet-timesheet2.lt_View_your_hours_on_al
]
</a>
<li><a href=/intranet-timesheet2/hours/total?
[
export_url_vars
]
>
[
_ intranet-timesheet2.lt_View_time_spent_on_al
]
</a>
<li><a href=/intranet-timesheet2/hours/projects?
[
export_url_vars
]
>
[
_ intranet-timesheet2.lt_View_the_hours_logged
]
</a>
<li><a href=
\"
/intranet-timesheet2/weekly_report
\"
>
[
_ intranet-timesheet2.lt_View_hours_logged_dur
]
</a>
"
<ul>
<li><a href=/intranet-timesheet2/hours/projects?
[
export_url_vars user_id
]
>
[
_ intranet-timesheet2.lt_View_your_hours_on_al
]
</a>
<li><a href=/intranet-timesheet2/hours/total?
[
export_url_vars
]
>
[
_ intranet-timesheet2.lt_View_time_spent_on_al
]
</a>
<li><a href=/intranet-timesheet2/hours/projects?
[
export_url_vars
]
>
[
_ intranet-timesheet2.lt_View_the_hours_logged
]
</a>
<li><a href=
\"
/intranet-timesheet2/weekly_report
\"
>
[
_ intranet-timesheet2.lt_View_hours_logged_dur
]
</a>
"
}
set dw_light_exists_p
[
db_string dw_light_exists_p
{
select count
(
*
)
from apm_packages
where package_key = 'intranet-dw-light'
}
-default 0
]
if
{[
im_permission
$user
_id view_hours_all
]
&&
$dw
_light_exists_p
}
{
append hours_html
"
<li><a href=/intranet-dw-light/timesheet.csv>
[
lang::message::lookup
""
intranet-dw-light.Export_Timesheet_Cube
"Export Timesheet Cube"
]
</a>
\n
"
}
if
{
$add
_hours
}
{
set log_hours_link
"<a href=/intranet-timesheet2/hours/index>"
set add_html
"<li>
[
_ intranet-timesheet2.lt_Log_your_log_hours_li
]
</a>
\n
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment