Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
senchatouch-timesheet
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
0
Merge Requests
0
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
senchatouch-timesheet
Commits
401f8cfb
Commit
401f8cfb
authored
Jun 24, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added redirect to senchatouch portlet
parent
c13e9348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
senchatouch-timesheet-procs.tcl
tcl/senchatouch-timesheet-procs.tcl
+13
-0
No files found.
tcl/senchatouch-timesheet-procs.tcl
View file @
401f8cfb
...
...
@@ -3,6 +3,19 @@
ad_proc -public senchatouch_timesheet_home_component
{}
{
Home component advertizing Mobile Timesheet
}
{
# Redirect mobile browsers to
set mobile_p
[
im_browser_is_mobile_p
]
set mobile_url
[
parameter::get_from_package_key -package_key
"intranet-core"
-parameter RedirectMobileBrowsersUrl -default
"default"
]
if
{
"default"
eq
$mobile
_url
}
{
# Check if senchatouch-timesheet is installed
set senchatouch_ts_sql
"select count(*) from apm_enabled_package_versions where package_key = 'senchatouch-timesheet'"
set senchatouch_ts_installed_p
[
util_memoize
[
list
db_string senchatouch_installed_p
$senchatouch
_ts_sql -default 0
]]
if
{
$senchatouch
_ts_installed_p
}
{
set mobile_url
"/senchatouch-timesheet"
}
}
if
{
$mobile
_p &&
(
$mobile
_url ne
""
)}
{
ad_returnredirect
$mobile
_url
}
return
"
<table>
...
...
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