mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Show v2 message if awareOfV2 flag set
This commit is contained in:
parent
7e829f6944
commit
12e55fb487
3 changed files with 10 additions and 1 deletions
|
@ -157,7 +157,7 @@ module.exports = ProjectController =
|
||||||
hasSubscription: (cb)->
|
hasSubscription: (cb)->
|
||||||
LimitationsManager.userHasSubscriptionOrIsGroupMember currentUser, cb
|
LimitationsManager.userHasSubscriptionOrIsGroupMember currentUser, cb
|
||||||
user: (cb) ->
|
user: (cb) ->
|
||||||
User.findById user_id, "featureSwitches overleaf", cb
|
User.findById user_id, "featureSwitches overleaf awareOfV2", cb
|
||||||
}, (err, results)->
|
}, (err, results)->
|
||||||
if err?
|
if err?
|
||||||
logger.err err:err, "error getting data for project list page"
|
logger.err err:err, "error getting data for project list page"
|
||||||
|
|
|
@ -63,6 +63,7 @@ UserSchema = new Schema
|
||||||
id: { type: Number }
|
id: { type: Number }
|
||||||
accessToken: { type: String }
|
accessToken: { type: String }
|
||||||
refreshToken: { type: String }
|
refreshToken: { type: String }
|
||||||
|
awareOfV2: { type:Boolean, default: false }
|
||||||
|
|
||||||
conn = mongoose.createConnection(Settings.mongo.url, {
|
conn = mongoose.createConnection(Settings.mongo.url, {
|
||||||
server: {poolSize: Settings.mongo.poolSize || 10},
|
server: {poolSize: Settings.mongo.poolSize || 10},
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
if (user.awareOfV2 && !settings.overleaf)
|
||||||
|
.alert.alert-info.small
|
||||||
|
a.pull-right.btn.btn-info.btn-sm(href="/user/login_to_ol_v2" style="margin-left: 12px") Click here to try Overleaf v2
|
||||||
|
p
|
||||||
|
| ShareLaTeX is joining Overleaf and will become <em>Overleaf v2</em> in late 2018 (<a href="https://www.overleaf.com/help/342-overleaf-v2-faq">read more</a>).
|
||||||
|
<br/>
|
||||||
|
| We’re beta testing Overleaf v2 now and you can try it out with your ShareLaTeX account.
|
||||||
|
|
||||||
span(ng-controller="NotificationsController").userNotifications
|
span(ng-controller="NotificationsController").userNotifications
|
||||||
ul.list-unstyled.notifications-list(
|
ul.list-unstyled.notifications-list(
|
||||||
ng-if="notifications.length > 0",
|
ng-if="notifications.length > 0",
|
||||||
|
|
Loading…
Reference in a new issue