mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-23 02:41:05 +00:00
cleaned up few small things with templates
This commit is contained in:
parent
35342849b8
commit
83b94f987c
3 changed files with 8 additions and 5 deletions
|
@ -70,7 +70,7 @@ module.exports = TemplatesWebController =
|
|||
if err?
|
||||
logger.err err:err, user_id:user_id, tag_name:tag_name, "something went wrong in _renderCanonicalPage"
|
||||
return res.send 500
|
||||
data.title = data.tag.name
|
||||
data.title = data?.tag?.name
|
||||
res.render "templates/tag", data
|
||||
|
||||
_getDataFromTemplatesApi: (path, callback)->
|
||||
|
|
|
@ -8,8 +8,9 @@ block content
|
|||
h2
|
||||
a(href="/templates") Templates
|
||||
| ›
|
||||
a(href=tag.tagPagePath) #{tag.name}
|
||||
| ›
|
||||
- if(tag)
|
||||
a(href=tag.tagPagePath) #{tag.name}
|
||||
| ›
|
||||
| #{template.name}
|
||||
.row
|
||||
.col-md-6
|
||||
|
@ -24,7 +25,7 @@ block content
|
|||
.template-details-section
|
||||
h3 About
|
||||
div !{template.description}
|
||||
div(ng-controller="openInSlController")
|
||||
div(ng-controller="openInSlController").download-buttons
|
||||
a.btn.btn-primary.btn-large(href=template.open_in_sharelatex_url, ng-click='open()', ng-disabled="isDisabled", rel='nofollow') {{openInSlText}}
|
||||
|
|
||||
|
||||
|
|
|
@ -33,7 +33,9 @@
|
|||
margin-top: 0px;
|
||||
}
|
||||
|
||||
.social_buttons {
|
||||
|
||||
|
||||
.download-buttons, .social_buttons {
|
||||
padding-top: 20px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue