From 198a6d566501a6b5fd8d9d3e2bd19fdce04017ca Mon Sep 17 00:00:00 2001 From: Benjamin Gamard Date: Wed, 1 Nov 2017 19:48:50 +0100 Subject: [PATCH] #111: translate templates (wip) --- .../main/webapp/src/app/docs/directive/Acl.js | 2 +- .../webapp/src/app/docs/filter/Filesize.js | 6 +- docs-web/src/main/webapp/src/locale/en.json | 189 ++++++++++++++++-- .../src/partial/docs/directive.acledit.html | 18 +- .../src/partial/docs/directive.auditlog.html | 12 +- .../docs/directive.selectrelation.html | 2 +- .../src/partial/docs/directive.selecttag.html | 2 +- .../src/partial/docs/document.default.html | 20 +- .../src/partial/docs/document.edit.html | 59 +++--- .../webapp/src/partial/docs/document.html | 35 ++-- .../webapp/src/partial/docs/document.pdf.html | 16 +- .../src/partial/docs/document.share.html | 8 +- .../partial/docs/document.view.activity.html | 2 +- .../partial/docs/document.view.content.html | 22 +- .../src/partial/docs/document.view.html | 38 ++-- .../docs/document.view.permissions.html | 18 +- .../webapp/src/partial/docs/file.view.html | 6 +- .../src/partial/docs/group.profile.html | 8 +- .../main/webapp/src/partial/docs/main.html | 2 +- .../src/partial/docs/settings.account.html | 18 +- .../src/partial/docs/settings.config.html | 30 ++- .../src/partial/docs/settings.default.html | 1 - docs-web/src/main/webapp/src/style/main.less | 13 ++ 23 files changed, 351 insertions(+), 176 deletions(-) diff --git a/docs-web/src/main/webapp/src/app/docs/directive/Acl.js b/docs-web/src/main/webapp/src/app/docs/directive/Acl.js index ca1efbcc..3fd0a22c 100644 --- a/docs-web/src/main/webapp/src/app/docs/directive/Acl.js +++ b/docs-web/src/main/webapp/src/app/docs/directive/Acl.js @@ -6,7 +6,7 @@ angular.module('docs').directive('acl', function() { return { restrict: 'E', - template: '{{ data.type == \'SHARE\' ? \'Shared\' : (data.type == \'USER\' ? \'User\' : \'Group\') }} {{ data.name }}', + template: '{{ \'acl.\' + data.type | translate }} {{ data.name }}', replace: true, scope: { data: '=' diff --git a/docs-web/src/main/webapp/src/app/docs/filter/Filesize.js b/docs-web/src/main/webapp/src/app/docs/filter/Filesize.js index e3dfda68..26e01540 100644 --- a/docs-web/src/main/webapp/src/app/docs/filter/Filesize.js +++ b/docs-web/src/main/webapp/src/app/docs/filter/Filesize.js @@ -3,7 +3,7 @@ /** * Format file sizes. */ -angular.module('docs').filter('filesize', function() { +angular.module('docs').filter('filesize', function($translate) { return function(text) { if (!text) { return ''; @@ -11,8 +11,8 @@ angular.module('docs').filter('filesize', function() { var size = parseInt(text); if (size > 1000000) { // 1MB - return Math.round(size / 1000000) + 'MB'; + return Math.round(size / 1000000) + $translate.instant('filter.filesize.mb'); } - return Math.round(size / 1000) + 'kB'; + return Math.round(size / 1000) + $translate.instant('filter.filesize.kb'); } }); \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/locale/en.json b/docs-web/src/main/webapp/src/locale/en.json index ae1be947..17cc5573 100644 --- a/docs-web/src/main/webapp/src/locale/en.json +++ b/docs-web/src/main/webapp/src/locale/en.json @@ -22,32 +22,124 @@ "logout": "Logout" }, "document": { + "add_document": "Add a document", + "tags": "Tags", + "no_tags": "No tags", + "no_documents": "No document in the database", + "search": "Search", + "search_empty": "No matches for \"{{ search }}\"", + "shared": "Shared", + "title": "Title", + "description": "Description", + "contributors": "Contributors", + "language": "Language", + "creation_date": "Creation date", + "subject": "Subject", + "identifier": "Identifier", + "publisher": "Publisher", + "format": "Format", + "source": "Source", + "type": "Type", + "coverage": "Coverage", + "rights": "Rights", + "relations": "Relations", + "page_size": "Page size", + "page_size_10": "10 per page", + "page_size_20": "20 per page", + "page_size_30": "20 per page", + "upgrade_quota": "To upgrade your quota, ask your administrator", + "quota": "{{ current | number: 0 }}MB ({{ percent | number: 1 }}%) used on {{ total | number: 0 }}MB", + "count": "{{ count }} document{{ count > 1 ? 's' : '' }} found", "view": { - "content": { - "delete_file_title": "Delete file", - "delete_file_message": "Do you really want to delete this file?", - "upload_pending": "Pending...", - "upload_progress": "Uploading...", - "upload_error": "Upload error", - "upload_error_quota": "Quota reached" - }, "delete_comment_title": "Delete comment", "delete_comment_message": "Do you really want to delete this comment?", "delete_document_title": "Delete document", "delete_document_message": "Do you really want to delete this document?", "shared_document_title": "Shared document", - "shared_document_message": "You can share this document by giving this link. Note that everyone having this link can see the document.
" + "shared_document_message": "You can share this document by giving this link. Note that everyone having this link can see the document.
", + "not_found": "Document not found", + "forbidden": "Access forbidden", + "download_files": "Download files", + "export_pdf": "Export to PDF", + "by_creator": "by", + "comments": "Comments", + "no_comments": "No comments on this document yet", + "add_comment": "Add a comment", + "error_loading_comments": "Error loading comments", + "content": { + "content": "Content", + "delete_file_title": "Delete file", + "delete_file_message": "Do you really want to delete this file?", + "upload_pending": "Pending...", + "upload_progress": "Uploading...", + "upload_error": "Upload error", + "upload_error_quota": "Quota reached", + "drop_zone": "Drag & drop files here to upload" + }, + "permissions": { + "permissions": "Permissions", + "message": "Permissions can be applied directly to this document, or can come from tags.", + "title": "Permissions on this document", + "inherited_tags": "Permissions inherited by tags", + "acl_source": "From", + "acl_target": "For", + "acl_permission": "Permission" + }, + "activity": { + "activity": "Activity", + "message": "Every actions on this document are logged here." + } }, "edit": { "document_edited_with_errors": "Document successfully edited but some files cannot be uploaded", "document_added_with_errors": "Document successfully added but some files cannot be uploaded", - "quota_reached": "Quota reached" + "quota_reached": "Quota reached", + "primary_metadata": "Primary metadata", + "title_placeholder": "The nature or genre of the resource", + "description_placeholder": "An account of the resource", + "new_files": "New files", + "orphan_files": "+ {{ count }} file{{ count > 1 ? 's' : '' }}", + "additional_metadata": "Additional metadata", + "subject_placeholder": "The topic of the resource", + "identifier_placeholder": "An unambiguous reference to the resource within a given context", + "publisher_placeholder": "An entity responsible for making the resource available", + "format_placeholder": "The file format, physical medium, or dimensions of the resource", + "source_placeholder": "A related resource from which the described resource is derived", + "uploading_files": "Uploading files..." }, "default": { "upload_pending": "Pending...", "upload_progress": "Uploading...", "upload_error": "Upload error", - "upload_error_quota": "Quota reached" + "upload_error_quota": "Quota reached", + "quick_upload": "Quick upload", + "drop_zone": "Drag & drop files here to upload", + "add_new_document": "Add to new document", + "latest_activity": "Latest activity", + "footer_sismics": "Crafted with by Sismics", + "api_documentation": "API Documentation", + "version": "Version:", + "memory": "Memory:" + }, + "pdf": { + "export_title": "Export to PDF", + "export_metadata": "Export metadata", + "export_comments": "Export comments", + "fit_to_page": "Fit image to page", + "margin": "Margin", + "millimeter": "mm" + }, + "share": { + "title": "Share document", + "message": "Name the sharing if you want to share multiple times the same document.", + "submit": "Share" + } + }, + "file": { + "view": { + "previous": "Previous", + "next": "Next", + "not_found": "File not found" } }, "tag": { @@ -56,6 +148,14 @@ "delete_tag_message": "Do you really want to delete this tag?" } }, + "group": { + "rofile": { + "members": "Members", + "no_members": "No member", + "related_links": "Related links", + "edit_group": "Edit {{ name }} group" + } + }, "settings": { "user": { "edit": { @@ -74,11 +174,76 @@ } }, "account": { + "password": "Password", + "password_confirm": "Password (confirm)", "updated": "Account successfully updated" + }, + "config": { + "title_guest_access": "Guest access", + "message_guest_access": "Guest access is a mode where anyone can access {{ appName }} without password.
Like a normal user, the guest user can only access its documents and those accessible through permissions.
", + "enable_guest_access": "Enable guest access", + "disable_guest_access": "Disable guest access", + "title_theme": "Theme customization", + "application_name": "Application name", + "main_color": "Main color", + "custom_css": "Custom CSS", + "custom_css_placeholder": "Custom CSS to add after the main stylesheet", + "logo": "Logo (squared size)", + "background_image": "Background image", + "uploading_image": "Uploading the image..." } }, + "directive": { + "acledit": { + "acl_target": "For", + "acl_permission": "Permission", + "add_permission": "Add a permission", + "search_user_group": "Search a user or group" + }, + "auditlog": { + "log_created": "created", + "log_updated": "updated", + "log_deleted": "deleted" + }, + "selectrelation": { + "typeahead": "Type a document title" + }, + "selecttag": { + "typeahead": "Type a tag" + } + }, + "filter": { + "filesize": { + "mb": "MB", + "kb": "kB" + } + }, + "acl": { + "READ": "Can read", + "READWRITE": "Can write", + "WRITE": "Can write", + "USER": "User", + "GROUP": "Group", + "SHARE": "Shared" + }, + "validation": { + "required": "Required", + "too_short": "Too short", + "too_long": "Too long", + "password_confirm": "Password and password confirmation must match" + }, "ok": "OK", "cancel": "Cancel", + "share": "Share", "unshare": "Unshare", - "close": "Close" + "close": "Close", + "add": "Add", + "open": "Open", + "see": "See", + "save": "Save", + "export": "Export", + "edit": "Edit", + "delete": "Delete", + "loading": "Loading...", + "send": "Send" } \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/directive.acledit.html b/docs-web/src/main/webapp/src/partial/docs/directive.acledit.html index 9cf0c792..2f542bcc 100644 --- a/docs-web/src/main/webapp/src/partial/docs/directive.acledit.html +++ b/docs-web/src/main/webapp/src/partial/docs/directive.acledit.html @@ -1,8 +1,8 @@
- - + + @@ -19,14 +19,14 @@
ForPermission{{ 'directive.acledit.acl_target' | translate }}{{ 'directive.acledit.acl_permission' | translate }}
-

