Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xowiki
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
xowiki
Commits
3accda40
Commit
3accda40
authored
Dec 10, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- ponet customizations
parent
d91348dc
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
294 additions
and
45 deletions
+294
-45
oacs-view.adp
resources/templates/oacs-view.adp
+1
-1
oacs-view2.adp
resources/templates/oacs-view2.adp
+1
-1
oacs-view3-bootstrap3.adp
resources/templates/oacs-view3-bootstrap3.adp
+1
-1
oacs-view3.adp
resources/templates/oacs-view3.adp
+1
-1
view-book-no-ajax.adp
resources/templates/view-book-no-ajax.adp
+1
-1
view-book.adp
resources/templates/view-book.adp
+1
-1
view-default.adp
resources/templates/view-default.adp
+1
-1
view-links.adp
resources/templates/view-links.adp
+1
-1
view-plain.adp
resources/templates/view-plain.adp
+1
-1
includelet-procs.tcl
tcl/includelet-procs.tcl
+9
-0
tree-procs.tcl
tcl/tree-procs.tcl
+60
-0
xowiki-procs.tcl
tcl/xowiki-procs.tcl
+1
-1
error-template.adp
www/error-template.adp
+205
-21
hexagon-portlet.tcl
www/portlets/hexagon-portlet.tcl
+10
-14
No files found.
resources/templates/oacs-view.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/oacs-view2.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/oacs-view3-bootstrap3.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/oacs-view3.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/view-book-no-ajax.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/view-book.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/view-default.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<master>
<property name="context">@context;literal@</property>
<if @item_id@ not nil><property name="displayed_object_id">@item_id;literal@</property></if>
...
...
resources/templates/view-links.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<!-- The following DIV is needed for overlib to function! -->
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<div class='xowiki-content'>
...
...
resources/templates/view-plain.adp
View file @
3accda40
<!-- Generated by ::xowiki::ADP_Generator on
Mon Dec 07 10:49:06
CET 2020 -->
<!-- Generated by ::xowiki::ADP_Generator on
Thu Dec 10 17:05:50
CET 2020 -->
<!-- The following DIV is needed for overlib to function! -->
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
<div class='xowiki-content'>
...
...
tcl/includelet-procs.tcl
View file @
3accda40
...
...
@@ -476,6 +476,15 @@ namespace eval ::xowiki::includelet {
return
"<div
$id
class='
$class
'>
[
next
]
</div>"
}
# CUSTOMIZATION PROJOP
Class create ::xowiki::includelet::decoration=plain-no-div -instproc render
{}
{
return
"
[
next
]
"
}
# /CUSTOMIZATION PROJOP
Class create ::xowiki::includelet::decoration=rightbox -instproc render
{}
{
set class
[
namespace
tail
[
my info class
]]
set id
[
expr
{[
my exists id
]
?
"id='
[
my id
]
'"
:
""
}]
...
...
tcl/tree-procs.tcl
View file @
3accda40
...
...
@@ -284,10 +284,70 @@ namespace eval ::xowiki {
#::xo::Page requireJS
"/resources/acs-templating/mktree.js"
template::add_body_script -src
"/resources/acs-templating/mktree.js"
}
TreeRenderer=mktree proc render
{
tree
}
{
return
"<ul class='mktree' id='
[
$tree
id
]
'>
[
next
]
</ul>"
}
# CUSTOMIZATION PROJOP --------------------------------------------
# List specific renderer BOOTSTRAP template
# TreeRenderer create TreeRenderer=bootstrap -superclass TreeRenderer=list
TreeRenderer create TreeRenderer=bootstrap
TreeRenderer=bootstrap proc render
{
tree
}
{
return
"<ul class=
\"
nav navbar-nav
\"
>
[
next
]
</ul>"
# return
"<ul>
[
next
]
</ul>"
}
TreeRenderer=bootstrap instproc render_item
{{
-highlight:boolean false
}
item
}
{
$item
instvar title href
set prefix
[
$item
set prefix
]
set suffix
[
$item
set suffix
]
if
{
!
[
$item
exists encoded
(
prefix
)]}
{
set
prefix
[
::xowiki::Includelet html_encode
$prefix
]}
if
{
!
[
$item
exists encoded
(
suffix
)]}
{
set
suffix
[
::xowiki::Includelet html_encode
$suffix
]}
append entry
\
$prefix
"<a href='
$href
'>"
[
::xowiki::Includelet html_encode
$title
]
"</a>"
$suffix
if
{
$highlight
}
{
return
"<li class='active'><b>
$entry
</b></li>
\n
"
}
else
{
return
"<li>
$entry
</li>
\n
"
}
}
TreeRenderer=bootstrap instproc render_node
{{
-open:boolean false
}
cat_content
}
{
set label
[
::xowiki::Includelet html_encode
[
my label
]]
if
{[
my exists count
]}
{
set entry
"
$label
<a href='
[
my href
]
'>(
[
my count
]
)</a>"
}
else
{
if
{[
my href
]
ne
""
}
{
# set entry
"<a href='
[
my href
]
' class='submenu-lnk'>
$label
</a>"
set entry
"<span class='submenu-lnk'>
$label
</span>"
}
else
{
# set entry
"<a href='#' class='submenu-lnk'>
[
my label
]
</a>"
set entry
"<span class='submenu-lnk'>
[
my label
]
</span>"
}
}
if
{
$cat
_content ne
""
}
{
set content
"<ul>
\n
$cat
_content</ul>"
}
else
{
set content
""
}
return
"<li>
$entry
$content
</li>"
}
# /CUSTOMIZATION PROJOP -------------------------------------------
#
# List-specific renderer based for some menus
#
...
...
tcl/xowiki-procs.tcl
View file @
3accda40
...
...
@@ -1786,7 +1786,7 @@ namespace eval ::xowiki {
Page instproc error_in_includelet
{
arg msg
}
{
my instvar name
return
[
my error_during_render
"
[
_ xowiki.error_in_includelet
]
<br >
\n
$msg
"
]
return
[
my error_during_render
"
[
_ xowiki.error_in_includelet
]
<br >
\n
<pre>
$msg
</pre>
"
]
}
Page ad_instproc resolve_included_page_name
{
page_name
}
{
...
...
www/error-template.adp
View file @
3accda40
<master>
<property name="doc(title)">@title;literal@</property>
<property name="doc(title)">@title;literal@</property>
<property name="context">@context;literal@</property>
<property name="head">@header_stuff;literal@
<link rel="stylesheet" type="text/css" href="/resources/xowiki/xowiki.css" media="all" />
</property>
<div class='xowiki-content'>
<div id='wikicmds'>
<if @back_link@ not nil><a href="@back_link;noi18n@" accesskey='b'>#xowiki.back#</a> · </if>
<if @index_link@ not nil><a href="@index_link;noi18n@" accesskey='i'>#xowiki.index#</a></if>
</div>
<p> </p>
<h3>Error:</h3>
<p>
<blockquote>
@error_msg;noquote@
<p> </p>
</blockquote>
</p>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
content=
"text/html; charset=utf-8"
http-equiv=
"Content-Type"
/>
<title>
Page not found
</title>
<style>
div
.background
{
background
:
url(/klematis.jpg)
repeat
;
/* border: 2px solid black; */
}
div
.transbox
{
margin
:
30px
;
background-color
:
#ffffff
;
opacity
:
0.8
;
filter
:
alpha
(
opacity
=
80
);
/* For IE8 and earlier */
position
:
absolute
;
left
:
0px
;
}
.ll
{
font-size
:
500%
;
font-family
:
'Arial Bold'
;
font-weight
:
500
;
line-height
:
72px
;
}
.ls
{
font-size
:
130%
;
font-family
:
'Arial Bold'
;
font-weight
:
300
;
line-height
:
36px
;
}
div
.transbox
p
{
margin
:
5%
;
font-weight
:
bold
;
color
:
#000000
;
}
</style>
</head>
<body>
<div
class=
"background"
>
<div
class=
"transbox"
>
<table
cellpadding=
"0"
cellspacing=
"0"
border=
"0"
width=
"972px"
>
<tr>
<td
colspan=
'2'
><img
src=
"http://www.project-open.net/img/project-open/logo.default.gif"
alt=
"pologo"
/></td>
</tr>
<tr>
<td>
<p
class=
'll'
>
404
<br>
PAGE
<br>
NOT FOUND
</p>
</td>
<td>
<p
class=
'ls'
>
@error_msg;noquote@
<br/><br/>
Search www.project-open.com:
<br>
<gcse:search></gcse:search>
or
<a
href=
"mailto:info@project-open.com"
>
get in touch with us.
</a>
</p>
</td>
</tr>
</table>
</div>
</div>
<
%
#
Patch
to
monitor
404
'
s
if
{[
catch
{
}
err_msg
]}
{
ns_log
Error
"
Error
tracking
xowiki404s:
$
err_msg
"
}
if
{
[
string
first
"
is
not
available
"
[
string
tolower
$
error_msg
]]
!=
-1
}
{
#
This
is
quite
likely
a
XOWIKI
404
page
#
Old
way
to
extract
the
error
message
#
set
page_name
"[
string
range
$
error_msg
[
string
first
"'"
$
error_msg
]
[
string
last
"'"
$
error_msg
]]"
#
set
page_name
[
string
trim
$
page_name
']
#
fraber
161115:
New
way
to
extract
the
page
name
set
error_msg
[
regsub
-all
{<[/
a-zA-Z
]+
>
} $error_msg ""]
regexp {'([^']+)'} $error_msg match page_name
if {![info exists page_name]} { set page_name "undefined" }
# ad_return_complaint 1 "
<pre>
$page_name
<br>
[ns_quotehtml $error_msg]
</pre>
"
# --------------------------------------------------------------
# Check if a content item exists with that name replaced with dashes
# This corresponds to the names before Klaus renamed stuff
#
set page_name_dashes "en:[string map {"_" "-"} $page_name]"
set exists_p [db_string ex "select count(*) from cr_items where name = :page_name_dashes"]
if {$exists_p} {
set foo [db_string sql "SELECT acs_log__error('xowiki404-tcl-redirected', :page_name)" -default 0]
ad_returnredirect -message "Page moved" -allow_complete_url "http://www.project-open.net/en/$page_name_dashes"
ad_script_abort
} else {
if { "contact" == $page_name } {
set foo [db_string sql "SELECT acs_log__error('xowiki404-js-redirected', :page_name)" -default 0]
} else {
set foo [db_string sql "SELECT acs_log__error('xowiki404-not-found', :page_name)" -default 0]
}
}
# --------------------------------------------------------------
# Tell Frank about the wrong installer page
set header_vars [ns_conn headers]
set url [ns_conn url]
set client_ip [ns_set get $header_vars "Client-ip"]
set referer_url [ns_set get $header_vars "Referer"]
set peer_ip [ns_conn peeraddr]
set system_id [im_system_id]
set subject "XoWiki 404: $page_name"
set body "$subject
error_msg: $error_msg
url: $url
client_ip: $client_ip
referer_url: $referer_url
peer_ip: $peer_ip
"
append body "\nHTTP Header Vars:\n"
foreach var [ad_ns_set_keys $header_vars] {
set value [ns_set get $header_vars $var]
append body "$var: $value\n"
}
if {"install" eq [string range $page_name 0 6]} { }
ns_sendmail "frank.bergmann@project-open.com" "xowiki@project-open.com" $subject $body
}
%>
<!-- Hard coded 404's -->
<script
type=
"application/javascript"
>
function
redirect
(
url
)
{
document
.
getElementById
(
'xowiki-content'
).
style
.
display
=
'none'
;
document
.
write
(
"<span style='font-size: 130%;'>Page has moved. You will be redirected to the new page in 5 seconds, otherwise please click <a href='"
+
url
+
"'>here</a>.</span>"
);
window
.
setTimeout
(
function
()
{
window
.
location
.
href
=
url
;
},
5000
);
}
if
(
window
.
location
.
pathname
==
"/en/contact"
)
{
redirect
(
"http://www.project-open.com/en/company/project-open-contact.html"
)
}
/*
// Covered by tcl code above
function UrlExists(url, cb){
jQuery.ajax({
url: url,
dataType: 'text',
type: 'GET',
complete: function(xhr){
if(typeof cb === 'function')
cb.apply(this, [xhr.status]);
}
});
}
if (console.log(window.location.pathname.indexOf('_') !== -1) ) {
console.log('Found underscore')
var path_name = window.location.pathname;
UrlExists('http://www.project-open.com' + path_name.replace(/_/g, "-"), function(status){
if(status == 200){
console.log('Found page, now redirecting')
redirect(path_name.replace(/_/g, "-"))
}
});
}
*/
</script>
<script
type=
"text/javascript"
>
// Google search
(
function
()
{
var
cx
=
'016534653354615637429:ixh7ho0hlfe'
;
var
gcse
=
document
.
createElement
(
'script'
);
gcse
.
type
=
'text/javascript'
;
gcse
.
async
=
true
;
gcse
.
src
=
(
document
.
location
.
protocol
==
'https:'
?
'https:'
:
'http:'
)
+
'//www.google.com/cse/cse.js?cx='
+
cx
;
var
s
=
document
.
getElementsByTagName
(
'script'
)[
0
];
s
.
parentNode
.
insertBefore
(
gcse
,
s
);
})();
</script>
</body>
</html>
www/portlets/hexagon-portlet.tcl
View file @
3accda40
if
{
!
[
info
exists scaling_factor
]}
{
set scaling_factor 0.7
}
if
{
!
[
info
exists hexagons
]}
{
set hexagon
"<b>Error in hexagon-portlet.tcl:</b><br>You need to specify the variable 'hexagons'"
if
{
!
[
info
exists portlet_width
]}
{
set portlet_width
""
}
if
{
!
[
info
exists portlet_height
]}
{
set portlet_height
""
}
set hexagon
[
im_hexagon -scaling_factor
$scaling
_factor -hexagons
{
{
"Collabo-<br>ration"
"https://www.project-open.net/en/module-collaboration-knowledge"
1 0
""
"Team collaboration, forums, file-storage, Wiki, chat etc."
}
{
"CRM"
"https://www.project-open.net/en/module-crm"
}
{
"ITSM"
"https://www.project-open.net/en/module-itsm"
}
{
"PM"
"https://www.project-open.net/en/module-project-management"
""
""
"/intranet-sysconfig/images/blue-100.png"
}
{
"PPM &<br>Multi-PM"
"https://www.project-open.net/en/module-ppm"
}
{
"Agile<br>PM"
"https://www.project-open.net/en/project-type-agile"
}
{
"Finance"
"https://www.project-open.net/en/module-finance"
}
}]
if
{
!
[
info
exists hexagons
]}
{
set hexagon
"<b>Error in hexagon-portlet.tcl:</b><br>You need to specify the variable 'hexagons'"
}
else
{
set hexagon
[
im_hexagon -scaling_factor
$scaling
_factor -hexagons
$hexagons
]
set hexagon
[
im_hexagon
\
-scaling_factor
$scaling
_factor
\
-portlet_width
$portlet
_width
\
-portlet_height
$portlet
_height
\
-hexagons
$hexagons
\
]
}
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