2014-07-01 09:12:28 -04:00
|
|
|
script(type='text/ng-template', id='shareProjectModalTemplate')
|
|
|
|
.modal-header
|
2014-07-01 10:05:32 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("share_project")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.modal-body.modal-body-share
|
|
|
|
.container-fluid
|
2017-10-30 09:48:25 -04:00
|
|
|
//- Private (with token-access available)
|
2018-09-07 12:23:03 -04:00
|
|
|
.row.public-access-level(ng-show="isAdmin && project.publicAccesLevel == 'private'")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-12.text-center
|
2018-02-06 05:06:32 -05:00
|
|
|
| #{translate('link_sharing_is_off')}
|
2014-07-01 10:15:54 -04:00
|
|
|
|
|
2014-07-01 10:05:32 -04:00
|
|
|
a(
|
|
|
|
href
|
2018-02-06 04:56:46 -05:00
|
|
|
ng-click="makeTokenBased()"
|
2017-10-13 08:57:11 -04:00
|
|
|
) #{translate('turn_on_link_sharing')}
|
2017-10-30 06:43:27 -04:00
|
|
|
span
|
|
|
|
a(
|
2017-10-30 09:47:48 -04:00
|
|
|
href="/learn/Kb/what_is_link_sharing"
|
2017-10-30 06:43:27 -04:00
|
|
|
target="_blank"
|
|
|
|
)
|
|
|
|
i.fa.fa-question-circle(
|
|
|
|
tooltip=translate('learn_more_about_link_sharing')
|
|
|
|
)
|
2017-09-28 11:06:08 -04:00
|
|
|
|
|
|
|
//- Token-based access
|
2018-09-07 12:23:03 -04:00
|
|
|
.row.public-access-level(ng-show="isAdmin && project.publicAccesLevel == 'tokenBased'")
|
2017-09-28 11:06:08 -04:00
|
|
|
.col-xs-12.text-center
|
|
|
|
strong
|
2017-10-13 08:57:11 -04:00
|
|
|
| #{translate('link_sharing_is_on')}.
|
2017-09-28 11:06:08 -04:00
|
|
|
|
|
|
|
|
a(
|
|
|
|
href
|
2018-02-06 04:56:46 -05:00
|
|
|
ng-click="makePrivate()"
|
2017-10-13 08:57:11 -04:00
|
|
|
) #{translate('turn_off_link_sharing')}
|
2017-10-30 06:43:27 -04:00
|
|
|
span
|
|
|
|
a(
|
2017-10-30 09:47:48 -04:00
|
|
|
href="/learn/Kb/what_is_link_sharing"
|
2017-10-30 06:43:27 -04:00
|
|
|
target="_blank"
|
|
|
|
)
|
|
|
|
i.fa.fa-question-circle(
|
|
|
|
tooltip=translate('learn_more_about_link_sharing')
|
|
|
|
)
|
2017-10-13 08:57:11 -04:00
|
|
|
|
2017-09-29 05:59:30 -04:00
|
|
|
.col-xs-12.access-token-display-area
|
|
|
|
div.access-token-wrapper
|
2017-10-13 08:57:11 -04:00
|
|
|
strong #{translate('anyone_with_link_can_edit')}
|
2018-02-06 05:00:59 -05:00
|
|
|
pre.access-token(ng-show="readAndWriteTokenLink") {{ readAndWriteTokenLink }}
|
|
|
|
pre.access-token(ng-hide="readAndWriteTokenLink") #{translate('loading')}...
|
2017-09-29 05:59:30 -04:00
|
|
|
div.access-token-wrapper
|
2017-10-13 08:57:11 -04:00
|
|
|
strong #{translate('anyone_with_link_can_view')}
|
2018-02-06 05:00:59 -05:00
|
|
|
pre.access-token(ng-show="readOnlyTokenLink") {{ readOnlyTokenLink }}
|
|
|
|
pre.access-token(ng-hide="readOnlyTokenLink") #{translate('loading')}...
|
2017-09-28 11:06:08 -04:00
|
|
|
|
|
|
|
//- legacy public-access
|
2018-09-07 12:23:03 -04:00
|
|
|
.row.public-access-level(ng-show="isAdmin && (project.publicAccesLevel == 'readAndWrite' || project.publicAccesLevel == 'readOnly')")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-12.text-center
|
2014-07-31 12:07:43 -04:00
|
|
|
strong(ng-if="project.publicAccesLevel == 'readAndWrite'") #{translate("this_project_is_public")}
|
2014-09-20 04:20:36 -04:00
|
|
|
strong(ng-if="project.publicAccesLevel == 'readOnly'") #{translate("this_project_is_public_read_only")}
|
2014-07-01 10:17:42 -04:00
|
|
|
|
|
2014-07-01 10:05:32 -04:00
|
|
|
a(
|
|
|
|
href
|
2018-02-06 04:56:46 -05:00
|
|
|
ng-click="makePrivate()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("make_private")}
|
2017-09-28 11:06:08 -04:00
|
|
|
|
2014-07-01 09:12:28 -04:00
|
|
|
.row.project-member
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-8 {{ project.owner.email }}
|
2016-07-27 05:10:44 -04:00
|
|
|
.text-left(
|
2014-07-03 10:05:35 -04:00
|
|
|
ng-class="{'col-xs-3': project.members.length > 0, 'col-xs-4': project.members.length == 0}"
|
2014-09-26 11:35:57 -04:00
|
|
|
) #{translate("owner")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.row.project-member(ng-repeat="member in project.members")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-8 {{ member.email }}
|
2016-07-27 05:10:44 -04:00
|
|
|
.col-xs-3.text-left
|
2014-07-31 12:07:43 -04:00
|
|
|
span(ng-show="member.privileges == 'readAndWrite'") #{translate("can_edit")}
|
|
|
|
span(ng-show="member.privileges == 'readOnly'") #{translate("read_only")}
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-1
|
2014-07-01 09:12:28 -04:00
|
|
|
a(
|
|
|
|
href
|
2017-01-31 09:57:22 -05:00
|
|
|
tooltip=translate('remove_collaborator')
|
2014-07-01 09:12:28 -04:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
ng-click="removeMember(member)"
|
|
|
|
)
|
|
|
|
i.fa.fa-times
|
2016-08-01 12:05:37 -04:00
|
|
|
.row.project-invite(ng-repeat="invite in project.invites")
|
2016-07-27 05:10:44 -04:00
|
|
|
.col-xs-8 {{ invite.email }}
|
2016-08-03 06:55:24 -04:00
|
|
|
div.small
|
|
|
|
| #{translate("invite_not_accepted")}.
|
2016-08-12 06:25:03 -04:00
|
|
|
a(href="#", ng-click="resendInvite(invite, $event)") #{translate("resend")}
|
2016-07-27 05:10:44 -04:00
|
|
|
.col-xs-3.text-left
|
|
|
|
// todo: get invite privileges
|
|
|
|
span(ng-show="invite.privileges == 'readAndWrite'") #{translate("can_edit")}
|
|
|
|
span(ng-show="invite.privileges == 'readOnly'") #{translate("read_only")}
|
2016-07-25 09:27:02 -04:00
|
|
|
.col-xs-1
|
|
|
|
a(
|
|
|
|
href
|
2017-01-31 09:57:22 -05:00
|
|
|
tooltip=translate('revoke_invite')
|
2016-07-25 09:27:02 -04:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
ng-click="revokeInvite(invite)"
|
|
|
|
)
|
|
|
|
i.fa.fa-times
|
2018-09-07 12:23:03 -04:00
|
|
|
.row.invite-controls(ng-show="isAdmin")
|
2014-07-01 09:12:28 -04:00
|
|
|
form(ng-show="canAddCollaborators")
|
2014-07-31 12:07:43 -04:00
|
|
|
.small #{translate("share_with_your_collabs")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.form-group
|
2015-10-07 12:32:35 -04:00
|
|
|
tags-input(
|
|
|
|
template="shareTagTemplate"
|
2017-01-31 09:57:22 -05:00
|
|
|
placeholder=settings.customisation.shareProjectPlaceholder || 'joe@example.com, sue@example.com, ...'
|
2015-10-07 12:32:35 -04:00
|
|
|
ng-model="inputs.contacts"
|
2014-07-01 09:12:28 -04:00
|
|
|
focus-on="open"
|
2015-10-08 13:17:53 -04:00
|
|
|
display-property="display"
|
2015-10-07 12:32:35 -04:00
|
|
|
add-on-paste="true"
|
2017-09-06 06:39:30 -04:00
|
|
|
add-on-enter="false"
|
2015-10-15 11:43:53 -04:00
|
|
|
replace-spaces-with-dashes="false"
|
2015-10-15 12:03:22 -04:00
|
|
|
type="email"
|
2014-07-01 09:12:28 -04:00
|
|
|
)
|
2015-10-07 12:32:35 -04:00
|
|
|
auto-complete(
|
|
|
|
source="filterAutocompleteUsers($query)"
|
|
|
|
template="shareAutocompleteTemplate"
|
|
|
|
display-property="email"
|
|
|
|
min-length="0"
|
|
|
|
)
|
2014-07-01 09:12:28 -04:00
|
|
|
.form-group
|
|
|
|
.pull-right
|
|
|
|
select.privileges.form-control(
|
|
|
|
ng-model="inputs.privileges"
|
|
|
|
name="privileges"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
option(value="readAndWrite") #{translate("can_edit")}
|
|
|
|
option(value="readOnly") #{translate("read_only")}
|
2014-07-01 09:12:28 -04:00
|
|
|
|
|
2015-11-04 09:33:27 -05:00
|
|
|
//- We have to use mousedown here since click has issues with the
|
|
|
|
//- blur handler in tags-input sometimes changing its height and
|
|
|
|
//- moving this button, preventing the click registering.
|
2014-07-01 09:12:28 -04:00
|
|
|
button.btn.btn-info(
|
|
|
|
type="submit"
|
2015-11-04 09:33:27 -05:00
|
|
|
ng-mousedown="addMembers()"
|
2016-08-11 10:24:35 -04:00
|
|
|
ng-keyup="$event.keyCode == 13 ? addMembers() : null"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("share")}
|
2016-02-18 09:51:55 -05:00
|
|
|
div(ng-hide="canAddCollaborators")
|
|
|
|
p.text-center #{translate("need_to_upgrade_for_more_collabs")}. Also:
|
|
|
|
.row
|
|
|
|
.col-md-8.col-md-offset-2
|
|
|
|
ul.list-unstyled
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("unlimited_projects")}
|
|
|
|
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("collabs_per_proj", {collabcount:'Multiple'})}
|
|
|
|
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("full_doc_history")}
|
|
|
|
|
|
|
|
li
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("sync_to_dropbox")}
|
2015-11-16 09:31:05 -05:00
|
|
|
|
2016-02-18 09:51:55 -05:00
|
|
|
li
|
|
|
|
i.fa.fa-check
|
|
|
|
| #{translate("sync_to_github")}
|
2015-11-16 09:31:05 -05:00
|
|
|
|
2016-02-18 09:51:55 -05:00
|
|
|
li
|
|
|
|
i.fa.fa-check
|
|
|
|
|#{translate("compile_larger_projects")}
|
2015-11-16 09:31:05 -05:00
|
|
|
|
2016-02-18 09:51:55 -05:00
|
|
|
p.text-center.row-spaced-thin(ng-controller="FreeTrialModalController")
|
2015-11-16 09:31:05 -05:00
|
|
|
a.btn.btn-success(
|
|
|
|
href
|
|
|
|
ng-class="buttonClass"
|
|
|
|
ng-click="startFreeTrial('projectMembers')"
|
|
|
|
) #{translate("start_free_trial")}
|
|
|
|
|
2014-07-17 07:57:17 -04:00
|
|
|
p.small(ng-show="startedFreeTrial")
|
2018-09-07 12:23:03 -04:00
|
|
|
| #{translate("refresh_page_after_starting_free_trial")}
|
2018-09-13 07:19:44 -04:00
|
|
|
.row.public-access-level.public-access-level--notice(ng-show="!isAdmin")
|
2018-09-07 12:23:03 -04:00
|
|
|
.col-xs-12.text-center To add more collaborators, please ask the project owner
|
2016-12-20 04:54:42 -05:00
|
|
|
.modal-footer.modal-footer-share
|
2014-07-01 09:12:28 -04:00
|
|
|
.modal-footer-left
|
|
|
|
i.fa.fa-refresh.fa-spin(ng-show="state.inflight")
|
2016-12-20 04:54:42 -05:00
|
|
|
span.text-danger.error(ng-show="state.error")
|
|
|
|
span(ng-switch="state.errorReason")
|
|
|
|
span(ng-switch-when="cannot_invite_non_user")
|
|
|
|
| #{translate("cannot_invite_non_user")}
|
2018-02-07 09:15:13 -05:00
|
|
|
span(ng-switch-when="cannot_verify_user_not_robot")
|
|
|
|
| #{translate("cannot_verify_user_not_robot")}
|
2017-01-16 08:45:01 -05:00
|
|
|
span(ng-switch-when="cannot_invite_self")
|
|
|
|
| #{translate("cannot_invite_self")}
|
2017-09-06 08:47:45 -04:00
|
|
|
span(ng-switch-when="invalid_email")
|
|
|
|
| #{translate("invalid_email")}
|
2016-12-20 04:54:42 -05:00
|
|
|
span(ng-switch-default)
|
|
|
|
| #{translate("generic_something_went_wrong")}
|
2017-10-30 06:43:27 -04:00
|
|
|
.modal-footer-right
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="done()"
|
|
|
|
) #{translate("close")}
|
2014-07-01 10:05:32 -04:00
|
|
|
|
2015-10-07 12:32:35 -04:00
|
|
|
script(type="text/ng-template", id="shareTagTemplate")
|
|
|
|
.tag-template
|
|
|
|
span(ng-if="data.type")
|
2015-10-15 12:03:22 -04:00
|
|
|
i.fa.fa-fw(ng-class="{'fa-user': data.type != 'group', 'fa-group': data.type == 'group'}")
|
2015-10-07 12:32:35 -04:00
|
|
|
|
|
|
|
|
span {{$getDisplayText()}}
|
|
|
|
|
|
|
|
|
a(href, ng-click="$removeTag()").remove-button
|
|
|
|
i.fa.fa-fw.fa-close
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="shareAutocompleteTemplate")
|
|
|
|
.autocomplete-template
|
2015-10-08 13:17:53 -04:00
|
|
|
div(ng-if="data.type == 'user'")
|
2015-10-14 12:29:58 -04:00
|
|
|
i.fa.fa-fw.fa-user
|
2015-10-08 13:17:53 -04:00
|
|
|
|
|
2015-10-15 11:43:53 -04:00
|
|
|
span(ng-bind-html="$highlight(data.display)")
|
2015-10-08 13:17:53 -04:00
|
|
|
div(ng-if="data.type == 'group'")
|
2015-10-14 12:29:58 -04:00
|
|
|
i.fa.fa-fw.fa-group
|
2015-10-08 13:17:53 -04:00
|
|
|
|
|
|
|
|
span(ng-bind-html="$highlight(data.name)")
|
2015-10-15 11:43:53 -04:00
|
|
|
span.subdued.small(ng-show="data.member_count") ({{ data.member_count }} members)
|