Add a permission

+

{{ 'directive.acledit.add_permission' | translate }}

- +
@@ -39,11 +39,11 @@
- +
@@ -52,7 +52,7 @@
diff --git a/docs-web/src/main/webapp/src/partial/docs/directive.auditlog.html b/docs-web/src/main/webapp/src/partial/docs/directive.auditlog.html index 3a15eba9..e8527c54 100644 --- a/docs-web/src/main/webapp/src/partial/docs/directive.auditlog.html +++ b/docs-web/src/main/webapp/src/partial/docs/directive.auditlog.html @@ -10,9 +10,9 @@ {{ log.class }} - created - updated - deleted + {{ 'directive.auditlog.log_created' | translate }} + {{ 'directive.auditlog.log_updated' | translate }} + {{ 'directive.auditlog.log_deleted' | translate }} @@ -21,11 +21,11 @@ {{ log.message }} - Open - Open + {{ 'open' | translate }} + {{ 'open' | translate }} - See + {{ 'see' | translate }} {{ log.message }} diff --git a/docs-web/src/main/webapp/src/partial/docs/directive.selectrelation.html b/docs-web/src/main/webapp/src/partial/docs/directive.selectrelation.html index 82f8a9c3..933bb65e 100644 --- a/docs-web/src/main/webapp/src/partial/docs/directive.selectrelation.html +++ b/docs-web/src/main/webapp/src/partial/docs/directive.selectrelation.html @@ -6,7 +6,7 @@ -
\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/directive.selecttag.html b/docs-web/src/main/webapp/src/partial/docs/directive.selecttag.html index 9f28bdc7..140b8224 100644 --- a/docs-web/src/main/webapp/src/partial/docs/directive.selecttag.html +++ b/docs-web/src/main/webapp/src/partial/docs/directive.selecttag.html @@ -6,6 +6,6 @@ -
\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/document.default.html b/docs-web/src/main/webapp/src/partial/docs/document.default.html index dd0a6aca..5b12dc1b 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.default.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.default.html @@ -2,9 +2,9 @@
-

