Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mahara
mahara
Commits
a296d318
Commit
a296d318
authored
Mar 27, 2018
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 27, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge "Bug 1758226: Showing correct message in view edit button"
parents
4d3bd3a5
5deb0a54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
htdocs/theme/raw/templates/view/editviewtabs.tpl
htdocs/theme/raw/templates/view/editviewtabs.tpl
+1
-1
test/behat/features/user_content/edit_page.feature
test/behat/features/user_content/edit_page.feature
+3
-3
No files found.
htdocs/theme/raw/templates/view/editviewtabs.tpl
View file @
a296d318
<div
id=
"toolbar-buttons"
class=
"btn-group btn-toolbar btn-group-top"
>
<a
class=
"btn btn-default editviews editlayout
{
if
$selected
==
'layout'
or
$selected
==
'editlayout'
}
active
{/
if
}
"
href=
"
{
$WWWROOT
}
view/editlayout.php?id=
{
$viewid
}
"
title=
"
{
if
$edittitle
}{
str
tag
=
settings
section
=
view
}{
else
}{
str
tag
=
editlayout
section
=
view
}{/
if
}
"
>
title=
"
{
if
$edittitle
||
$canuseskins
}{
str
tag
=
settings
section
=
view
}{
else
}{
str
tag
=
editlayout
section
=
view
}{/
if
}
"
>
<span
class=
"icon icon-lg icon-cogs"
></span>
<span
class=
"btn-title"
>
{
if
(
$edittitle
||
$canuseskins
)
}{
str
tag
=
settings
section
=
view
}{
else
}{
str
tag
=
editlayout
section
=
view
}{/
if
}
</span>
</a>
...
...
test/behat/features/user_content/edit_page.feature
View file @
a296d318
...
...
@@ -73,7 +73,7 @@ Scenario: Clicking ID's (Bug 1428456)
And
I scroll to the top
# Checking if we can change page layout
When
I follow
"
Edit layout"
And
I follow
"
Settings"
in the
"Toolbar buttons"
property
And
I expand all fieldsets
And
I scroll to the base of id
"addrow"
And
I press
"Add a row"
...
...
@@ -98,7 +98,7 @@ Scenario: Profile and dashboard pages basic settings and skins can't be edited -
And
I follow
"Profile page"
And
I scroll to the base of id
"viewh1"
And
I follow
"Edit"
When
I follow
"
Edit layout"
And
I follow
"
Settings"
in the
"Toolbar buttons"
property
And
I should see
"Layout"
And
I should not see
"Basics"
And
I should see
"Skin"
...
...
@@ -108,7 +108,7 @@ Scenario: Profile and dashboard pages basic settings and skins can't be edited -
# Dashboard page
And
I choose
"Dashboard"
from main menu
And
I follow
"Edit dashboard"
When
I follow
"
Edit layout"
And
I follow
"
Settings"
in the
"Toolbar buttons"
property
And
I should see
"Layout"
And
I should not see
"Basics"
And
I should see
"Skin"
...
...
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