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
0076b835
Commit
0076b835
authored
Feb 17, 2008
by
Nigel McNie
Browse files
Make the button in the right say 'back to create my view' if the user is creating a new view'.
parent
c0f494c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/default/templates/view/view.tpl
View file @
0076b835
...
...
@@ -4,7 +4,7 @@
{
if
$can_edit
}
<div
class=
"fr editview"
>
<span
class=
"settingsicon"
>
<a
href=
"blocks.php?id=
{
$viewid
}
&new=
{
$new
}
"
>
{
str
tag
=
edit
my
view
section
=
view
}
</a>
<a
href=
"blocks.php?id=
{
$viewid
}
&new=
{
$new
}
"
>
{
$
streditview
button
}
</a>
</span>
</div>
{/
if
}
...
...
htdocs/view/view.php
View file @
0076b835
...
...
@@ -266,6 +266,7 @@ $smarty->assign('viewdescription', $view->get('description'));
$smarty
->
assign
(
'viewcontent'
,
$view
->
build_columns
());
$smarty
->
assign
(
'viewowner'
,
$view
->
get
(
'owner'
));
$smarty
->
assign
(
'formattedowner'
,
$view
->
formatted_owner
());
$smarty
->
assign
(
'streditviewbutton'
,
(
$new
)
?
get_string
(
'backtocreatemyview'
,
'view'
)
:
get_string
(
'editmyview'
,
'view'
));
if
(
$USER
->
get
(
'id'
)
==
$view
->
get
(
'owner'
))
{
$smarty
->
assign
(
'can_edit'
,
true
);
...
...
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