Quick upload

+

{{ 'document.default.quick_upload' | translate }}

+ ng-multiple="true" allow-dir="false" ng-file-change="fileDropped($files, $event, $rejectedFiles)">
@@ -12,7 +12,7 @@
- +
@@ -33,28 +33,28 @@

- Drag & drop files here to upload + {{ 'document.default.drop_zone' | translate }}

- +
-

Latest activity

+

{{ 'document.default.latest_activity' | translate }}

    -
  • Crafted with by Sismics
  • -
  • API Documentation
  • -
  • Version: {{ app.current_version }}
  • -
  • Memory: {{ app.free_memory / 1000000 | number: 0 }}/{{ app.total_memory / 1000000 | number: 0 }} MB
  • +
  • +
  • {{ 'document.default.api_documentation' | translate }}
  • +
  • {{ 'document.default.version' | translate }} {{ app.current_version }}
  • +
  • {{ 'document.default.memory' | translate }} {{ app.free_memory / 1000000 | number: 0 }}/{{ app.total_memory / 1000000 | number: 0 }} MB
\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/document.edit.html b/docs-web/src/main/webapp/src/partial/docs/document.edit.html index a75fdc68..00437134 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.edit.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.edit.html @@ -3,32 +3,32 @@
- Primary metadata + {{ 'document.edit.primary_metadata' | translate }}
- +
- +
-
- +
- +
+ placeholder="{{ 'document.edit.subject_placeholder' | translate }}" name="subject" ng-model="document.subject" ng-disabled="fileIsUploading" />
- +
+ placeholder="{{ 'document.edit.identifier_placeholder' | translate }}" name="identifier" ng-model="document.identifier" ng-disabled="fileIsUploading" />
- +
+ placeholder="{{ 'document.edit.publisher_placeholder' | translate }}" name="publisher" ng-model="document.publisher" ng-disabled="fileIsUploading" />
- +
+ placeholder="{{ 'document.edit.format_placeholder' | translate }}" name="format" ng-model="document.format" ng-disabled="fileIsUploading" />
- +
+ placeholder="{{ 'document.edit.source_placeholder' | translate }}" name="source" ng-model="document.source" ng-disabled="fileIsUploading" />
- +
@@ -124,7 +125,7 @@
- +
+ @@ -40,9 +40,9 @@ - - - + + + @@ -54,15 +54,15 @@ @@ -79,22 +79,21 @@
- +
-
- {{ userInfo.storage_current / 1000000 | number: 0 }}MB ({{ userInfo.storage_current / userInfo.storage_quota * 100 | number: 1 }}%) - used on {{ userInfo.storage_quota / 1000000 | number: 0 }}MB +
+ {{ 'document.quota' | translate: '{ current: userInfo.storage_current / 1000000, percent: userInfo.storage_current / userInfo.storage_quota * 100, total: userInfo.storage_quota / 1000000 }' }}
- {{ totalDocuments }} document{{ totalDocuments > 1 ? 's' : '' }} found + {{ 'document.count' | translate: '{ count: totalDocuments }' }}  
diff --git a/docs-web/src/main/webapp/src/partial/docs/document.pdf.html b/docs-web/src/main/webapp/src/partial/docs/document.pdf.html index 2e1d60cb..1c844efb 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.pdf.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.pdf.html @@ -1,5 +1,5 @@ - +
-
mm
+
{{ 'document.pdf.millimeter' | translate }}
\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/document.share.html b/docs-web/src/main/webapp/src/partial/docs/document.share.html index 48bdbfad..dc0ca994 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.share.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.share.html @@ -1,15 +1,15 @@ \ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/document.view.activity.html b/docs-web/src/main/webapp/src/partial/docs/document.view.activity.html index ff100f5e..681ecdde 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.view.activity.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.view.activity.html @@ -1,3 +1,3 @@ -

