Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-block_wisc_ra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
uw-moodle
moodle-block_wisc_ra
Commits
fd898365
Commit
fd898365
authored
13 years ago
by
Nick Koeppen
Browse files
Options
Downloads
Patches
Plain Diff
[wisc_ra] Note on visibility. Single edit roster link.
parent
240faac0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
block_wisc_ra.php
+5
-2
5 additions, 2 deletions
block_wisc_ra.php
lang/en/block_wisc_ra.php
+6
-4
6 additions, 4 deletions
lang/en/block_wisc_ra.php
with
11 additions
and
6 deletions
block_wisc_ra.php
+
5
−
2
View file @
fd898365
...
...
@@ -9,7 +9,9 @@
class
block_wisc_ra
extends
block_base
{
function
init
()
{
$this
->
title
=
get_string
(
'blocktitle'
,
'block_wisc_ra'
);
global
$OUTPUT
;
$infoicon
=
$OUTPUT
->
help_icon
(
'blockinfo'
,
'block_wisc_ra'
);
$this
->
title
=
get_string
(
'blocktitle'
,
'block_wisc_ra'
)
.
' '
.
$infoicon
;
}
function
get_content
()
{
...
...
@@ -45,7 +47,8 @@ class block_wisc_ra extends block_base {
$html
=
''
;
if
(
!
empty
(
$sections
)){
foreach
(
$sections
as
$term
=>
$courses
){
$html
.
=
"<h3 class='termname'><a href='
$editlinks[$term]
'>"
.
$this
->
termname
(
$term
)
.
"</a></h3>"
;
//$html .= "<h3 class='termname'><a href='$editlinks[$term]'>".$this->termname($term)."</a></h3>";
$html
.
=
"<h3 class='termname'>"
.
$this
->
termname
(
$term
)
.
"</h3>"
;
foreach
(
$courses
as
$course
){
//Form course name
$catalogNum
=
$course
[
'catalognum'
];
...
...
This diff is collapsed.
Click to expand it.
lang/en/block_wisc_ra.php
+
6
−
4
View file @
fd898365
<?php
$string
[
'pluginname'
]
=
'WISC Roster Associations'
;
$string
[
'blocktitle'
]
=
'Roster Associations'
;
$string
[
'addmoreusers'
]
=
'Enrol additional users'
;
$string
[
'editterm'
]
=
'Edit {$a} roster'
;
$string
[
'pluginname'
]
=
'WISC Roster Associations'
;
$string
[
'blocktitle'
]
=
'UW Sections'
;
$string
[
'blockinfo'
]
=
'UW Sections'
;
$string
[
'blockinfo_help'
]
=
'This block is only visible to course managers and not students. Use the contents to verify the UW sections mapping.'
;
$string
[
'addmoreusers'
]
=
'Enrol additional users'
;
$string
[
'editterm'
]
=
'Edit {$a} roster'
;
$string
[
'block/wisc_ra:view'
]
=
'View WISC Roster Associations block'
;
$string
[
'nosectionsfound'
]
=
'No sections mapped.'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment