Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wiki
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
wiki
Commits
b9ae169d
Commit
b9ae169d
authored
Feb 12, 2007
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- added delete option
parent
4b10e754
Pipeline
#663
failed with stages
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
27 deletions
+55
-27
delete.tcl
www/admin/delete.tcl
+22
-0
index-postgresql.xql
www/admin/index-postgresql.xql
+4
-1
index.tcl
www/admin/index.tcl
+29
-26
No files found.
www/admin/delete.tcl
0 → 100644
View file @
b9ae169d
ad_page_contract
{
Delete the item entirely
@author Frank Bergmann
(
frank.bergmann@project-open.com
)
@creation-date February 2007
}
{
item_id:integer
revision_id:integer
return_url
}
set
user_id
[
auth::require_login
]
permission::require_permission -party_id
$user
_id
\
-object_id
$item
_id -privilege admin
db_string delete_item
"
select content_item__delete(:item_id)
"
ad_returnredirect
$return
_url
www/admin/index-postgresql.xql
View file @
b9ae169d
...
...
@@ -7,7 +7,9 @@
<querytext>
select
r.item_id, v.title, last_modified
r.item_id, v.title, last_modified,
o.creation_user as latest_creation_user,
acs_object__name(o.creation_user) as latest_creation_user_name
from
cr_items i
LEFT OUTER JOIN
...
...
@@ -44,6 +46,7 @@
v.content_length as latest_length,
v.publish_date as latest_publish_date,
ro.creation_user as latest_creation_user,
acs_object__name(ro.creation_user) as latest_creation_user_name,
u.revision_id as live_revision_id,
u.publish_date as live_publish_date,
...
...
www/admin/index.tcl
View file @
b9ae169d
...
...
@@ -88,50 +88,50 @@ template::list::create \
-multirow folder_contents
\
-has_checkboxes
\
-key item_id
\
-page_size
5
0
\
-page_size
10
0
\
-page_query_name get_folder_contents_paginate
\
-actions
$actions
\
-elements {
title {
label "
Nam
e
"
label "
Wiki Pag
e
"
link_html { title "
View this item
"}
link_url_col cms_admin_url
orderby title
}
live_preview {
label "
Conf
. Prev
"
label "
Conf
irmed<br>Version
"
link_html { title "
View the latest confirmed version of this item
"}
link_url_col live_preview_url
}
l
atest_preview
{
label "
New Prev
"
link_html { title "
View the latest version of this item
"
}
link_url_col latest_preview_url
l
ive_publish_date
{
label "
Confirmation<br>Date
"
display_eval {
[
lc_time_fmt
$live
_publish_date
"%y-%m-%d"
]
}
orderby u.publish_date
}
live_size {
label "
Conf. Size
"
}
latest_size {
label "
New Size
"
label "
Confirmed<br>Size
"
}
live_publish_date {
label "
Conf. Date
"
display_eval {
[
lc_time_fmt
$live
_publish_date
"%y-%m-%d"
]
}
orderby u.publish_date
latest_preview {
label "
New<br>Version
"
link_html { title "
View the latest version of this item
"}
link_url_col latest_preview_url
}
latest_publish_date {
label "
New
Date
"
label "
New
<br>
Date
"
display_eval {
[
lc_time_fmt
$latest
_publish_date
"%y-%m-%d"
]
}
orderby v.publish_date
}
latest_size {
label "
New<br>Size
"
}
latest_creation_user {
label "
Mod
.
by
"
latest_creation_user
_name
{
label "
Mod
ified
by
"
link_html { title "
More information about this user
"}
link_url_col latest_creation_user_url
orderby latest_creation_user_name
}
cancel_action {
label "
Revert
"
...
...
@@ -143,6 +143,11 @@ template::list::create \
link_html { title "
Confirm the new revision
"}
link_url_col confirm_action_url
}
delete_action {
label "
Delete
"
link_html { title "
Delete the item with all revisions
"}
link_url_col delete_action_url
}
}
\
-filters {
folder_id {}
...
...
@@ -150,22 +155,20 @@ template::list::create \
mount_point {}
}
db_multirow -extend { item_url latest_size live_size cancel_action confirm_action cancel_action_url confirm_action_url live_preview latest_preview live_preview_url latest_preview_url cms_admin_url latest_creation_user_url } folder_contents get_folder_contents "" {
db_multirow -extend { item_url latest_size live_size cancel_action confirm_action cancel_action_url
delete_action delete_action_url
confirm_action_url live_preview latest_preview live_preview_url latest_preview_url cms_admin_url latest_creation_user_url } folder_contents get_folder_contents "" {
set cancel_action "
Revert
"
set cancel_action_url
[
export_vars -base
"update_latest_revision?item_id=
$item
_id&revision_id=
$live
_revision_id"
{
return_url
}
]
set confirm_action "
Confirm
"
set confirm_action_url
[
export_vars -base
"update_live_revision?item_id=
$item
_id&revision_id=
$latest
_revision_id"
{
return_url
}
]
set delete_action "
Delete
"
set delete_action_url
[
export_vars -base
"delete?item_id=
$item
_id&revision_id=
$latest
_revision_id"
{
return_url
}
]
set latest_preview "
New
"
set latest_preview_url "
/$wiki_mount/
[
ns_urlencode
$name
]
"
set live_preview "
Confirmed
"
set live_preview_url "
/$wiki_mount/
[
ns_urlencode
$name
]
?revision_id=$live_revision_id
"
set cms_admin_url "
/cms/modules/items/index?item_id=$item_id
"
set latest_creation_user_url "
/intranet/users/view?user_id=$latest_creation_user
"
switch
$content
_type {
...
...
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