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
a77f2c41
Commit
a77f2c41
authored
Feb 13, 2007
by
Richard Mansfield
Browse files
View blog page contextual help
parent
9e28560a
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/blog/lang/en.utf8/help/sections/delete.html
0 → 100644
View file @
a77f2c41
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
/>
<title>
Login
</title>
</head>
<body
bgcolor=
"#FFFFFF"
>
<h3><strong>
Delete
</strong></h3>
<p>
Delete Blog post will permanently delete a posting and remove it from a Blog.
<strong></strong></p>
</body>
</html>
htdocs/artefact/blog/lang/en.utf8/help/sections/edit.html
0 → 100644
View file @
a77f2c41
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
/>
<title>
Login
</title>
</head>
<body
bgcolor=
"#FFFFFF"
>
<h3><strong>
Edit
</strong></h3>
<p>
Edit Blog allows
<strong>
</strong>
you to modify the content of your Blog post and change any post settings.
You can Edit a posting while in Draft or Published format.
</p>
</body>
</html>
htdocs/artefact/blog/lang/en.utf8/help/sections/publish.html
0 → 100644
View file @
a77f2c41
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=iso-8859-1"
/>
<title>
Login
</title>
</head>
<body
bgcolor=
"#FFFFFF"
>
<h3><strong>
Publish
</strong></h3>
<p>
By publishing a Draft posting you will make it available to users with access to it via a View.
</p>
</body>
</html>
htdocs/artefact/blog/view/index.js.php
View file @
a77f2c41
...
...
@@ -43,6 +43,11 @@ $enc_delete_confirm = json_encode(get_string('deleteblogpost?', 'artefact.blog')
$enc_postedon
=
json_encode
(
get_string
(
'postedon'
,
'artefact.blog'
));
$enc_cannotdeleteblogpost
=
json_encode
(
get_string
(
'cannotdeleteblogpost'
,
'artefact.blog'
));
$enc_publish_help
=
json_encode
(
get_help_icon
(
'artefact'
,
'blog'
,
null
,
null
,
null
,
'publish'
));
$enc_edit_help
=
json_encode
(
get_help_icon
(
'artefact'
,
'blog'
,
null
,
null
,
null
,
'edit'
));
$enc_delete_help
=
json_encode
(
get_help_icon
(
'artefact'
,
'blog'
,
null
,
null
,
null
,
'delete'
));
return
<<<EOJAVASCRIPT
var postlist = new TableRenderer(
...
...
@@ -56,15 +61,18 @@ postlist.rowfunction = function(d, n, gd) {
var status = TH({'id':'poststatus'+d.id});
var pub;
var pubhelp;
if (d.published == 1) {
status.innerHTML = {$enc_published};
pub = null;
pubhelp = null;
}
else {
status.innerHTML = {$enc_draft};
pub = INPUT(
{ 'type' : 'button' , 'class' : 'button', 'value' : {$enc_publish}}
);
pubhelp = SPAN(null); pubhelp.innerHTML = {$enc_publish_help};
connect(pub, 'onclick', function(e) {
if (!confirm({$enc_publish_confirm})) {
...
...
@@ -75,6 +83,7 @@ postlist.rowfunction = function(d, n, gd) {
if (!response.error) {
$('poststatus'+d.id).innerHTML = {$enc_published};
hideElement(pub);
hideElement(pubhelp);
}
});
});
...
...
@@ -99,10 +108,12 @@ postlist.rowfunction = function(d, n, gd) {
}
)
);
var edithelp = SPAN(null); edithelp.innerHTML = {$enc_edit_help};
var del = INPUT(
{ 'type' : 'button', 'class' : 'button', 'value': {$enc_delete} }
);
var delhelp = SPAN(null); delhelp.innerHTML = {$enc_delete_help};
var desctd = TD({'colSpan':3});
desctd.innerHTML = d.description;
...
...
@@ -112,7 +123,7 @@ postlist.rowfunction = function(d, n, gd) {
null,
TH(null, d.title),
status,
TH(null, [pub, ' ', edit,
' ', del
])
TH(null, [pub,
pubhelp,
' ', edit,
edithelp, ' ', del, delhelp
])
),
TR(null, desctd)
];
...
...
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