bulk file importer infos

This commit is contained in:
Benjamin Gamard 2018-03-01 15:14:46 +01:00
parent 70a42afab8
commit 808a06b0af
5 changed files with 45 additions and 2 deletions

View File

@ -110,6 +110,14 @@ angular.module('docs',
} }
} }
}) })
.state('settings.fileimporter', {
url: '/fileimporter',
views: {
'settings': {
templateUrl: 'partial/docs/settings.fileimporter.html'
}
}
})
.state('settings.log', { .state('settings.log', {
url: '/log', url: '/log',
views: { views: {
@ -408,7 +416,8 @@ angular.module('docs',
'en_*': 'en', 'en_*': 'en',
'fr_*': 'fr', 'fr_*': 'fr',
'*': 'en' '*': 'en'
}); })
.fallbackLanguage('en');
if (!_.isUndefined(localStorage.overrideLang)) { if (!_.isUndefined(localStorage.overrideLang)) {
// Set the current language if an override is saved in local storage // Set the current language if an override is saved in local storage

View File

@ -66,7 +66,8 @@ angular.module('share',
'en_*': 'en', 'en_*': 'en',
'fr_*': 'fr', 'fr_*': 'fr',
'*': 'en' '*': 'en'
}); })
.fallbackLanguage('en');
if (!_.isUndefined(localStorage.overrideLang)) { if (!_.isUndefined(localStorage.overrideLang)) {
// Set the current language if an override is saved in local storage // Set the current language if an override is saved in local storage

View File

@ -239,6 +239,7 @@
"menu_user_account": "User account", "menu_user_account": "User account",
"menu_two_factor_auth": "Two-factor authentication", "menu_two_factor_auth": "Two-factor authentication",
"menu_opened_sessions": "Opened sessions", "menu_opened_sessions": "Opened sessions",
"menu_file_importer": "Bulk file importer",
"menu_general_settings": "General settings", "menu_general_settings": "General settings",
"menu_workflow": "Workflow", "menu_workflow": "Workflow",
"menu_users": "Users", "menu_users": "Users",
@ -400,6 +401,18 @@
"value": "Value", "value": "Value",
"order": "Order", "order": "Order",
"new_entry": "New entry" "new_entry": "New entry"
},
"fileimporter": {
"title": "Bulk file importer",
"advanced_users": "For advanced users!",
"need_intro": "If you need to:",
"need_1": "Import a directory of files at once",
"need_2": "Scan a directory for new files and import them",
"line_1": "Go to <a href=\"https://github.com/sismics/docs/releases\">sismics/docs/releases</a> and download the file importer tool for your system.",
"line_2": "Follow the <a href=\"https://github.com/sismics/docs/tree/master/docs-importer\">instructions here</a> to use this tool.",
"line_3": "Your files will be imported in <a href=\"#/document\">Quick upload</a>, then you can group them into documents.",
"download": "Download",
"instructions": "Instructions"
} }
}, },
"feedback": { "feedback": {

View File

@ -0,0 +1,19 @@
<h1 translate="settings.fileimporter.title"></h1>
<p class="text-danger"><strong><span class="glyphicon glyphicon-warning-sign"></span> {{ 'settings.fileimporter.advanced_users' | translate }}</strong></p>
<p translate="settings.fileimporter.need_intro"></p>
<ul>
<li><strong translate="settings.fileimporter.need_1"></strong></li>
<li><strong translate="settings.fileimporter.need_2"></strong></li>
</ul>
<p translate="settings.fileimporter.line_1"></p>
<p translate="settings.fileimporter.line_2"></p>
<p translate="settings.fileimporter.line_3"></p>
<p>
<a href="https://github.com/sismics/docs/releases" target="_blank" class="btn btn-info">
<span class="glyphicon glyphicon-download-alt"></span>
{{ 'settings.fileimporter.download' | translate }}
</a>
<a href="https://github.com/sismics/docs/tree/master/docs-importer" target="_blank" class="btn btn-default">
{{ 'settings.fileimporter.instructions' | translate }}
</a>
</p>

View File

@ -6,6 +6,7 @@
<a class="list-group-item" ui-sref-active="{ active: 'settings.account.**' }" href="#/settings/account">{{ 'settings.menu_user_account' | translate }}</a> <a class="list-group-item" ui-sref-active="{ active: 'settings.account.**' }" href="#/settings/account">{{ 'settings.menu_user_account' | translate }}</a>
<a class="list-group-item" ui-sref-active="{ active: 'settings.security.**' }" href="#/settings/security">{{ 'settings.menu_two_factor_auth' | translate }}</a> <a class="list-group-item" ui-sref-active="{ active: 'settings.security.**' }" href="#/settings/security">{{ 'settings.menu_two_factor_auth' | translate }}</a>
<a class="list-group-item" ui-sref-active="{ active: 'settings.session.**' }" href="#/settings/session">{{ 'settings.menu_opened_sessions' | translate }}</a> <a class="list-group-item" ui-sref-active="{ active: 'settings.session.**' }" href="#/settings/session">{{ 'settings.menu_opened_sessions' | translate }}</a>
<a class="list-group-item" ui-sref-active="{ active: 'settings.fileimporter.**' }" href="#/settings/fileimporter">{{ 'settings.menu_file_importer' | translate }}</a>
</ul> </ul>
</div> </div>