mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Avoid showing the history upgrade teaser when user is not the project owner.
This commit is contained in:
parent
e7b09a81a7
commit
559350eaa2
1 changed files with 66 additions and 71 deletions
|
@ -2,11 +2,9 @@ div#history(ng-show="ui.view == 'history'")
|
||||||
span(ng-controller="HistoryPremiumPopup")
|
span(ng-controller="HistoryPremiumPopup")
|
||||||
.upgrade-prompt(ng-if="project.features.versioning === false && ui.view === 'history'")
|
.upgrade-prompt(ng-if="project.features.versioning === false && ui.view === 'history'")
|
||||||
|
|
||||||
|
div(ng-if="project.owner._id == user.id")
|
||||||
div(sixpack-switch="teaser-history")
|
div(sixpack-switch="teaser-history")
|
||||||
.message(
|
.message(sixpack-default)
|
||||||
sixpack-default
|
|
||||||
ng-show="project.owner._id == user.id"
|
|
||||||
)
|
|
||||||
p.text-center: strong #{translate("upgrade_to_get_feature", {feature:"full Project History"})}
|
p.text-center: strong #{translate("upgrade_to_get_feature", {feature:"full Project History"})}
|
||||||
p.text-center.small(ng-show="startedFreeTrial") #{translate("refresh_page_after_starting_free_trial")}
|
p.text-center.small(ng-show="startedFreeTrial") #{translate("refresh_page_after_starting_free_trial")}
|
||||||
ul.list-unstyled
|
ul.list-unstyled
|
||||||
|
@ -41,10 +39,7 @@ div#history(ng-show="ui.view == 'history'")
|
||||||
sixpack-convert="teaser-history"
|
sixpack-convert="teaser-history"
|
||||||
) #{translate("start_free_trial")}
|
) #{translate("start_free_trial")}
|
||||||
|
|
||||||
.message.message-wider(
|
.message.message-wider(sixpack-when="focused")
|
||||||
sixpack-when="focused"
|
|
||||||
ng-show="project.owner._id == user.id"
|
|
||||||
)
|
|
||||||
header.message-header
|
header.message-header
|
||||||
h3 History
|
h3 History
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue