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
35849995
Commit
35849995
authored
Apr 29, 2010
by
Richard Mansfield
Browse files
Show updated or created in latest views block
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
92441fe4
Changes
3
Hide whitespace changes
Inline
Side-by-side
htdocs/blocktype/newviews/theme/raw/newviews.tpl
View file @
35849995
...
...
@@ -11,7 +11,10 @@
{
else
}
{
$view.sharedby
|
escape
}
{/
if
}
<span
class=
"postedon"
>
{
$view.mtime
|
strtotime
|
format_date
:
'strftimedate'
}
</span>
<span
class=
"postedon"
>
{
if
$view.mtime
==
$view.ctime
}{
str
tag
=
Created
}{
else
}{
str
tag
=
Updated
}{/
if
}
{
$view.mtime
|
strtotime
|
format_date
:
'strftimedate'
}
</span>
</div>
{/
if
}
{/
foreach
}
...
...
htdocs/lang/en.utf8/mahara.php
View file @
35849995
...
...
@@ -874,6 +874,7 @@ $string['backto'] = 'Back to %s';
$string
[
'alphabet'
]
=
'A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z'
;
$string
[
'formatpostbbcode'
]
=
'You can format your post using BBCode. %sLearn more%s'
;
$string
[
'Created'
]
=
'Created'
;
$string
[
'Updated'
]
=
'Updated'
;
$string
[
'Total'
]
=
'Total'
;
$string
[
'Visits'
]
=
'Visits'
;
...
...
htdocs/lib/view.php
View file @
35849995
...
...
@@ -2331,9 +2331,12 @@ class View {
$viewdata
=
get_records_sql_array
(
'
SELECT * FROM (
SELECT
v.id, v.title, v.description, v.owner, v.ownerformat, v.group, v.institution, v.template, v.mtime
v.id, v.title, v.description, v.owner, v.ownerformat, v.group, v.institution,
v.template, v.mtime, v.ctime
'
.
$from
.
$where
.
'
GROUP BY v.id, v.title, v.description, v.owner, v.ownerformat, v.group, v.institution, v.template, v.mtime
GROUP BY
v.id, v.title, v.description, v.owner, v.ownerformat, v.group, v.institution,
v.template, v.mtime, v.ctime
) a
ORDER BY a.'
.
$orderby
.
', a.id ASC'
,
$ph
,
$offset
,
$limit
...
...
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