Skip to content

Commit b55960f

Browse files
committed
MOBILE-1520 wiki: Show wiki description only in the main page
1 parent 2d3f805 commit b55960f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

www/addons/mod_wiki/controllers/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ angular.module('mm.addons.mod_wiki')
3232

3333
$scope.title = $stateParams.pagetitle || module.name;
3434
$scope.description = module.description;
35+
$scope.mainpage = !currentPage;
3536
$scope.moduleUrl = module.url;
3637
$scope.courseId = courseId;
3738
$scope.subwikiData = {

www/addons/mod_wiki/templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ion-content delegate-handle="mmaModWikiIndexScroll" padding="true" mm-state-class>
22
<ion-refresher pulling-text="{{ 'mm.core.pulltorefresh' | translate }}" ng-if="wikiLoaded" on-refresh="refreshWiki()"></ion-refresher>
33
<mm-loading hide-until="wikiLoaded">
4-
<mm-course-mod-description description="description" watch="true"></mm-course-mod-description>
4+
<mm-course-mod-description description="description" watch="true" ng-if="mainpage"></mm-course-mod-description>
55
<article>
66
<mm-format-text class="mm-content-with-float" watch="true">{{ pageContent }}</mm-format-text>
77
</article>

0 commit comments

Comments
 (0)