Merge pull request #151 from sharelatex/as-v1-badge-tooltip

Add tooltips for V1 badges
This commit is contained in:
Alasdair Smith 2017-11-23 10:21:37 +00:00 committed by GitHub
commit 14d8d7bde3
4 changed files with 14 additions and 1 deletions

View file

@ -148,6 +148,7 @@ html(itemscope, itemtype='http://schema.org/Product')
)
include contact-us-modal
include v1-tooltip
include sentry

View file

@ -69,6 +69,8 @@
ng-if="tag.isV1",
ng-cloak,
aria-label=translate("v1_badge")
tooltip-template="'v1TagTooltipTemplate'"
tooltip-append-to-body="true"
)
span.dropdown.tag-menu(dropdown)
a.dropdown-toggle(

View file

@ -1,5 +1,9 @@
.col-xs-8
span.v1-badge(aria-label=translate("v1_badge"))
span.v1-badge(
aria-label=translate("v1_badge")
tooltip-template="'v1ProjectTooltipTemplate'"
tooltip-append-to-body="true"
)
span
if settings.overleaf && settings.overleaf.host
a.projectName(

View file

@ -0,0 +1,6 @@
script(type="text/ng-template", id="v1ProjectTooltipTemplate")
span This project is from Overleaf version 1 and has not been imported to the beta yet
script(type="text/ng-template", id="v1TagTooltipTemplate")
span This folder is from Overleaf version 1 and has not been imported to the beta yet