Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CourseHistory
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
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uni Vechta
Plugins
CourseHistory
Commits
7b26c82c
Commit
7b26c82c
authored
4 years ago
by
David Siegfried
Browse files
Options
Downloads
Patches
Plain Diff
fixes
#7
parent
5c5f4c6b
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
Coursehistory.class.php
+5
-21
5 additions, 21 deletions
Coursehistory.class.php
controllers/show.php
+9
-21
9 additions, 21 deletions
controllers/show.php
plugin.manifest
+2
-2
2 additions, 2 deletions
plugin.manifest
views/show/_action.php
+1
-1
1 addition, 1 deletion
views/show/_action.php
with
17 additions
and
45 deletions
Coursehistory.class.php
+
5
−
21
View file @
7b26c82c
...
...
@@ -61,22 +61,6 @@ class Coursehistory extends StudIPPlugin implements SystemPlugin, AdminCourseAct
return
$template
;
}
/**
* Run action
* @param $unconsumed_path
*/
public
function
perform
(
$unconsumed_path
)
{
$dispatcher
=
new
Trails_Dispatcher
(
$this
->
getPluginPath
(),
rtrim
(
PluginEngine
::
getLink
(
$this
,
[],
null
),
'/'
),
'show'
);
$dispatcher
->
plugin
=
$this
;
$dispatcher
->
dispatch
(
$unconsumed_path
);
}
/**
* Helper function to cleanup output
* @param $event
...
...
This diff is collapsed.
Click to expand it.
controllers/show.php
+
9
−
21
View file @
7b26c82c
...
...
@@ -4,37 +4,25 @@
* @author David Siegfried <david.siegfried@uni-vechta.de>
* @license GPL2 or any later version
*/
class
ShowController
extends
Studip
Controller
class
ShowController
extends
Plugin
Controller
{
public
function
__construct
(
$dispatcher
)
/**
* Index
*/
public
function
index_action
()
{
parent
::
__construct
(
$dispatcher
);
$this
->
plugin
=
$dispatcher
->
plugin
;
$this
->
course
=
$this
->
plugin
->
course
;
}
public
function
before_filter
(
&
$action
,
&
$args
)
{
parent
::
before_filter
(
$action
,
$args
);
PageLayout
::
setTitle
(
htmlReady
(
$this
->
course
->
getFullname
())
.
' - '
.
$this
->
plugin
->
getPluginName
());
if
(
Navigation
::
hasItem
(
'/course/main/coursehistory'
))
{
Navigation
::
activateItem
(
'/course/main/coursehistory'
);
}
}
/**
* Index
*/
public
function
index_action
()
{
$this
->
log_actions
=
$this
->
getLogEvents
();
}
/**
* Returns all log-events for given course
*/
protected
function
getLogEvents
()
protected
function
getLogEvents
()
:
array
{
$query
=
"SELECT la.`description`, le.`event_id`
FROM `log_events` le
...
...
This diff is collapsed.
Click to expand it.
plugin.manifest
+
2
−
2
View file @
7b26c82c
pluginname=CourseHistory
pluginclassname=Coursehistory
origin=Vec
version=3.
2
version=3.
3
studipMinVersion=4.3
studipMaxVersion=
4.4
.99
studipMaxVersion=
5.0
.99
This diff is collapsed.
Click to expand it.
views/show/_action.php
+
1
−
1
View file @
7b26c82c
...
...
@@ -2,5 +2,5 @@
\Studip\LinkButton
::
createEdit
(
$plugin
->
getPluginName
(),
PluginEngine
::
getLink
(
$plugin
,
[
'cid'
=>
$course_id
],
'show/index'
),
[
'data-dialog'
=>
'size=
100%
'
])
[
'data-dialog'
=>
'size=
auto
'
])
?>
\ No newline at end of file
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