Every actions on this document are logged here.

+

{{ 'document.view.activity.message' | translate }}

\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/document.view.content.html b/docs-web/src/main/webapp/src/partial/docs/document.view.content.html index a19f2dd4..cfd09e11 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.view.content.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.view.content.html @@ -1,22 +1,22 @@

-
Subject
+
{{ 'document.subject' | translate }}
{{ document.subject }}
-
Identifier
+
{{ 'document.identifier' | translate }}
{{ document.identifier }}
-
Publisher
+
{{ 'document.publisher' | translate }}
{{ document.publisher }}
-
Format
+
{{ 'document.format' | translate }}
{{ document.format }}
-
Source
+
{{ 'document.source' | translate }}
{{ document.source }}
-
Type
+
{{ 'document.type' | translate }}
{{ document.type }}
-
Coverage
+
{{ 'document.coverage' | translate }}
{{ document.coverage }}
-
rights
+
{{ 'document.rights' | translate }}
{{ document.rights }}
-
Contributors
+
{{ 'document.contributors' | translate }}
@@ -26,7 +26,7 @@
-
Relations
+
{{ 'document.relations' | translate }}
@@ -70,7 +70,7 @@

- Drag & drop files here to upload + {{ 'document.view.content.drop_zone' | translate }}

diff --git a/docs-web/src/main/webapp/src/partial/docs/document.view.html b/docs-web/src/main/webapp/src/partial/docs/document.view.html index f6f27bb2..7e015bde 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.view.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.view.html @@ -3,11 +3,11 @@

