Remove wikiTitle in the wiki pages
parent
a16946edd3
commit
823b869969
|
@ -62,7 +62,6 @@ class WikiDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
@scope.$on("wikipage:add", @.loadWiki)
|
@scope.$on("wikipage:add", @.loadWiki)
|
||||||
@scope.projectSlug = @params.pslug
|
@scope.projectSlug = @params.pslug
|
||||||
@scope.wikiSlug = @params.slug
|
@scope.wikiSlug = @params.slug
|
||||||
@scope.wikiTitle = @scope.wikiSlug
|
|
||||||
@scope.sectionName = "Wiki"
|
@scope.sectionName = "Wiki"
|
||||||
@scope.linksVisible = false
|
@scope.linksVisible = false
|
||||||
|
|
||||||
|
@ -76,7 +75,7 @@ class WikiDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
|
|
||||||
_setMeta: ->
|
_setMeta: ->
|
||||||
title = @translate.instant("WIKI.PAGE_TITLE", {
|
title = @translate.instant("WIKI.PAGE_TITLE", {
|
||||||
wikiPageName: @scope.wikiTitle
|
wikiPageName: @scope.wikiSlug
|
||||||
projectName: @scope.project.name
|
projectName: @scope.project.name
|
||||||
})
|
})
|
||||||
description = @translate.instant("WIKI.PAGE_DESCRIPTION", {
|
description = @translate.instant("WIKI.PAGE_DESCRIPTION", {
|
||||||
|
@ -130,7 +129,6 @@ class WikiDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
})
|
})
|
||||||
|
|
||||||
selectedWikiLink = _.find(wikiLinks, {href: @scope.wikiSlug})
|
selectedWikiLink = _.find(wikiLinks, {href: @scope.wikiSlug})
|
||||||
@scope.wikiTitle = selectedWikiLink.title if selectedWikiLink?
|
|
||||||
|
|
||||||
loadInitialData: ->
|
loadInitialData: ->
|
||||||
project = @.loadProject()
|
project = @.loadProject()
|
||||||
|
@ -145,7 +143,7 @@ class WikiDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
|
|
||||||
delete: ->
|
delete: ->
|
||||||
title = @translate.instant("WIKI.DELETE_LIGHTBOX_TITLE")
|
title = @translate.instant("WIKI.DELETE_LIGHTBOX_TITLE")
|
||||||
message = @scope.wikiTitle
|
message = @scope.wikiSlug
|
||||||
|
|
||||||
@confirm.askOnDelete(title, message).then (askResponse) =>
|
@confirm.askOnDelete(title, message).then (askResponse) =>
|
||||||
onSuccess = =>
|
onSuccess = =>
|
||||||
|
|
|
@ -51,7 +51,6 @@ class WikiPagesListController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
@navUrls, @errorHandlingService, @projectService) ->
|
@navUrls, @errorHandlingService, @projectService) ->
|
||||||
@scope.projectSlug = @params.pslug
|
@scope.projectSlug = @params.pslug
|
||||||
@scope.wikiSlug = @params.slug
|
@scope.wikiSlug = @params.slug
|
||||||
@scope.wikiTitle = @scope.wikiSlug
|
|
||||||
@scope.sectionName = "Wiki"
|
@scope.sectionName = "Wiki"
|
||||||
@scope.linksVisible = false
|
@scope.linksVisible = false
|
||||||
|
|
||||||
|
@ -87,7 +86,6 @@ class WikiPagesListController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
})
|
})
|
||||||
|
|
||||||
selectedWikiLink = _.find(wikiLinks, {href: @scope.wikiSlug})
|
selectedWikiLink = _.find(wikiLinks, {href: @scope.wikiSlug})
|
||||||
@scope.wikiTitle = selectedWikiLink.title if selectedWikiLink?
|
|
||||||
|
|
||||||
loadInitialData: ->
|
loadInitialData: ->
|
||||||
project = @.loadProject()
|
project = @.loadProject()
|
||||||
|
|
|
@ -16,8 +16,6 @@ div.wrapper(
|
||||||
span(tg-bo-bind="project.name")
|
span(tg-bo-bind="project.name")
|
||||||
span.green(translate="PROJECT.SECTION.WIKI")
|
span.green(translate="PROJECT.SECTION.WIKI")
|
||||||
|
|
||||||
h2.wiki-title(ng-bind='wikiTitle')
|
|
||||||
|
|
||||||
tg-wiki-wysiwyg(model="wiki")
|
tg-wiki-wysiwyg(model="wiki")
|
||||||
|
|
||||||
.summary.wiki-summary(
|
.summary.wiki-summary(
|
||||||
|
|
|
@ -3,10 +3,4 @@
|
||||||
.wysiwyg {
|
.wysiwyg {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.wiki-title {
|
|
||||||
@include font-type(light);
|
|
||||||
@include font-size(xxlarge);
|
|
||||||
margin-bottom: 0;
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue