Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion www/view-comment.adp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<h2>#general-comments.Revisions#</h2>
<ul>
<multiple name=revisions>
<if @revision_id@ eq @revisions.revision_id@>
<if @curr_revision_id@ eq @revisions.revision_id@>
<li>@revisions.revision_date@
</if>
<else>
Expand Down
4 changes: 3 additions & 1 deletion www/view-comment.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ad_page_contract {
} {
comment_id:notnull
{ revision_id {} }
{ curr_revision_id {} }
{ object_name {} }
{ return_url {} }
} -properties {
Expand Down Expand Up @@ -42,6 +43,7 @@ set admin_p [ad_permission_p $package_id admin]

# if the user has write permissions then allow
# viewing of selected revision
set curr_revision_id $revision_id
if { $write_perm_p == 1 } {
if { [empty_string_p $revision_id] } {
# get the latest revision
Expand Down Expand Up @@ -122,7 +124,7 @@ set action_url_add_url [export_vars -base "url-add" {{parent_id $comment_id} ret

# Revisions section
set return_url_view "../${return_url_view}"
if { $live_revision ne $revision_id } {
if { $live_revision ne $curr_revision_id } {
set font_color "red"
set pre_text [_ general-comments.lt_This_revision_is_not_]
set admin_toggle_url [export_vars -base "admin/toggle-approval" {comment_id revision_id {return_url $return_url_view}}]
Expand Down