- Document not found + {{ 'document.view.not_found' | translate }}

- Access forbidden + {{ 'document.view.forbidden' | translate }}

@@ -16,25 +16,25 @@ @@ -42,12 +42,12 @@

{{ document.title }} {{ document.create_date | date: 'yyyy-MM-dd' }} - by {{ document.creator }} + {{ 'document.view.by_creator' | translate }} {{ document.creator }}

@@ -69,17 +69,17 @@

@@ -88,14 +88,14 @@

-

Loading...

-

No comments on this document yet

-

Error loading comments

+

{{ 'loading' | translate }}

+

{{ 'document.view.no_comments' | translate }}

+

{{ 'document.view.error_loading_comments' | translate }}

@@ -109,15 +109,15 @@ {{ comment.create_date | date: 'yyyy-MM-dd' }} Delete + ng-click="deleteComment(comment)">{{ 'delete' | translate }}

- - + +
diff --git a/docs-web/src/main/webapp/src/partial/docs/document.view.permissions.html b/docs-web/src/main/webapp/src/partial/docs/document.view.permissions.html index 701387a5..6ad27cef 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.view.permissions.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.view.permissions.html @@ -1,7 +1,7 @@ -

Permissions can be applied directly to this document, or can come from tags.

+

-

Permissions on this document

+

{{ 'document.view.permissions.title' | translate }}

-

Permissions inherited by tags

+

{{ 'document.view.permissions.inherited_tags' | translate }}

-
Title Creation date {{ 'document.title' | translate }} {{ 'document.creation_date' | translate }}
- No document in the database - No matches for "{{ search }}" + {{ 'document.no_documents' | translate }} +
{{ document.title }} ({{ document.file_count }}) - + {{ document.create_date | date: 'yyyy-MM-dd' }}
+
- - - + + + @@ -28,8 +28,8 @@ diff --git a/docs-web/src/main/webapp/src/partial/docs/file.view.html b/docs-web/src/main/webapp/src/partial/docs/file.view.html index 8bf1cdb1..c78062f7 100644 --- a/docs-web/src/main/webapp/src/partial/docs/file.view.html +++ b/docs-web/src/main/webapp/src/partial/docs/file.view.html @@ -6,8 +6,8 @@
- - + +
@@ -28,6 +28,6 @@ ng-show="!error" />

- File not found + {{ 'file.view.not_found' | translate }}

diff --git a/docs-web/src/main/webapp/src/partial/docs/group.profile.html b/docs-web/src/main/webapp/src/partial/docs/group.profile.html index 8aa8c586..1568b08d 100644 --- a/docs-web/src/main/webapp/src/partial/docs/group.profile.html +++ b/docs-web/src/main/webapp/src/partial/docs/group.profile.html @@ -2,20 +2,20 @@

