Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
f08f7268
Commit
f08f7268
authored
Sep 12, 2016
by
Son Nguyen
Committed by
Gerrit Code Review
Sep 12, 2016
Browse files
Merge "Bug 1620119: Fix for the brokenness in annotation feedback list"
parents
cf5844d2
5f70a878
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/annotation/lib.php
View file @
f08f7268
...
...
@@ -818,7 +818,8 @@ class ArtefactTypeAnnotationfeedback extends ArtefactType {
if
(
$item
->
deletedby
)
{
$item
->
deletedmessage
=
$deletedmessage
[
$item
->
deletedby
];
}
else
if
((
$candelete
||
$item
->
isauthor
)
&&
!
$is_export_preview
&&
!
$isadminfeedback
)
{
else
if
((
$candelete
||
$item
->
isauthor
)
&&
!
$is_export_preview
&&
(
!
$isadminfeedback
||
(
$isadminfeedback
&&
(
$data
->
owner
===
$item
->
author
))))
{
// If the auther was admin/staff and not the owner of the annotation,
// the feedback can't be deleted.
$item
->
deleteform
=
pieform
(
self
::
delete_annotation_feedback_form
(
$data
->
annotation
,
$data
->
view
,
$data
->
artefact
,
$data
->
block
,
$item
->
id
));
...
...
@@ -1377,6 +1378,7 @@ class ArtefactTypeAnnotationfeedback extends ArtefactType {
'renderer'
=>
'oneline'
,
'plugintype'
=>
'artefact'
,
'pluginname'
=>
'annotation'
,
'class'
=>
'form-as-button pull-left delete-comment btn-group-item'
,
'jsform'
=>
true
,
'successcallback'
=>
'delete_annotation_feedback_submit'
,
'jssuccesscallback'
=>
'modifyAnnotationFeedbackSuccess'
,
...
...
@@ -1389,7 +1391,7 @@ class ArtefactTypeAnnotationfeedback extends ArtefactType {
'submit'
=>
array
(
'type'
=>
'button'
,
'usebuttontag'
=>
true
,
'class'
=>
'btn-default'
,
'class'
=>
'btn-default
btn-sm
'
,
'value'
=>
'<span class="icon icon-trash text-danger" role="presentation" aria-hidden="true"></span><span class="sr-only">'
.
get_string
(
'delete'
)
.
'</span>'
,
'elementtitle'
=>
get_string
(
'delete'
),
'confirm'
=>
get_string
(
'reallydeletethisannotationfeedback'
,
'artefact.annotation'
),
...
...
htdocs/theme/raw/plugintype/artefact/annotation/templates/annotationlist.tpl
View file @
f08f7268
...
...
@@ -26,16 +26,16 @@
{/
if
}
</span>
</h5>
<div
class=
"btn-group btn-group-top"
>
{
if
$item
->
deleteform
}
{
$item
->
deleteform
|
safe
}
{/
if
}
<div
class=
"btn-group btn-group-top comment-item-buttons"
>
{
if
$item
->
canedit
}
<a
href=
"
{
$WWWROOT
}
artefact/annotation/edit.php?id=
{
$item
->
id
}
&viewid=
{
$viewid
}
"
class=
"btn btn-default pull-left"
>
<a
href=
"
{
$WWWROOT
}
artefact/annotation/edit.php?id=
{
$item
->
id
}
&viewid=
{
$viewid
}
"
class=
"btn btn-default
btn-group-item form-as-button
pull-left"
>
<span
class=
"icon icon-lg icon-pencil text-default"
role=
"presentation"
aria-hidden=
"true"
></span>
<span
class=
"sr-only"
>
{
str
tag
=
edit
}
</span>
</a>
{/
if
}
{
if
$item
->
deleteform
}
{
$item
->
deleteform
|
safe
}
{/
if
}
</div>
</div>
...
...
htdocs/theme/raw/sass/components/_list-group.scss
View file @
f08f7268
...
...
@@ -273,6 +273,10 @@ h4.list-group-item-heading {
}
}
.annotation-feedback
.list-group
.list-group-item
{
border-top
:
1px
solid
#ddd
!
important
;
}
.column-list
{
-moz-column-count
:
3
;
-moz-column-gap
:
20px
;
...
...
Write
Preview
Supports
Markdown
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