-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Share personal cleanup + note #29935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,6 +4,15 @@ | |
|
|
||
| /* Global Components */ | ||
|
|
||
| /* Positioning */ | ||
|
|
||
| .absolute-center { | ||
| position: absolute; | ||
| top: 50%; | ||
| left: 50%; | ||
| transform: translate(-50%, -50%); | ||
| } | ||
|
|
||
| .pull-left { | ||
| float: left; | ||
| } | ||
|
|
@@ -24,7 +33,7 @@ | |
| clear: both; | ||
| } | ||
|
|
||
| .hidden { | ||
| .hidden.hidden { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. duplicate hidden?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. This a lesser version of the |
||
| display: none; | ||
| } | ||
|
|
||
|
|
@@ -41,10 +50,25 @@ | |
| font-weight:600; | ||
| } | ||
|
|
||
| .center { | ||
| text-align:center; | ||
| .text-small { | ||
| font-size: 80%; | ||
| } | ||
|
|
||
| .inlineblock { | ||
| display: inline-block; | ||
| } | ||
| } | ||
|
|
||
| /* Text */ | ||
|
|
||
| .text-right { | ||
| text-align: right; | ||
| } | ||
|
|
||
| .center, | ||
| .text-center { | ||
| text-align: center; | ||
| } | ||
|
|
||
| .text-left { | ||
| text-align: left; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ | |
| } | ||
|
|
||
| var PASSWORD_PLACEHOLDER_STARS = '**********'; | ||
| var PASSWORD_PLACEHOLDER_MESSAGE = t('core', 'Choose a password for the public link'); | ||
| var PASSWORD_PLACEHOLDER_MESSAGE = t('core', 'Choose a password'); | ||
| var TEMPLATE = | ||
| '<div class="error-message-global hidden"></div>' + | ||
| '<div class="public-link-modal">'+ | ||
|
|
@@ -194,11 +194,8 @@ | |
| success: function() { | ||
| if (self.mailView) { | ||
| // also send out email first | ||
| self.mailView.sendEmails().then(done).fail(function() { | ||
| done(); | ||
| // re-show the popup | ||
| self.show(); | ||
| }); | ||
| // do not resolve on errors | ||
| self.mailView.sendEmails().then(done); | ||
| } else { | ||
| done(); | ||
| } | ||
|
|
@@ -243,7 +240,7 @@ | |
|
|
||
| publicUploadPossible : this._isPublicUploadPossible(), | ||
|
|
||
| publicUploadLabel : t('core', 'Upload only (File Drop)'), | ||
| publicUploadLabel : t('core', 'Upload only') + ' (File Drop)', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. any reason why you pulled "File Drop" out of the translation ?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @pmaier1
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was an awful translation and we want to keep its original name (File Drop) across languages. |
||
| publicUploadDescription : t('core', 'Receive files from others without revealing the contents of the folder.'), | ||
| publicUploadValue : OC.PERMISSION_CREATE, | ||
| publicUploadSelected : this.model.get('permissions') === OC.PERMISSION_CREATE, | ||
|
|
@@ -326,18 +323,27 @@ | |
| var self = this; | ||
| var title = t('files_sharing', 'Edit link share: {name}', {name: this.itemModel.getFileInfo().getFullPath()}); | ||
| var buttons = [{ | ||
| text: t('core', 'Save'), | ||
| click: _.bind(this._onClickSave, this), | ||
| defaultButton: true | ||
| }, { | ||
| text: t('core', 'Cancel'), | ||
| click: _.bind(this._onClickCancel, this) | ||
| }]; | ||
|
|
||
| if (this.model.isNew()) { | ||
| title = t('files_sharing', 'Create link share: {name}', {name: this.itemModel.getFileInfo().getFullPath()}); | ||
| buttons.unshift({ | ||
| text: t('core', 'Share'), | ||
| click: _.bind(this._onClickSave, this), | ||
| defaultButton: true | ||
| }) | ||
| } | ||
| else if (this.model.get('encryptedPassword')) { | ||
| else { | ||
| buttons.unshift({ | ||
| text: t('core', 'Save'), | ||
| click: _.bind(this._onClickSave, this), | ||
| defaultButton: true | ||
| }) | ||
| } | ||
|
|
||
| if (this.model.get('encryptedPassword')) { | ||
| buttons.push({ | ||
| classes: 'removePassword -float-left', | ||
| text: t('core', 'Remove password'), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit surprised that we now suddenly have a hard-coded subject here. Was this subject always empty in the past ? Does it not come from the template if not set ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blame says you wrote this "a month ago" … but it's not working 🌵
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I need to consult with my past self...