{{ group.name }}

-

Members

+

{{ 'group.profile.members' | translate }}

  • {{ member }}
  • -
  • No member
  • +
  • {{ 'group.profile.no_members' | translate }}
-

Related links

+

{{ 'group.profile.related_links' | translate }}

diff --git a/docs-web/src/main/webapp/src/partial/docs/main.html b/docs-web/src/main/webapp/src/partial/docs/main.html index 1dacc154..c5898555 100644 --- a/docs-web/src/main/webapp/src/partial/docs/main.html +++ b/docs-web/src/main/webapp/src/partial/docs/main.html @@ -1,3 +1,3 @@
-

Loading...

+

{{ 'loading' | translate }}

\ No newline at end of file diff --git a/docs-web/src/main/webapp/src/partial/docs/settings.account.html b/docs-web/src/main/webapp/src/partial/docs/settings.account.html index 2b6739b5..7bf6e704 100644 --- a/docs-web/src/main/webapp/src/partial/docs/settings.account.html +++ b/docs-web/src/main/webapp/src/partial/docs/settings.account.html @@ -1,34 +1,34 @@

User account

- +
+ ng-minlength="8" ng-maxlength="50" placeholder="{{ 'settings.account.password' | translate }}" ng-model="user.password" />
- Required - Too short - Too long + {{ 'validation.required' | translate }} + {{ 'validation.too_short' | translate }} + {{ 'validation.too_long' | translate }}
- +
+ placeholder="{{ 'settings.account.password_confirm' | translate }}" ng-model="user.passwordconfirm" />
- Password and password confirmation must match + {{ 'validation.password_confirm' | translate }}
diff --git a/docs-web/src/main/webapp/src/partial/docs/settings.config.html b/docs-web/src/main/webapp/src/partial/docs/settings.config.html index b909bbe1..8b913897 100644 --- a/docs-web/src/main/webapp/src/partial/docs/settings.config.html +++ b/docs-web/src/main/webapp/src/partial/docs/settings.config.html @@ -1,22 +1,20 @@

- Guest access + {{ app.guest_login ? 'Enabled' : 'Disabled' }}

-

- Guest access is a mode where anyone can access {{ appName }} without password.
- Like a normal user, the guest user can only access its documents and those accessible through permissions.
+

- - + +
-

Theme customization

+

- +
@@ -24,7 +22,7 @@
- +
    @@ -32,15 +30,15 @@
- +
-
- +
- +
@@ -71,7 +69,7 @@

- Uploading the image... + {{ 'settings.config.uploading_image' | translate }}

diff --git a/docs-web/src/main/webapp/src/partial/docs/settings.default.html b/docs-web/src/main/webapp/src/partial/docs/settings.default.html index 52b633af..e69de29b 100644 --- a/docs-web/src/main/webapp/src/partial/docs/settings.default.html +++ b/docs-web/src/main/webapp/src/partial/docs/settings.default.html @@ -1 +0,0 @@ -

Settings

diff --git a/docs-web/src/main/webapp/src/style/main.less b/docs-web/src/main/webapp/src/style/main.less index ee0ecd83..070ca65f 100644 --- a/docs-web/src/main/webapp/src/style/main.less +++ b/docs-web/src/main/webapp/src/style/main.less @@ -113,6 +113,11 @@ } // File thumbnails +.thumbnail input[type="checkbox"] { + width: 26px; + height: 26px; +} + .thumbnail-file { cursor: pointer; } @@ -132,6 +137,13 @@ display: block; } +// Permissions table +.table-permissions { + .label-acl { + margin-right: 6px; + } +} + // Fields bound to datepicker input[readonly][datepicker-popup] { cursor: pointer; @@ -249,6 +261,7 @@ input[readonly].share-link { // Login .login-box-container { background: url('../../api/theme/image/background') no-repeat center; + background-size: cover; } .login-box {
FromForPermission{{ 'document.view.permissions.acl_source' | translate }}{{ 'document.view.permissions.acl_target' | translate }}{{ 'document.view.permissions.acl_permission' | translate }}
- - {{ a.perm }} + + {{ 'acl.' + a.perm | translate }}