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
f04082e9
Commit
f04082e9
authored
Oct 12, 2017
by
Robert Lyon
Committed by
Gerrit Code Review
Oct 12, 2017
Browse files
Merge "Bug 1721866: Don't show "multiple journals" blurb in group journal posts page"
parents
15d050dd
1a7c2a20
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/lang/en.utf8/artefact.blog.php
View file @
f04082e9
...
...
@@ -158,6 +158,9 @@ $string['viewposts'] = 'Copied entries (%s)';
$string
[
'postscopiedfromview'
]
=
'Entries copied from %s'
;
$string
[
'youhavenoblogs'
]
=
'You have no journals.'
;
$string
[
'youhavenogroupblogs'
]
=
'There are no journals in this group.'
;
$string
[
'youhavenoinstitutionblogs'
]
=
'There are no journals in this institution.'
;
$string
[
'youhavenositeblogs'
]
=
'There are no site journals.'
;
$string
[
'youhaveoneblog'
]
=
'You have 1 journal.'
;
$string
[
'youhaveblogs'
]
=
'You have %s journals.'
;
...
...
htdocs/artefact/blog/view/index.php
View file @
f04082e9
...
...
@@ -202,7 +202,7 @@ if ($institutionname) {
$institution
=
new
Institution
(
$institutionname
);
$smarty
->
assign
(
'institutiondisplayname'
,
$institution
->
displayname
);
}
else
if
(
!
$USER
->
get_account_preference
(
'multipleblogs'
))
{
else
if
(
!
$groupid
&&
!
$USER
->
get_account_preference
(
'multipleblogs'
))
{
$blogcount
=
count_records
(
'artefact'
,
'artefacttype'
,
'blog'
,
'owner'
,
$USER
->
get
(
'id'
));
if
(
$blogcount
==
1
)
{
$smarty
->
assign
(
'enablemultipleblogstext'
,
1
);
...
...
htdocs/theme/raw/plugintype/artefact/blog/templates/index.tpl
View file @
f04082e9
...
...
@@ -8,7 +8,17 @@
</div>
{/
if
}
{
if
!
$blogs
->
data
}
<p
class=
"no-results"
>
{
str
tag
=
youhavenoblogs
section
=
artefact
.
blog
}
</p>
<p
class=
"no-results"
>
{
if
$group
}
{
str
tag
=
youhavenogroupblogs
section
=
artefact
.
blog
}
{
elseif
$institutionname
==
'mahara'
}
{
str
tag
=
youhavenositeblogs
section
=
artefact
.
blog
}
{
elseif
$institutionname
}
{
str
tag
=
youhavenoinstitutionblogs
section
=
artefact
.
blog
}
{
else
}
{
str
tag
=
youhavenoblogs
section
=
artefact
.
blog
}
{/
if
}
</p>
{
else
}
<div
class=
"rel view-container"
>
<div
class=
"panel-items"
>
...
...
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