mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #151 from sharelatex/as-v1-badge-tooltip
Add tooltips for V1 badges
This commit is contained in:
commit
14d8d7bde3
4 changed files with 14 additions and 1 deletions
|
@ -148,6 +148,7 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
)
|
)
|
||||||
|
|
||||||
include contact-us-modal
|
include contact-us-modal
|
||||||
|
include v1-tooltip
|
||||||
include sentry
|
include sentry
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,8 @@
|
||||||
ng-if="tag.isV1",
|
ng-if="tag.isV1",
|
||||||
ng-cloak,
|
ng-cloak,
|
||||||
aria-label=translate("v1_badge")
|
aria-label=translate("v1_badge")
|
||||||
|
tooltip-template="'v1TagTooltipTemplate'"
|
||||||
|
tooltip-append-to-body="true"
|
||||||
)
|
)
|
||||||
span.dropdown.tag-menu(dropdown)
|
span.dropdown.tag-menu(dropdown)
|
||||||
a.dropdown-toggle(
|
a.dropdown-toggle(
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
.col-xs-8
|
.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
|
span
|
||||||
if settings.overleaf && settings.overleaf.host
|
if settings.overleaf && settings.overleaf.host
|
||||||
a.projectName(
|
a.projectName(
|
||||||
|
|
6
services/web/app/views/v1-tooltip.pug
Normal file
6
services/web/app/views/v1-tooltip.pug
Normal 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
|
Loading…
Reference in a new issue