Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
comment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
comment
Commits
6cab9d22395a
Commit
6cab9d22395a
authored
16 years ago
by
Adrien Di Mascio
Browse files
Options
Downloads
Patches
Plain Diff
use the new css and js naming convention
parent
0e6ac96212d7
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
data/cubes.comment.css
+0
-0
0 additions, 0 deletions
data/cubes.comment.css
data/cubes.comment.js
+0
-0
0 additions, 0 deletions
data/cubes.comment.js
views.py
+7
-7
7 additions, 7 deletions
views.py
with
7 additions
and
7 deletions
data/cub
icweb
.comment.css
→
data/cub
es
.comment.css
+
0
−
0
View file @
6cab9d22
This diff is collapsed.
Click to expand it.
data/cub
icweb
.comment.js
→
data/cub
es
.comment.js
+
0
−
0
View file @
6cab9d22
This diff is collapsed.
Click to expand it.
views.py
+
7
−
7
View file @
6cab9d22
...
...
@@ -29,7 +29,7 @@
accepts
=
(
'
Comment
'
,)
def
cell_call
(
self
,
row
,
col
):
self
.
req
.
add_css
(
'
cub
icweb
.comment.css
'
)
self
.
req
.
add_css
(
'
cub
es
.comment.css
'
)
entity
=
self
.
complete_entity
(
row
,
col
)
# display text, author and creation date
self
.
w
(
u
'
<div class=
"
comment
"
>
'
)
...
...
@@ -85,8 +85,8 @@
def
cell_call
(
self
,
row
,
col
,
**
kwargs
):
_
=
self
.
req
.
_
self
.
req
.
add_js
(
'
ajax.js
'
)
# XXXFIXME
cubicweb.ajax.js
self
.
req
.
add_css
(
'
cub
icweb
.comment.css
'
)
self
.
req
.
add_js
(
'
cubicweb.ajax.js
'
)
self
.
req
.
add_css
(
'
cub
es
.comment.css
'
)
entity
=
self
.
entity
(
row
,
col
)
diem
=
self
.
format_date
(
entity
.
creation_date
)
action
=
self
.
vreg
.
select_action
(
'
reply_comment
'
,
self
.
req
,
self
.
rset
,
row
)
...
...
@@ -158,7 +158,7 @@
</div>
"""
def
call
(
self
,
commented
):
self
.
req
.
add_js
(
'
cub
icweb
.comment.js
'
)
self
.
req
.
add_js
(
'
cub
es
.comment.js
'
)
newcomment
=
self
.
vreg
.
etype_class
(
'
Comment
'
)(
self
.
req
,
None
,
None
)
newcomment
.
eid
=
'
INLINE
'
# hack to avoid tabindex conflicts caused by Ajax requests
...
...
@@ -195,7 +195,7 @@
</div>
"""
def
cell_call
(
self
,
row
,
col
):
self
.
req
.
add_js
(
[
'
ajax.js
'
,
'
cub
icweb
.comment.js
'
]
)
# XXXFIXME
self
.
req
.
add_js
(
(
'
cubicweb.
ajax.js
'
,
'
cub
es
.comment.js
'
)
)
# hack to avoid tabindex conflicts caused by Ajax request
self
.
req
.
next_tabindex
=
count
(
20
).
next
comment
=
self
.
entity
(
row
,
col
)
...
...
@@ -231,7 +231,7 @@
def
call
(
self
,
view
=
None
,
orderby
=
'
diem
'
):
req
=
self
.
req
req
.
add_js
(
[
'
ajax.js
'
,
'
cub
icweb
.comment.js
'
]
)
req
.
add_js
(
(
'
cubicweb.
ajax.js
'
,
'
cub
es
.comment.js
'
)
)
eid
=
self
.
rset
[
0
][
0
]
if
orderby
==
'
author
'
:
rql
=
u
'
Any C,CD,CC,CCF,U,UL,US,UF ORDERBY UL WHERE C is Comment,
'
\
...
...
@@ -250,7 +250,7 @@
reply
=
u
'
(<a href=
"
%s
"
>%s</a>)
'
%
(
url
,
req
.
_
(
action
.
title
))
if
req
.
property_value
(
'
ui.fckeditor
'
)
and
\
req
.
property_value
(
'
ui.default-text-format
'
)
==
'
text/html
'
:
req
.
add_js
(
[
'
fckeditor.js
'
]
)
req
.
add_js
(
'
fckeditor.js
'
)
req
.
fckeditor_config
()
else
:
reply
=
u
''
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment