mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Sort out title of wiki
This commit is contained in:
parent
2ea7dee682
commit
a7cf8d6b0a
5 changed files with 14 additions and 16 deletions
|
@ -16,16 +16,11 @@ module.exports = HomeController =
|
|||
else
|
||||
res.redirect '/project'
|
||||
else
|
||||
if homepageExists
|
||||
res.render 'external/home',
|
||||
title: 'ShareLaTeX.com'
|
||||
else
|
||||
res.redirect "/login"
|
||||
HomeController.home(req, res)
|
||||
|
||||
home: (req, res)->
|
||||
if homepageExists
|
||||
res.render 'external/home',
|
||||
title: 'ShareLaTeX.com'
|
||||
res.render 'external/home'
|
||||
else
|
||||
res.redirect "/login"
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ module.exports =
|
|||
dropboxHandler.getUserRegistrationStatus user._id, (err, status)->
|
||||
userIsRegisteredWithDropbox = !err? and status.registered
|
||||
res.render 'user/settings',
|
||||
title:'Your settings',
|
||||
title:'Account Settings',
|
||||
userHasDropboxFeature: user.features.dropbox
|
||||
userIsRegisteredWithDropbox: userIsRegisteredWithDropbox
|
||||
user: user,
|
||||
|
|
|
@ -15,9 +15,15 @@ module.exports = WikiController =
|
|||
return next(error) if error?
|
||||
WikiController._getPageContent page, (error, page) ->
|
||||
return next(error) if error?
|
||||
if page.title == "Main Page"
|
||||
title = "Documentation"
|
||||
else
|
||||
title = page.title
|
||||
|
||||
res.render "wiki/page", {
|
||||
page: page
|
||||
contents: contents
|
||||
title: title
|
||||
}
|
||||
|
||||
_getPageContent: (page, callback = (error, data = { content: "", title: "" }) ->) ->
|
||||
|
|
|
@ -3,10 +3,10 @@ html(itemscope, itemtype='http://schema.org/Product')
|
|||
block vars
|
||||
|
||||
head
|
||||
- if (typeof(priority_title) !== "undefined" && priority_title)
|
||||
title= title + ' - Online LaTeX Editor ShareLaTeX'
|
||||
-if (typeof(title) == "undefined")
|
||||
title ShareLaTeX, the Online LaTeX Editor
|
||||
-else
|
||||
title= 'Online LaTeX Editor ShareLaTeX - ' +title
|
||||
title= title + ' - ShareLaTeX, the Online LaTeX Editor'
|
||||
link(rel="icon", href="/favicon.ico")
|
||||
link(rel='stylesheet', href='/stylesheets/style.css?fingerprint='+fingerprint('/stylesheets/style.css'))
|
||||
link(href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css",rel="stylesheet")
|
||||
|
|
|
@ -9,9 +9,6 @@ block content
|
|||
.col-xs-9.page
|
||||
.card
|
||||
.page-header
|
||||
- if (page.title == "Main Page")
|
||||
h1 ShareLaTeX Documentation
|
||||
- else
|
||||
h1 #{page.title}
|
||||
h1 #{title}
|
||||
|
||||
| !{page.content}
|
Loading…
Reference in a new issue